我正在使用 Debian 稳定版,而且我确实没有在其上安装太多东西,但我开始注意到,每当我有一段时间不使用我的系统时,Debian 就会倾向于添加要自动删除的软件包。
默认 Debian 系统自带的软件包(如、、Network Manager
等)都显示在自动删除中。我不知道为什么会这样,我没有安装默认存储库之外的任何软件包。wpa_supplicant
java
每当我注意到自己意外地自动删除了某些东西时,我都需要修复系统,这让我很沮丧。我也没有卸载系统自带的任何默认软件包。我的问题是,到底是什么原因导致 Debian 想要将软件包设置为自动删除?
答案1
系统上的默认软件包通常不是单独安装的,而是作为“元”软件包的依赖项拖入的。当您删除该元软件包时,您最喜欢的软件包管理器必须假设您对安装的内容不感兴趣,只是为了让该元软件包满意。
例如看一下 kde-standard(我的 Ubuntu 机器的):
apt-cache show kde-standard
Package: kde-standard
Architecture: amd64
Version: 5:100ubuntu2
Priority: optional
Section: universe/metapackages
Source: meta-kde
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Qt/KDE Maintainers <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 21
Depends: akregator (>= 4:17.08.3), ark (>= 4:17.08.3), dragonplayer (>= 4:17.08.3), gwenview (>= 4:17.08.3), juk (>= 4:17.08.3), kaddressbook (>= 4:17.08.3), kate (>= 4:17.08.3), kcalc (>= 4:17.08.3), kde-plasma-desktop (>= 5:100ubuntu2), kde-spectacle (>= 17.08.3), khelpcenter (>= 4:17.08.3), kmail (>= 4:17.08.3), knotes (>= 4:17.08.3), kopete (>= 4:17.08.3), korganizer (>= 4:17.08.3), kwalletmanager (>= 4:17.08.3), okular (>= 4:17.08.3), plasma-dataengines-addons (>= 4:5.10), plasma-pa (>= 5.10) | kmix (>= 4:17.08.3), plasma-runners-addons (>= 4:5.10), plasma-wallpapers-addons (>= 4:5.10), plasma-widgets-addons (>= 4:5.10), polkit-kde-agent-1 (>= 4:5.10), sweeper (>= 4:17.08.3)
Recommends: konq-plugins (>= 4:17.08.3), plasma-nm (>= 4:5.10)
Suggests: skanlite
Breaks: kde-minimal (<< 5:57)
Filename: pool/universe/m/meta-kde/kde-standard_100ubuntu2_amd64.deb
Size: 2096
MD5sum: c695504c343f43d52d27d2d2a7afb1c6
SHA1: 309939b0aa4925fe8abde6405cc8e610cd514a7d
SHA256: 93ba353ff7f6fc0d6994fafaab5a49bc2ddbdaa157eb9d7174ae7ef2a6a70558
Homepage: http://www.kde.org
Description-en: KDE Plasma Desktop and standard set of applications
The KDE Software Compilation is the powerful, integrated, and easy-to-use Free
Software desktop platform and suite of applications.
.
This metapackage includes the KDE Plasma Desktop and a selection of the most
common used applications in a standard KDE desktop.
Description-md5: 22b1a1d202f3643155a96f5ad211c0fb
如果删除 kde-standard,那么您也可能会删除您最喜欢的 kcalc。kde-plasma-desktop 很可能也会被直接安装,因此不会提供自动删除功能。