我正在使用 Ubuntu 12.10。当我尝试安装 Firefox 浏览器时,我遇到了很大的麻烦。但是 Firefox 安装在我的系统上已损坏。此后,当我转到 UBUNTU SOFTWARE CENTER 时,每次都会显示此消息,并且无法安装任何其他软件包。
UBUNTU 软件中心:
在软件包目录修复之前,无法安装或删除该项目。
当我尝试从终端安装任何东西时,我总是收到以下消息:
错误1:
以下软件包具有未满足的依赖项:firefox-globalmenu:依赖:firefox(= 19.0~b5+build1-0ubuntu0.12.04.1~mfn1)
请告诉我如何修复它。寻求您的指导。
==========================================================================
yes I just seen it and tried this command: apt-get -f install
E:无法打开锁定文件 /var/lib/dpkg/lock - open (13:权限被拒绝) E:无法锁定管理目录 (/var/lib/dpkg/),您是 root 吗?
PLEASE SEE FROM HERE WHAT MESSAGE I HAVE :
deepak@deepak-laptop:/$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
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-globa lmenu
1 upgraded, 1 newly installed, 0 to remove and 220 not upgraded.
1 not fully installed or removed.
Need to get 0 B/24.8 MB of archives.
After this operation, 51.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 354341 files and directories currently installed.)
Unpacking firefox (from .../firefox_19.0~b6+build1-0ubuntu0.12.04.1~mfn1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives /firefox_19.0~b6+build1-0ubuntu0.12.04.1~mfn1_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 man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
/var/cache/apt/archives /firefox_19.0~b6+build1-0ubuntu0.12.04.1~mfn1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
==========================================================================
谢谢
答案1
sudo apt-get install -f
尝试在终端中运行。这会尝试纠正存在损坏依赖关系的系统。
答案2
您需要acroread 9.5.1-1precise1
从系统运行卸载。这可能会产生问题。
只需尝试使用 卸载 acroread 即可sudo apt-get remove acroread
,然后尝试再次安装 Firefox。我认为之后应该可以成功。
答案3
强制 dpkg 覆盖文件:
sudo dpkg --force-overwrite -i /var/cache/apt/archives/firefox_19.0~b6+build1-0ubuntu0.12.04.1~mfn1_i386.deb
然后,运行此命令来修复剩余的未配置的包:
sudo apt-get -f install
无论如何,正如其他人所说,罪魁祸首可能是软件包acroread
。如果您继续看到这些消息,只需acroread
从系统中卸载即可。