我在 Ubuntu 18.04 中做了一个sudo apt update
。sudo apt upgrade
需要安装大约 60MB,主要是 libmono 内容。在安装过程中,它开始反复显示有关错误的相同文本。
我希望这是提供代码的可接受的方式,我是该网站的新手,不知道如何正确格式化它。
https://github.com/Etheraex/Apt-error/blob/master/Error
我尝试卸载 mono 和 monodevelop(我实际上并没有使用它们;我只是想看看 C# 开发在 Linux 上如何进行),但它不允许我这样做。
还:
home@Mladen-PC:~/Desktop/123$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13:
Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-
frontend), are you root?
home@Mladen-PC:~/Desktop/123$ sudo !!
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
mono-devel : Depends: ca-certificates-mono (= 5.18.0.225-
0xamarin1+ubuntu1804b1) but 5.16.0.220-0xamarin4+ubuntu1804b1 is
installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be
caused
by held packages.
E: Unable to correct dependencies
禁用并启用 mono 的 ppa 后sudo apt --fix-broken install
开始显示与 github 文件中相同的输出。
答案1
已修复,如果有人遇到同样的问题,这里有一个线程链接。 https://old.reddit.com/r/linuxquestions/comments/a9nukf/regular_update_messed_something_upubuntu_1804/