On 21/11/16 08:25, Stephen Kitt wrote: > Package: mono-gac > Version: 4.6.1.3+dfsg-8 > Severity: normal > > Dear Maintainer, > > This might be a variant of #671607, but just in case: upgrading mono > failed for me today with > > Setting up mono-gac (4.6.1.3+dfsg-8) ... > ! Assembly > /usr/share/cli-common/policies.d/libnunit-core2.6.3-cil/policy.2.6.nunit.core.dll > does not exist > ! Assembly > /usr/share/cli-common/policies.d/libnunit-core-interfaces2.6.3-cil/policy.2.6.nunit.core.interfaces.dll > does not exist > ! Assembly > /usr/share/cli-common/policies.d/libnunit-framework2.6.3-cil/policy.2.6.nunit.framework.dll > does not exist > > There are no nunit files in /usr/share/cli-common/policies.d. > > Installing libnunit-core2.6.3-cil and libnunit-framework2.6.3-cil > fixes the issue.
I think I know what the bug might be here. /var/lib/dpkg/info/libnunit-core2.6.3-cil.postrm should be part of /var/lib/dpkg/info/libnunit-core2.6.3-cil.prerm - as-is, the postrm *could* get called in an order where /usr/share/cli-common/policy-remove fails (e.g. when uninstalling all of mono), so the `rm /usr/share/cli-common/packages.d/$POLICY.installcligac` never gets called due to the `set -e` This bug could well be 10 years old. Huh.