我一直在将我的 ubuntu 13.10 升级到 14.04 LTS,在安装过程中,我意外断电,之后我尝试打开我的机器,它显示红色图标和错误消息
以下是屏幕截图:
当我单击此按钮时,它会显示一条错误消息:
An error occurred, please run Package Manager from the right-click from the right click window or apt-get in a terminal to see what is wrong. The error message was:
'Error:BrokenCount >0'.
This usually means that your installed installed packages have unmet dependencies
专家建议运行这个命令:
sudo apt-get -f install
我收到以下错误
dpkg: error processing package libreadline6:i386 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
libreadline6:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
而且更新管理器不工作
以下是截图:
我一直在寻找,但找不到解决这个问题的方法
答案1
该包应该仍然在包缓存中,因此尝试
cd /var/cache/apt/archives
sudo dpkg -i libreadline6_6.2-9ubuntu1_i386.deb
或者你可以从以下位置下载软件包http://packages.ubuntu.com/saucy/libreadline6