Linux Mint 13上的Firefox循环依赖地狱

Modified on: Thu, 12 Jul 2018 02:27:00 +0800

在安装解决places.sqlite问题后,难以重新安装Firefox。看来我被困在循环依赖地狱中。

需要解决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:错误处理
  /var/cache/apt/archives/firefox_18.0~a2~hg20121027r113701-0ubuntu1~umd1~precise_amd64.deb
  (--unpack):试图覆盖'/ usr / lib / firefox / extensions',其中
  也在包薄荷 - 搜索 - 插件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,所以我真的希望解决这个依赖问题。

作者:Gilles,Tyler

最佳答案

似乎Firefox试图用/usr/lib/firefox/extensions做一些事情,它由mint-search-addon拥有。关于依赖性,目录不存在的事实不相关。你有mint-search-addon吗?你的系统是最新的吗?如果两者都为真,请尝试清除mint-search-addon

作者:phunehehe

相关问答

添加新评论