在 ubuntu 上安装 mono:mono-devel:依赖:libglib2.0-0 (>= 2.56.3) 但需要安装 2.56.1-2ubuntu1

在 ubuntu 上安装 mono:mono-devel:依赖:libglib2.0-0 (>= 2.56.3) 但需要安装 2.56.1-2ubuntu1

我正在跟进 https://www.mono-project.com/download/stable/#download-lin-ubuntu在 ubuntu 上安装 mono。但是在最后一步我得到了

sudo apt 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: libglib2.0-0 (>= 2.56.3) but 2.56.1-2ubuntu1 is to be installed
              Recommends: mono-csharp-shell but it is not going to be installed
              Recommends: referenceassemblies-pcl but it is not going to be installed
              Recommends: msbuild but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我的 Ubuntu 确实是 18.04。我该怎么办?

更新:

sudo apt -f install; cat /etc/apt/sources.list.d/mono-official-stable.list
[sudo] password for lz: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  android-libadb android-libbase android-libcutils android-liblog
  android-sdk-platform-tools-common gcc-7-base:i386 libboost-random1.62.0 libboost-regex1.62.0
  linux-headers-4.13.0-21 linux-headers-4.13.0-21-generic linux-headers-4.13.0-36
  linux-headers-4.13.0-36-generic linux-image-4.13.0-21-generic linux-image-4.13.0-36-generic
  linux-image-extra-4.13.0-21-generic linux-image-extra-4.13.0-36-generic
  linux-signed-image-4.13.0-21-generic linux-signed-image-4.13.0-36-generic
  linux-signed-image-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
deb https://download.mono-project.com/repo/ubuntu stable-bionic main

相关内容