【问题标题】:when I install a software in my Ubuntu16.04, I got the following messages当我在我的 Ubuntu16.04 中安装软件时,我收到以下消息
【发布时间】:2018-04-10 05:48:34
【问题描述】:
$ sudo apt install snort
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

那我试试

sudo dpkg --configure -a
[sudo] password for hill: 
Setting up firefox (59.0.1+build1-0ubuntu0.16.04.1) ...

然后它永远挂起并且网络良好。有谁知道我该如何解决这个问题?谢谢

【问题讨论】:

    标签: ubuntu-16.04 apt dpkg


    【解决方案1】:

    此错误表明软件包已损坏或过去的软件包安装被中断。

    尝试运行:

    apt-get -f install
    

    它解决了未满足的依赖关系。

    【讨论】:

    • 我运行sudo apt-get -f install,然后我得到E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 所以,我运行` sudo dpkg --configure -a, then I got ... 设置firefox (59.0.1+build1-0ubuntu0. 16.04.1) ...` 又挂了。
    • 移除 Firefox 并重试。似乎 Firefox 的依赖项已损坏。
    • 我运行sudo apt-get remove --purge firefoxsudo apt purge firefox 然后我得到E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 。我尝试另一个命令rm -r ~/.mozilla。但它们没有任何作用。
    【解决方案2】:

    试试sudo apt-get --reinstall install firefox。我是从there 那里得到的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-19
      • 1970-01-01
      • 2016-02-09
      • 2017-11-20
      • 2021-02-23
      • 2022-11-11
      • 2015-10-09
      • 2020-03-07
      相关资源
      最近更新 更多