ubuntu apt install中断,不能修复错误

报错信息

After you get that error, try sudo apt-get -f install to force an install of the files that didn't get loaded because of the error.

Then try sudo apt-get update again, sudo apt-get -f install back and forth until only the package that has the error is left.

正在安装软件的时候,强行结束(出错、退出安装)安装程序。
这时, 软件依赖关系就被破坏掉了。
apt install -f也不管用了。

现在即使重新安装该软件也不行了, 怎么办呢?

解决办法

sudo dpkg configure -a  # delete the problematic package
sudo apt autoremove **packages listed above**
sudo apt clean

sudo apt install **package you want to install**
  1. 先重新配置软件依赖。
  2. 然后删除上面所有依赖的软件
  3. 清理
  4. 重新安装软件

完成

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值