我需要卸载在安装 Ubuntu 12.04 时安装的 Firefox 19,以便降级该版本,这样我就可以安装与较低版本兼容的 Firefox 插件。但现在我的系统坏了。
我尝试更新、升级、apt-get -f install
安装 synaptic 或重新安装 Firefox……但无济于事。终端错误报告:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
python-zope.app.content
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
firefox firefox-globalmenu
Suggested packages:
latex-xft-fonts firefox-gnome-support
The following NEW packages will be installed:
firefox
The following packages will be upgraded:
firefox-globalmenu
1 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
Need to get 0 B/25.6 MB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 299890 files and directories currently installed.)
Unpacking firefox (from .../firefox_20.0~b1+build2-0ubuntu0.12.04.1~mfn3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_20.0~b1+build2-0ubuntu0.12.04.1~mfn3_i386.deb (--unpack):
trying to overwrite '/usr/lib/firefox/plugins', which is also in package google-talkplugin 3.13.2.0-1
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_20.0~b1+build2-0ubuntu0.12.04.1~mfn3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我怎样才能解决这个问题?
答案1
大多数情况下,当某个文件在较新版本中从一个包移动到另一个包时,就会发生此类错误。
这应该可以修复它:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/firefox_20.0~b1+build2-0ubuntu0.12.04.1~mfn3_i386.deb
sudo apt-get install -f
答案2
您是否尝试过在终端中运行此命令:
sudo dpkg --configure -a
如果这不起作用,请尝试以下操作,因为我担心您的包已损坏。
打开终端并运行以下命令:
cd /var/lib/dpkg/updates
sudo rm *
cd /var/cache/apt/archives/
sudo rm *.deb
并再次尝试安装您的软件。