我重新安装了 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
不返回任何内容
答案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 绑定
此软件包提供了允许 CLI 的 atk-sharp、gdk-sharp、gtk-dotnet、gtk-sharp 和 pango-sharp 程序集(。网)程序使用 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 会让您无法完成任务。