apt-get install 陷入未满足的依赖关系循环中

apt-get install 陷入未满足的依赖关系循环中

我尝试安装 monodevelop 但未能安装“msbuild”:

Errors were encountered while processing:
     /var/cache/apt/archives/msbuild_1%3a16.6+xamarinxplat.2020.04.29.14.43-0xamarin5+raspbian9b1_all.deb

现在,当我尝试安装任何东西时,它会抱怨 msbuild 并中止安装:

sudo apt-get install cc65
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 monodevelop : Depends: msbuild but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我已经尝试了建议的方法apt --fix-broken install,看起来它正在尝试重新安装msbuild,但仍然失败。我也尝试过其他几种方法运气不好的话,包括删除缓存的*.deb文件。

我该如何纠正这个循环?

答案1

最简单的解决办法就是去掉monodevelop包;然后apt将停止尝试满足其依赖性。

或者,您可以修复导致msbuild安装失败的任何原因;在“遇到错误”消息之前应该有错误消息,解释这些错误是什么。

相关内容