Debian

在 Debian 中從 KDE Plasma 中刪除 Konqueror 而不安裝 firefox-esr

  • October 10, 2021

我正在嘗試從執行 KDE Plasma Desktop 的 Debian 11 系統中解除安裝 Konqueror。Shell 命令sudo apt remove konqueror給出:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
 libkf5konq6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
 firefox-esr
Suggested packages:
 fonts-stix | otf-stix fonts-lmodern
The following packages will be REMOVED:
 konq-plugins konqueror
The following NEW packages will be installed:
 firefox-esr
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 55.4 MB of archives.
After this operation, 180 MB of additional disk space will be used.
Do you want to continue? [Y/n]

我不想安裝 firefox-esr,因為我使用的是已經設置為預設值的 Brave Browser。

輸出apt-cache policy konq-plugins konqueror firefox-esr

konq-plugins:
 Installed: 4:20.12.0-4
 Candidate: 4:20.12.0-4
 Version table:
*** 4:20.12.0-4 500
       500 http://deb.debian.org/debian bullseye/main amd64 Packages
       100 /var/lib/dpkg/status
konqueror:
 Installed: 4:20.12.0-4
 Candidate: 4:20.12.0-4
 Version table:
*** 4:20.12.0-4 500
       500 http://deb.debian.org/debian bullseye/main amd64 Packages
       100 /var/lib/dpkg/status
firefox-esr:
 Installed: (none)
 Candidate: 78.14.0esr-1~deb11u1
 Version table:
    78.14.0esr-1~deb11u1 500
       500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
       100 /var/lib/dpkg/status
    78.12.0esr-1 500
       500 http://deb.debian.org/debian bullseye/main amd64 Packages

另外,我沒有安裝相關的元包。根據突觸,在我的系統中安裝的唯一元包是 init。

好吧,我想通了。嘗試使用 dpkg 刪除 konqueror sudo dpkg -r konq-plugins konqueror,我發現 libreoffice-help-en-us 依賴於 firefox-esr、epiphany-browser、konqueror、chromium 或 firefox。

(Reading database ... 211190 files and directories currently installed.)
Removing konq-plugins (4:20.12.0-4) ...
dpkg: dependency problems prevent removal of konqueror:
libreoffice-help-en-us depends on firefox-esr | epiphany-browser | konqueror | chromium | firefox; however:
 Package firefox-esr is not installed.
 Package epiphany-browser is not installed.
 Package konqueror is to be removed.
 Package chromium is not installed.
 Package firefox is not installed.

dpkg: error processing package konqueror (--remove):
dependency problems - not removing
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
konqueror

刪除 libreoffice-help-en-us 後,我能夠刪除 konqueror。

引用自:https://unix.stackexchange.com/questions/671516