Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mono fails to install/uninstall

  1. #1
    Join Date
    Sep 2005
    Beans
    23

    Mono fails to install/uninstall

    Specifically, libgtk2.0-cil, seems to be giving me a world of trouble.
    I tried to install mono so that I could use an application. When it went to install libgtk2.0-cil, everything broke. I've tried to reinstall, purge, remove, and each time it fails. I've gone through a few iterations of trying to get things to remove cleanly to start fresh, so there are a few packages that are dependent on libgtk2.0-cil causing issues as well.. but thats to be expected.

    Code:
    me@home:/media$ sudo apt-get purge libgtk2.0-cil
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libmono0 libgluezilla libglib2.0-bin libglib2.0-dev libmono-dev libjs-xmlextras libgdiplus
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      libglade2.0-cil libgtk2.0-cil
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 2,978kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 176376 files and directories currently installed.)
    Removing libglade2.0-cil ...
    rm: cannot remove `/usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac': No such file or directory
    dpkg: error processing libglade2.0-cil (--remove):
     subprocess installed post-removal script returned error exit status 1
    Removing libgtk2.0-cil ...
    rm: cannot remove `/usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac': No such file or directory
    dpkg: error processing libgtk2.0-cil (--remove):
     subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
     libglade2.0-cil
     libgtk2.0-cil
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I tried, and cannot locate the files it notes; `/usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac. I tried to create them real quick with touch, it removes what I make but still does not uninstall and still gives the err.

    Can anyone offer assistance on removing this so that I can start fresh?

  2. #2
    Join Date
    Sep 2005
    Beans
    23

    Re: Mono fails to install/uninstall

    Would there be a better sub-forum to take this to by chance?

    Sorry for being antsy.

  3. #3
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Mono fails to install/uninstall

    Quote Originally Posted by chomafin View Post
    Specifically, libgtk2.0-cil, seems to be giving me a world of trouble.
    I tried to install mono so that I could use an application. When it went to install libgtk2.0-cil, everything broke. I've tried to reinstall, purge, remove, and each time it fails. I've gone through a few iterations of trying to get things to remove cleanly to start fresh, so there are a few packages that are dependent on libgtk2.0-cil causing issues as well.. but thats to be expected.

    Code:
    me@home:/media$ sudo apt-get purge libgtk2.0-cil
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libmono0 libgluezilla libglib2.0-bin libglib2.0-dev libmono-dev libjs-xmlextras libgdiplus
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      libglade2.0-cil libgtk2.0-cil
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 2,978kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 176376 files and directories currently installed.)
    Removing libglade2.0-cil ...
    rm: cannot remove `/usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac': No such file or directory
    dpkg: error processing libglade2.0-cil (--remove):
     subprocess installed post-removal script returned error exit status 1
    Removing libgtk2.0-cil ...
    rm: cannot remove `/usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac': No such file or directory
    dpkg: error processing libgtk2.0-cil (--remove):
     subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
     libglade2.0-cil
     libgtk2.0-cil
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I tried, and cannot locate the files it notes; `/usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac. I tried to create them real quick with touch, it removes what I make but still does not uninstall and still gives the err.

    Can anyone offer assistance on removing this so that I can start fresh?
    Looks like the package didn't install fully, so it's getting confused.

    Try this:

    echo "/usr/share/cli-common/policies.d/libgtk2.0-cil/policy.2.6.gtk-dotnet.dll" | sudo tee /usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac
    echo "/usr/share/cli-common/policies.d/libglade2.0-cil/policy.2.8.glade-sharp.dll" | sudo tee /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac

    Should fix it up enough to remove... although I wonder why it's broken in the first place
    Understanding is a three-edged sword: Your side, their side, and the truth

  4. #4
    Join Date
    Jan 2011
    Beans
    22

    Re: Mono fails to install/uninstall

    I tried the solution above, previously i just used touch to add the 2 files to trick dpkg into thinking its there and to remove libgtk2.0-cil but during the process it would erase the 2 files, and then fails to uninstall or purge the package. i've used both apt and aptitude since aptitude allows more options for removing packages. but i still cant rid this dang package and its blocking me from updating, installing, upgrading packages on my fresh 12.04 system. Anyone found another solution?

    btw libgtk2.0-cil is a dep. for mono

  5. #5
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Mono fails to install/uninstall

    Quote Originally Posted by bababooey View Post
    I tried the solution above, previously i just used touch to add the 2 files to trick dpkg into thinking its there and to remove libgtk2.0-cil but during the process it would erase the 2 files, and then fails to uninstall or purge the package. i've used both apt and aptitude since aptitude allows more options for removing packages. but i still cant rid this dang package and its blocking me from updating, installing, upgrading packages on my fresh 12.04 system. Anyone found another solution?

    btw libgtk2.0-cil is a dep. for mono
    You get *EXACTLY* the same error when you run the two echo commands above, then remove the package?
    Understanding is a three-edged sword: Your side, their side, and the truth

  6. #6
    Join Date
    May 2012
    Beans
    1

    Re: Mono fails to install/uninstall

    Hi,

    Quote Originally Posted by directhex View Post
    You get *EXACTLY* the same error when you run the two echo commands above, then remove the package?

    Yep, me too. I tried to execute :

    while echo -n "" ; do touch /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac ; done

    But It doesn't work.
    Finaly, I had to edit
    /var/lib/dpkg/info/libgtk2.0-cil.postrm and /var/lib/dpkg/info/libglade2.0-cil.postrm
    to put "return 0" after "#!/bin/sh"

    (and maybe suppress last lines of /var/lib/dpkg/info/libgtk2.0-cil.list and /var/lib/dpkg/info/libglade2.0-cil.list )

  7. #7
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Mono fails to install/uninstall

    Quote Originally Posted by ngwad View Post
    while echo -n "" ; do touch /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac ; done
    Sorry, I don't understand. Did you try what I suggested or not? Those files need content for the GAC registration to be handled correctly, you can't just touch them
    Understanding is a three-edged sword: Your side, their side, and the truth

  8. #8
    Join Date
    Jun 2012
    Beans
    3

    Re: Mono fails to install/uninstall

    Hi!

    I'm running debian Squeeze for a start but wanted to ask if there's anything new on this. Google brought me here because of the exact same problem. I can't install or uninstall mono-runtime (or libgdiplus) because of this:


    Entfernen von libglade2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac
    dpkg: Fehler beim Bearbeiten von libglade2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Entfernen von libgtk2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac
    dpkg: Fehler beim Bearbeiten von libgtk2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Entfernen von libglib2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.6.glib-sharp.installcligac
    dpkg: Fehler beim Bearbeiten von libglib2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Fehler traten auf beim Bearbeiten von:
    libglade2.0-cil
    libgtk2.0-cil
    libglib2.0-cil
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    (that's removing)

    I'm glad for any help provided.

  9. #9
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Mono fails to install/uninstall

    Quote Originally Posted by Clonkonaut View Post
    Hi!

    I'm running debian Squeeze for a start but wanted to ask if there's anything new on this. Google brought me here because of the exact same problem. I can't install or uninstall mono-runtime (or libgdiplus) because of this:


    Entfernen von libglade2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac
    dpkg: Fehler beim Bearbeiten von libglade2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Entfernen von libgtk2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.6.gtk-dotnet.installcligac
    dpkg: Fehler beim Bearbeiten von libgtk2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Entfernen von libglib2.0-cil ...
    E: File does not exist: /usr/share/cli-common/packages.d/policy.2.6.glib-sharp.installcligac
    dpkg: Fehler beim Bearbeiten von libglib2.0-cil (--remove):
    Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
    configured to not write apport reports
    Fehler traten auf beim Bearbeiten von:
    libglade2.0-cil
    libgtk2.0-cil
    libglib2.0-cil
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    (that's removing)

    I'm glad for any help provided.
    Blow away the "bad" .installcligac files from /usr/share/cli-common/packages.d, uninstall, reinstall.

    But I have to stress: your situation is absolutely impossible unless you either have disk corruption, or have done some VERY evil things to your mono install.
    Understanding is a three-edged sword: Your side, their side, and the truth

  10. #10
    Join Date
    Jun 2012
    Beans
    3

    Re: Mono fails to install/uninstall

    Hey thanks for answering
    The packages.d directory is empty, so nothing to blow away. Should there be something in it?

    If it's a disc corruption, I hope that my vServer provider will take of this

    I don't know what kind of bad things I did to mono. I had a clean install of the OS, then installed mono-runtime, afterwards mono-complete because I was lacking some files I needed for my application.
    Then I had the probably stupid notion that mono-runtime is now consuming disc space and I removed that. That's when the errors showed up.
    I tried to fix it with a "clean" install of mono-complete again but removing/installing is now impossible.

    Anything I could do except deleting stuff from /usr/share/cli-common/packages.d then?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •