dpkg fails to run after update (error: file triggers record mentions illegal package name `libgtk2.0-0' (for interest in file `/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules'): ambiguous package name 'libgtk2.0-0' with more than one installed instance)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Critical
|
Adam Conrad |
Bug Description
dpkg 1.16.3ubuntu1 aborts with an error if any multiarch libraries are installed which declare triggers. The error message looks like this:
dpkg: error: file triggers record mentions illegal package name `libgtk2.0-0' (for interest in file `/usr/lib/
This makes it impossible to install any further packages with the dpkg command until the triggers file is updated for the new syntax.
To fix the triggers file, run the following command from a terminal:
arch=$(dpkg --print-
This will correct the dpkg configuration and allow you to proceed with the upgrade.
dpkg 1.16.3ubuntu2 will be released later today with a fix for this issue. Users who have not yet upgraded to dpkg 1.16.3ubuntu1 in quantal are advised to wait for 1.16.3ubuntu2 before upgrading.
Original bug description below.
Here’s the log from the upgrade.
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
db4.8-util debhelper dpkg-dev gimp-resynthesizer haskell-platform
haskell-
libc6-dev libc6-dev-i386 libc6-i386 libdpkg-perl libghc-
libghc-cairo-dev libghc-cairo-prof libghc-diagrams-dev libghc-diagrams-doc
libghc-gio-dev libghc-gio-prof libghc-glut-dev libghc-glut-prof
libghc-
libghc-mtl-dev libghc-mtl-prof libghc-network-dev libghc-network-prof
libghc-
libghc-
libghc-syb-prof libghc-text-dev libghc-text-prof libghc-
libghc-
liblapack3gf libnm-glib-vpn1 lilypond-data nmh xz-utils
The following packages will be upgraded:
debsums dpkg liblzma5 libsyncdaemon-1.0-1 multiarch-support
python-
7 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
Need to get 2,294 kB of archives.
After this operation, 44.0 kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 2,294 kB in 2s (794 kB/s)
(Reading database ... 447277 files and directories currently installed.)
Preparing to replace dpkg 1.16.1.2ubuntu8 (using .../dpkg_
Unpacking replacement dpkg ...
Processing triggers for man-db ...
dpkg: error: file triggers record mentions illegal package name `libgtk2.0-0' (for interest in file `/usr/lib/
dpkg-query: error: file triggers record mentions illegal package name `libgtk2.0-0' (for interest in file `/usr/lib/
debsums: dpkg-query --admindir=
${PackageSpec}
${binary:Package}
${Version}
${Status}
${Conffiles}
${Replaces}
--show failed (exit status 2)
E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/
E: Sub-process returned an error code
E: Sub-process /usr/bin/dpkg returned an error code (2)
Related branches
Changed in dpkg (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Adam Conrad (adconrad) |
summary: |
- dpkg: error: file triggers record mentions illegal package name - `libgtk2.0-0' (for interest in file `/usr/lib/x86_64-linux- - gnu/gtk-2.0/2.10.0/immodules'): ambiguous package name 'libgtk2.0-0' - with more than one installed instance + dpkg fails to run after update (error: file triggers record mentions + illegal package name `libgtk2.0-0' (for interest in file + `/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules'): ambiguous package + name 'libgtk2.0-0' with more than one installed instance) |
description: | updated |
description: | updated |
I was able to get past the dpkg error by manually editing /var/lib/ dpkg/triggers/ File, then running
dpkg --add-architecture amd64
dpkg --add-architecture i386
apt-get -f install
but I’m not sure everything is quite right yet so I don’t yet recommend this.