apt-get常见错误

kevin.Zhu 发布于:2013-1-16 0:31 分类:Debian  有 13 人浏览,获得评论 0 条  

安装错误:“E: Unmet dependencies.”
原因:非正常停止apt-get install *
错误提示:E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
解决方法:sudo apt-get --fix-broken install

错误:E: Could not get lock /var/lib/apt/lists/lock
原因:其他安装非正常结束
错误提示:E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
             E: Unable to lock directory /var/lib/apt/lists/
解决方法:rm /var/lib/apt/lists/lock