7

I re-installed mono-runtime due to this error and it is solved.
But now I want to uninstall it (but in Ubuntu 13.10). So this is what happens:

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.

I looked at this very popular post but in this case I'm not installing a package. So not very sure

Any idea?


Additional info:

  • My /var/log/dist-upgrade/apt.log file is empty.
  • The command dpkg --get-selections | grep hold returns nothing
Lucio
  • 18,843

1 Answers1

8

arg! It's just apt-get being silly, you need aptitude to solve problems:

sudo apt-get install aptitude
sudo aptitude -fy remove mono-runtime

That should deal with it.


A resume of the problematics packages:

  • libgtk2.0-cil this is really a mono dependency. Unless you use Banshee you won't need it.

    CLI binding for the GTK+ toolkit 2.12

    This package provides the atk-sharp, gdk-sharp, gtk-dotnet, gtk-sharp and pango-sharp assemblies that allow CLI (.NET) programs to use the GTK+ user interface toolkit 2.12, ATK, Pango, GTK.NET and GDK.

    GTK# 2.10 is a CLI (.NET) language binding for the GTK+ 2.10 toolkit

    This package contains the GTK# assemblies

  • libmono*

    Just some mono dependencies, and you want to uninstall it.


All in all, all the packages are easily removable, and I'm actually thinking that they didn't get installed in the first place. You can check using:

dpkg -l libgtk2.0-cil libmono-corlib4.0-cil libmono-system-web-services4.0-cil libmono-system4.0-cil monodoc-manual | grep -v 'ii '

If no package shows, then you can be sure that none were installed in first place and is just apt-get doing your life impossible.

Braiam
  • 67,791
  • 32
  • 179
  • 269
  • This is what I get entering your last command: http://paste.ubuntu.com/6521653/ I have no idea of what does it mean. Should I use aptitude anyway? – Lucio Dec 04 '13 at 20:29
  • aptitude did the job. It has uninstalled every depends package. For example: pinta, monodevelop among others. TL;DR worked as expected. – Lucio Dec 04 '13 at 20:42
  • @Lucio you need aptitude to solve apt weirdness. – Braiam Dec 04 '13 at 20:53
  • apt-get not letting me install aptitude either. I'm really stuck. Please help me with any suggestions before I try a fresh install of 14.04. – SY_13 Feb 26 '16 at 18:56