I had same problem, after simply running apt-get upgrade
. Somehow got mixed packages: i386 and amd64 at the same time.
First, I edited /var/lib/dpkg/triggers/File
and removed all lines having :i386
, then ran:
sudo dpkg --configure -a
This deleted libglib*
and one other package (it was a replacement of lib-glib
with another name).
After multiple apt-get clean
, apt-get check
, apt-get upgrade
(I do not remember right actions now) I finnally got dpkg -l
working, filtered all packages for the wrong architecture (I have 64-bit kubuntu, so all i386 are wrong for me):
dpkg -l | grep ":amd" | awk '{print "\""$2"\""}'
Modified the output to put it all that into a single line and ran:
sudo dpkg --purge <dpkg output in single line>
All i386 packages were gone and I could then proceed with my upgrade.
apt-get
finishes with the same error – Fernando May 07 '12 at 12:38