今天,在运行更新检查时,我收到了部分更新对话框,因此决定在执行此操作之前先在命令行上进行检查。
然后我决定运行 dist-upgrade,得到了 30 个可以删除的包,但我不知道为什么今天突然可以删除它们。我使用磁盘加密,例如 libcryptsetup12 被标记为要删除。其他的像 php80-zip,尽管我仍然每天通过 apache2 使用此版本和模块。
我如何确保此自动删除运行不会破坏我的系统?
编辑这是 sudo apt-get autoremove 的输出:
Die folgenden Pakete werden ENTFERNT:
libapparmor1:i386 libappindicator1 libargon2-1:i386 libcap2:i386 libcryptsetup12:i386 libdevmapper1.02.1:i386 libffi7:i386 libfwupdplugin1 libgmp10:i386 libgnutls30:i386 libhogweed5:i386 libip4tc2:i386
libjs-openlayers libjson-c4:i386 libkmod2:i386 libllvm11 libnettle7:i386 libp11-kit0:i386 libqt5sensors5 libqt5webkit5 libseccomp2:i386 libssl1.1:i386 libtasn1-6:i386 php8.0-gd php8.0-ssh2 php8.0-zip
qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets shim
更新:到目前为止,我还保留了一些软件包,包括最新的内核。
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev linux-通用 linux-headers-通用 linux-image-通用
更新,这是 dist-grade 目前的的输出
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libapparmor1:i386 libappindicator1 libargon2-1:i386 libcap2:i386 libffi7:i386 libfwupdplugin1 libgmp10:i386 libgnutls30:i386 libhogweed5:i386 libip4tc2:i386 libjs-openlayers libjson-c4:i386
libkmod2:i386 libllvm11 libnettle7:i386 libp11-kit0:i386 libqt5sensors5 libqt5webkit5 libseccomp2:i386 libssl1.1:i386 libtasn1-6:i386 php8.0-gd php8.0-ssh2 php8.0-zip qml-module-qtquick-controls
qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets shim
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libcryptsetup12:i386 libdevmapper1.02.1:i386 libmount1:i386 libpcre2-8-0:i386 libpcre2-posix2 libselinux1:i386
The following NEW packages will be installed:
libpcre2-posix3 linux-headers-5.4.0-107 linux-headers-5.4.0-107-generic linux-image-5.4.0-107-generic linux-modules-5.4.0-107-generic linux-modules-extra-5.4.0-107-generic
The following packages will be upgraded:
libnetplan0 libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev linux-generic linux-headers-generic linux-image-generic linux-libc-dev netplan.io
10 upgraded, 6 newly installed, 6 to remove and 0 not upgraded.
Need to get 79.7 MB of archives.
After this operation, 378 MB of additional disk space will be used.
编辑:我发现外部 PPA 触发了软件包的扣留,因此出现了部分更新警告。如果外部 PPA 被停用,一切都会恢复正常。我已联系该 PPA 的作者以了解更多信息,现在将关闭此问题。