package libnunit2.4-cil 2.4.7+dfsg-6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 9

Bug #805717 reported by John Pitz
100
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nunit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

You appear to have modified parts of the mono installation which can cause upgrade problems of this type:

** (/usr/lib/mono/2.0/gacutil.exe:2705): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: Could not load type 'Mono.Tools.Driver' from assembly 'gacutil, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

It is still unclear what causes the installation to get modified, please report if you remember what could have changed the installation (e.g. installing mono from source) and attach the modified /usr/lib/mono/2.0/mscorlib.dll to the bug.

To fix the issue try reinstalling libmono-corlib2.0-cil which will revert your modifications:
sudo apt-get install --reinstall libmono-corlib2.0-cil

Original report:
The Ubuntu software center seems to have a bug where if a previously installed package had a problem every attempt to install or remove additional software fails. I am unable to find the entry in the gui for the original failed install, monodoc viewer it think, if anyone could tell me how to fix this I would greatly appreciate it. This bug seems to be in Ubuntu Software Center

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: libnunit2.4-cil 2.4.7+dfsg-6
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Mon Jul 4 18:05:40 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 9
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
SourcePackage: nunit
Title: package libnunit2.4-cil 2.4.7+dfsg-6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 9
UpgradeStatus: Upgraded to natty on 2011-06-06 (28 days ago)

Revision history for this message
John Pitz (crustacean) wrote :
affects: ubuntu → nunit (Ubuntu)
Changed in nunit (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Taylor (jtaylor) wrote :

you appear do have modified the corlib:
Dependencies.txt:
libmono-corlib2.0-cil 2.6.7-5ubuntu3 [modified: usr/lib/mono/2.0/mscorlib.dll]

do you recall why you changed it, or which program could ahve changed it?

apt-get install --reinstall libmono-corlib2.0-cil
should fix the upgrade issue

Revision history for this message
John Pitz (crustacean) wrote : Re: [Bug 805717] Re: package libnunit2.4-cil 2.4.7+dfsg-6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 9

Julian,

A while ago I tried installing a parallel copy of Mono in order to get
an upgraded mono installation. I have read that on Ubunto systems you
should not tamper with the mono installation. Anyway I needed an
updated version of Mono to run a .NET program for work. I ended up
running into too many problems with that process so I bought a winxp
seat and installed it in virtualbox. Expensive and frustrating as Mono
should have been capable of running it, but the workaround that was
recommended was taking up far too much time. Is there any possibility
of decoupling mono from Ubuntu a little bit so that it can be kept up to
date? What happens if security vulnerabilities are found in the version
of Mono that Ubuntu is apparently built upon?

Anyway, I do not recall which files I needed to modify, and would have
to search for the instructions on installing parallel versions of Mono
to refresh my memory as to what I did and where I stopped. I don't
think I got very far.

By the way thank you, that appears to have solved a very frustrating
problem.

John

On Tue, 2011-08-16 at 17:26 +0000, Julian Taylor wrote:
> you appear do have modified the corlib:
> Dependencies.txt:
> libmono-corlib2.0-cil 2.6.7-5ubuntu3 [modified: usr/lib/mono/2.0/mscorlib.dll]
>
> do you recall why you changed it, or which program could ahve changed
> it?
>
> apt-get install --reinstall libmono-corlib2.0-cil
> should fix the upgrade issue
>

Revision history for this message
Julian Taylor (jtaylor) wrote :

you should be able to run a decoupled mono, but you should make sure it does not install anything into folders controlled by the package manager (/usr/lib/, /usr/bin, ... ). Commonly used folders which are save are e.g. /usr/local, /opt/, /srv or your home folder.
when building from source the installation folder is usually set with ./configure --prefix=/folder/mono
If the installation has problems finding the libraries you may have to set the MONO_PATH environment variable to tell the runtime where the newer libraries are.

Security updates are backported to the stable releases of debian and ubuntu if the issue is severe enough.

Julian Taylor (jtaylor)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.