我最近尝试在 ubuntu 14.04 上安装几个软件包,但都失败了。起初我以为只是一个软件包的问题,但其实这是 apt-get 的普遍失败。例如:
$ mono
The program 'mono' is currently not installed. You can install it by typing:
sudo apt-get install mono-runtime
当我尝试安装时:
$ sudo apt-get install mono-runtime
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-signed-image-3.16.0-62-generic : Depends: linux-image-3.16.0-62-generic (= 3.16.0-62.83~14.04.1) but 3.16.0-62.82~14.04.1 is to be installed
mono-runtime : Depends: mono-runtime-sgen (= 3.2.8+dfsg-4ubuntu1.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我认为 14.04 可能已经过时了,所以我考虑升级。但更新程序因请求者而崩溃:
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
我取消点击并删除了所有第三方存储库。同样的错误。我该如何恢复?到底出了什么问题?
答案1
删除并清除所有第三方存储库后,运行“sudo apt-get update && sudo apt-get install -f && sudo apt-get dist-upgrade -y”
希望有帮助,谢谢