E: 错误,pkgProblemResolver::Resolve 在卸载 Mono 时产生中断

Luc*_*cio 6 mono apt

由于此错误,我重新安装了 mono-runtime并已解决。
但现在我想卸载它(但在 Ubuntu 13.10 中)。所以这就是发生的事情:

hogar@hogar-desktop:~$ sudo apt-get purge mono-runtime
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:
 libgtk2.0-cil : Depends: libmono-cairo4.0-cil (>= 2.10.1) but it is not going to be installed
                 Depends: libmono-system-drawing4.0-cil (>= 1.0) but it is not going to be installed
 libmono-corlib4.0-cil : Depends: mono-runtime (>= 2.10.8.1) but it is not going to be installed
                         Depends: mono-runtime (< 2.10.8.2) but it is not going to be installed
                         Recommends: libmono-i18n-west4.0-cil but it is not going to be installed
 libmono-system-web-services4.0-cil : Depends: libmono-system-configuration4.0-cil (>= 1.0) but it is not going to be installed
                                      Depends: libmono-system-enterpriseservices4.0-cil (>= 1.0) but it is not going to be installed
                                      Depends: libmono-system-web4.0-cil (>= 2.10.3) but it is not going to be installed
 libmono-system4.0-cil : Depends: libmono-security4.0-cil (>= 2.10.1) but it is not going to be installed
                         Depends: libmono-system-configuration4.0-cil (>= 1.0) but it is not going to be installed
                         Depends: mono-runtime (>= 2.10.8.1) but it is not going to be installed
                         Depends: mono-runtime (< 2.10.8.2) but it is not going to be installed
 monodoc-manual : Depends: monodoc-browser but it is not going to be installed or
                           monodoc-http but it is not going to be installed or
                           monodoc-viewer
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Run Code Online (Sandbox Code Playgroud)

我看了这篇非常受欢迎的帖子,但在这种情况下,我没有安装软件包。所以不是很确定

任何的想法?


附加信息:

  • 我的/var/log/dist-upgrade/apt.log文件是空的。
  • 该命令不dpkg --get-selections | grep hold返回任何内容

Bra*_*iam 7

啊!只是 apt-get 很傻,你需要有解决问题的能力:

sudo apt-get install aptitude
sudo aptitude -fy remove mono-runtime
Run Code Online (Sandbox Code Playgroud)

那应该处理它。


问题包的简历:

  • libgtk2.0-cil这真的是一个单声道依赖。除非您使用 Banshee,否则您将不需要它。

    GTK+ 工具包 2.12 的 CLI 绑定

    这个包提供了 atk-sharp、gdk-sharp、gtk-dotnet、gtk-sharp 和 pango-sharp 程序集,允许 CLI (.NET)程序使用 GTK+ 用户界面工具包 2.12、ATK、Pango、GTK.NET 和 GDK .

    GTK# 2.10 是 GTK+ 2.10 工具包的 CLI (.NET) 语言绑定

    这个包包含 GTK# 程序集

  • libmono*

    只是一些单声道依赖项,您想卸载它。


总而言之,所有软件包都可以轻松移除,而且我实际上认为它们一开始就没有安装。您可以使用以下方法检查:

dpkg -l libgtk2.0-cil libmono-corlib4.0-cil libmono-system-web-services4.0-cil libmono-system4.0-cil monodoc-manual | grep -v 'ii '
Run Code Online (Sandbox Code Playgroud)

如果没有显示软件包,那么您可以确定没有安装任何软件包,只是 apt-get 使您的生活变得不可能。