我通过以下命令删除了 Firefox:
sudo apt-get remove --purge firefox
然后,我使用了一段时间的 Chrome 浏览器。现在,我想在系统上重新安装 Firefox,但出现以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
latex-xft-fonts firefox-gnome-support
The following NEW packages will be installed:
firefox
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/23.7 MB of archives.
After this operation, 49.8 MB of additional disk space will be used.
(Reading database ... 452129 files and directories currently installed.)
Unpacking firefox (from .../firefox_18.0.2+build1-0ubuntu0.12.04.1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_18.0.2+build1-0ubuntu0.12.04.1_i386.deb (--unpack):
trying to overwrite '/usr/lib/firefox/plugins', which is also in package acroread 9.5.1-1precise1
No apport report written because MaxReports is reached already
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0.2+build1-0ubuntu0.12.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试通过以下方式解决问题
sudo apt-get -f install
但这也会产生类似的错误。有人能解释一下这个问题及其解决方法吗?
答案1
它与“acroread”软件包冲突。您从哪里获得此软件包?
您可以卸载 acroread:
sudo apt-get remove acroread
然后就可以再次安装 Firefox。
我刚刚检查了最新版本(9.5.3)http://get.adobe.com/。这个包好像没有冲突,所以你可以重新安装这个包。
另一种方法是直接覆盖目录/文件(有 dpkg-options...)或在安装 Firefox 之前删除/重命名目录/文件。但这绝对不推荐...