在Debian 11稳定的KDE中,为什么卸载konqueror还会删除libreoffice、xorg等?为什么会导致firefox的安装?
sudo apt-get remove konqueror
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
apper apper-data coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5 coinor-libcoinutils3v5
coinor-libosi1v5 cups-pk-helper fonts-symbola gir1.2-wnck-3.0 kdeaccessibility kmag kmousetool kmouth kontrast
libkf5konq6 libqaccessibilityclient-qt5-0 libreoffice-calc libreoffice-draw libreoffice-help-common
libreoffice-help-en-us libreoffice-impress libreoffice-kf5 libreoffice-plasma libreoffice-qt5 libwnck-3-0
libwnck-3-common lp-solve mythes-en-us node-normalize.css orca print-manager python3-brlapi python3-cupshelpers
python3-louis python3-smbc python3-speechd qtgstreamer-plugins-qt5 system-config-printer-common
system-config-printer-udev task-desktop x11-apps x11-session-utils xbrlapi xinit xkbset xorg
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
firefox-esr
Suggested packages:
fonts-stix | otf-stix
The following packages will be REMOVED:
kde-baseapps kde-plasma-desktop kde-standard konq-plugins konqueror task-kde-desktop
The following NEW packages will be installed:
firefox-esr
0 upgraded, 1 newly installed, 6 to remove and 0 not upgraded.
Need to get 55.5 MB of archives.
After this operation, 180 MB of additional disk space will be used.当我sudo apt autoremove时,它不会尝试删除那些“不再需要”的包。但是当我试图移除konqueror的时候,它说它会删除很多看起来完全不相关的东西。
发布于 2021-12-14 08:32:42
konqueror是kde-baseapps的强依赖,它本身是对kde-plasma-desktop的强烈依赖,本身是对kde-standard的强烈依赖,本身是对task-kde-desktop的强烈依赖;它也是对konq-plugins的强烈依赖。因此,删除konqueror会通过级联依赖关系删除所有这些包。
删除这些包会导致包自动移动,因为它们存在的唯一原因(就apt而言)是因为它们被其中一个已删除的包拉进来。例如,task-kde-desktop建议使用apper,因此删除前者意味着后者成为自动可移动的(假设没有其他的依赖,无论是强的还是弱的,就是这里的情况)。
firefox-esr是由于移除konqueror而安装的,因为您安装的其他包对www-browser虚拟包有很强的依赖性;konqueror提供,删除它意味着不再满足,但是apt选择安装另一个www-browser提供程序(或者更可能是另一个直接依赖项) firefox-esr,而不是删除依赖的包。
发布于 2021-12-14 08:33:56
kde-baseapps依赖于konqueror包,因此删除konqueror会导致kde应用程序成为removed...which,从而导致其他应用程序被删除。
安装firefox-esr可能是因为其他一些包依赖于虚拟包www-browser,而firefox是提供它的几个包之一。
https://unix.stackexchange.com/questions/681376
复制相似问题