Software-Installation

Linux Mint 13 上的 Firefox 循環依賴地獄

  • October 28, 2012

安裝後重新安裝 Firefox 有困難,以解決places.sqlite問題。看來我陷入了循環依賴地獄。

需要解決firefox依賴地獄嘗試解決Tomcat6項目依賴(不要問),盡快。已經嘗試了幾個小時。

我做了什麼(簡要)

sudo apt-get purge firefox firefox-globalmenu firefox-gnome-support
sudo apt-get update
sudo apt-get install firefox firefox-globalmenu firefox-gnome-support
sudo apt-get -f install

潛在錯誤來源: 發現於sudo apt-get install firefox firefox-globalmenu firefox-gnome-support

dpkg: error processing /var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb (–unpack): 試圖覆蓋’/usr/lib/firefox/extensions’,即也在包 mint-search-addon 2012.05.11

所以,/usr/lib/firefox/extensions甚至不存在!/var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701按建議刪除。

Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

輸出:

  • sudo apt-get purge firefox firefox-globalmenu firefox-gnome-support
tyler@machine ~ $ sudo apt-get purge firefox firefox-globalmenu firefox-gnome-support
[sudo] password for tyler: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package firefox is not installed, so not removed
The following packages will be REMOVED:
 firefox-globalmenu* firefox-gnome-support*
0 upgraded, 0 newly installed, 2 to remove and 38 not upgraded.
2 not fully installed or removed.
After this operation, 460 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 
dpkg: warning: files list file for package `mysqltuner' missing, assuming package has no files currently installed.
(Reading database ... 192642 files and directories currently installed.)
Removing firefox-globalmenu ...
Removing firefox-gnome-support ...
  • tyler@machine ~ $ sudo apt-get install firefox firefox-globalmenu firefox-gnome-support
tyler@machine ~ $ sudo apt-get install firefox firefox-globalmenu firefox-gnome-support
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
 latex-xft-fonts
The following NEW packages will be installed:
 firefox firefox-globalmenu firefox-gnome-support
0 upgraded, 3 newly installed, 0 to remove and 38 not upgraded.
Need to get 0 B/24.8 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
(Reading database ... 
dpkg: warning: files list file for package `mysqltuner' missing, assuming package has no files currently installed.
(Reading database ... 192619 files and directories currently installed.)
Unpacking firefox (from .../firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb (--unpack):
trying to overwrite '/usr/lib/firefox/extensions', which is also in package mint-search-addon 2012.05.11
Selecting previously unselected package firefox-globalmenu.
Unpacking firefox-globalmenu (from .../firefox-globalmenu_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb) ...
Selecting previously unselected package firefox-gnome-support.
Unpacking firefox-gnome-support (from .../firefox-gnome-support_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb) ...
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 ...
Processing triggers for mintsystem ...
Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • sudo apt-get -f install

    • 0 升級,0 新安裝,0 移除,38 未升級

想法?Tomcat6 只在 Firefox 中成功部署了我的 web 應用程序,而不是 Chrome,所以我真的希望解決這個依賴問題。

似乎 Firefox 正在嘗試對./usr/lib/firefox/extensions擁有的mint-search-addon. 目錄不存在的事實與依賴關係無關。你mint-search-addon安裝了嗎?你的系統是最新的嗎?如果兩者都是真的,請嘗試清除mint-search-addon.

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