错误,pkgProblemResolver::Resolve在卸载Mono时产生了冲突。

我因为这个错误重新安装了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.

我看了一下这篇非常受欢迎的帖子,但在这种情况下我不是在安装一个软件包。所以不太确定。
有什么想法吗?
附加信息:
- 我的 `/var/log/dist-upgrade/apt.log` 文件是空的。 - 命令 `dpkg --get-selections | grep hold` 没有返回任何结果。

你是怎么安装 mono 的?我觉得在13.10版本中默认没有安装。 - user25656
无法记起,但很可能是 sudo apt-get install mono-runtime - Lucio
可能的答案? - Manish Sinha
不行,不行。那个答案没有解决问题,而且我也没有保管包裹。 - Lucio
即使我没有"/var/log/dist-upgrade/apt.log",也许这个错误是在删除mono后提示与其相关的其他内容将无法正常工作。 - Sukupa91
1个回答

arg!这只是apt-get在闹脾气,你需要aptitude来解决问题:
sudo apt-get install aptitude
sudo aptitude -fy remove mono-runtime

那应该解决了。
问题包的简历:
- libgtk2.0-cil 这是一个真正的mono依赖。除非你使用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* 只是一些mono依赖项,你想卸载它。
总的来说,所有的软件包都可以很容易地卸载,而且我实际上认为它们一开始就没有被安装。你可以使用以下命令进行检查:
dpkg -l libgtk2.0-cil libmono-corlib4.0-cil libmono-system-web-services4.0-cil libmono-system4.0-cil monodoc-manual | grep -v 'ii '

如果没有显示任何软件包,则可以确定一开始没有安装任何软件包,只是apt-get让你的生活变得不可能。

这是我输入您最后一条命令后得到的结果:http://paste.ubuntu.com/6521653/ 我不知道它的意思。我是否应该继续使用aptitude - Lucio
aptitude完成了工作。它已卸载了所有的依赖包。例如:pinta、monodevelop等等。总结一下,结果如预期。 - Lucio
@Lucio 你需要有才能来解决这种奇怪的问题。 - Braiam
apt-get也不让我安装aptitude。我真的陷入困境了。在我尝试重新安装14.04之前,请帮我提供任何建议。 - SY_13