从 Debian 中的 KDE Plasma 删除 Konqueror 而不安装 firefox-esr

从 Debian 中的 KDE Plasma 删除 Konqueror 而不安装 firefox-esr

我正在尝试从运行 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 浏览器。

输出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

另外,我没有安装相关的元包。根据 synaptic,我的系统中安装的唯一元包是 init。

答案1

好吧,我想通了。尝试使用 dpkg 删除 konqueror sudo dpkg -r konq-plugins konqueror,我发现 libreoffice-help-en-us 依赖于 firefox-esr、epphany-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。

相关内容