我尝试安装 mono-devel 并输入sudo apt-get mono-devel
在终端中。但失败了,得到以下结果:
~# apt-get install mono-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mono-devel : Depends: libgamin0 but it is not installable
Depends: libgnomeui-0 (>= 2.22.0) but it is not installable
Depends: libmono-cil-dev (= 4.2.3.4-0xamarin2) but it is not going to be installed
Recommends: mono-csharp-shell but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried apt-get -f install
但仍然不行。有人可以帮忙吗?谢谢!
您可能在 Linux 发行版中下载了错误的 PPA。
echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
安装过程中提到的 PPA 存储库单一项目 https://www.mono-project.com/download/stable/#download-lin-debian网站适用于 UBUNTU (Debian 10),不适用于其他发行版(可能是),如上所述here https://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives.
解决方案:
- Delete
mono-official-stable.list
文件输入/etc/apt/sources.list.d/
folder.
- Run
sudo apt update
.
- 最后,运行
sudo apt install mono-devel
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)