我无法为Linux Mint apt-install install mono。由于我不确定自己在这里做什么,所以我以为我只是问过。我到处都在寻找其他解决方案,但似乎都没有。
我事先运行了以下命令:
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
我尝试了以下单声道安装:
sudo apt-get install mono-complete
sudo apt-get install monodevelop
sudo apt-get install mono-devel
我还为以上所有内容进行了build-dep。 我得到的错误是:E:子进程/ usr / bin / dpkg返回了错误代码(1)
我尝试删除存储库并重新安装,但错误仍然存在。我也跑了,得到了以下内容:
sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of mono-devel:
mono-devel depends on mono-roslyn (= 5.18.1.28-0xamarin5+ubuntu1804b1); however:
Package mono-roslyn is not installed.
dpkg: error processing package mono-devel (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
mono-devel
jack@jack-Lenovo-ideapad-330-15IKB:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of mono-devel:
mono-devel depends on mono-roslyn (= 5.18.1.28-0xamarin5+ubuntu1804b1); however:
Package mono-roslyn is not installed.
dpkg: error processing package mono-devel (--configure):
我尝试安装mono-roslyn等,并得到相同的错误。我不太确定该从哪里去。我是Mono和Linux的新手,所以我希望我能忽略一些东西。
答案 0 :(得分:0)
我不仅仅是您的数据库条目已损坏。请尝试以下操作:
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
现在再次安装软件包。
如果上述方法无效,请遍历this forum,其中提到了此问题的所有详细说明。