修复ubuntupackage broken命令

http://www.upubuntu.com/2013/05/how-to-fix-broken-packages-using.html

 

If you cannot install new packages using the terminal under Ubuntu 13.04/12.10 or older and you receive this type of error:

(...) You might want to run 'apt-get -f install' to correct these:

 

The following packages have unmet dependencies: (...)



You may try these various types of solutions that may help you repair your package database:

   Tip 1 

Via the terminal, enter this command to fix broken packages:

sudo apt-get --fix-broken install


   Tip 2

If the above command didn't help, try these ones:

sudo rm /var/lib/apt/lists/* -vf   

 

sudo apt-get update 


   Tip 3

You may also try these commands:

sudo apt-get clean  

 

sudo apt-get autoclean 

 

sudo apt-get autoremove


   Tip 4

Another useful commands:

sudo dpkg --configure -a 

 

sudo apt-get update


    Tip 5

Open Ubuntu Software Center and if prompted to repair broken packages, click simply the repair button.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值