Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have some weird errors while trying to install packages with software center or even when I try to upgrade packages with sudo apt-get install upgrade:

dpkg: error: file triggers record mentions illegal package name `libglib2.0-0' (for interest in file `/usr/lib/x86_64-linux-gnu/gio/modules'): ambiguous package name 'libglib2.0-0' with more than one installed instance

Previously I had error:

dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'

but I have just removed it with: sudo rm /etc/dpkg/dpkg.cfg.d/multiarch, I guess this post describes this issue - I have followed it, but the last part sudo apt-get install dpkg=1.16.0.3ubuntu5 did not work for me - no such package could be found. Probably it is because I am using ubuntu 12.04.

UPDATE: adter trying to installcorrect version of dpkg 1.16.1.2ubuntu7 as suggested in the answer, I now get following errors:

$ sudo apt-get install dpkg=1.16.1.2ubuntu7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

By the way, this might be also helpful:

$ sudo dpkg --configure -a 
dpkg: error: file triggers record mentions illegal package name `libglib2.0-0' (for interest in file `/usr/lib/x86_64-linux-gnu/gio/modules'): ambiguous package name 'libglib2.0-0' with more than one installed instance

which is actually telling the same thing.

UPDATE: content of (...) modules:

/usr/lib/x86_64-linux-gnu/gio/modules$ ls
giomodule.cache      libgiognutls.so                 libgvfsdbus.so
libdconfsettings.so  libgiolibproxy.so
libgiognomeproxy.so  libgioremote-volume-monitor.so

UPDATE: /var/lib/dpkg/triggers/File

$ sudo grep libglib /var/lib/dpkg/triggers/File 
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0
/usr/lib/gio/modules libglib2.0-0
/usr/share/glib-2.0/schemas libglib2.0-0
/usr/lib/i386-linux-gnu/gio/modules libglib2.0-0:i386
/usr/lib/gio/modules libglib2.0-0:i386
/usr/share/glib-2.0/schemas libglib2.0-0:i386
share|improve this question
    
I have found similar issue here but it has not been solved –  mkk May 9 '12 at 8:22
add comment

3 Answers

no such package could be found. Probably it is because I am using ubuntu 12.04.

The corresponding version for Ubuntu 12.04, as of this date, should be 1.16.1.2ubuntu7.

ia32-libs : Depends: ia32-libs-multiarch but it is not installable

This is a link to the ia32-libs-multiarch page, where you can download the .deb file. Please use dpkg -i filename.deb to manually install it, and if successful, try apt-get again. If not, please update with dpkg error.


I installed ia32 on a test x86_64 system, and got the following for the contents of the triggers File and the contents of giomodule.cache. Please check to see how yours differ:

izx@myprecise:~$ grep libglib /var/lib/dpkg/triggers/File 
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0
/usr/lib/gio/modules libglib2.0-0
/usr/share/glib-2.0/schemas libglib2.0-0
/usr/lib/i386-linux-gnu/gio/modules libglib2.0-0:i386
/usr/lib/gio/modules libglib2.0-0:i386
/usr/share/glib-2.0/schemas libglib2.0-0:i386

izx@myprecise:~$ ls /usr/lib/x86_64-linux-gnu/gio/modules
giomodule.cache      libgiognutls.so                 libgvfsdbus.so
libdconfsettings.so  libgiolibproxy.so
libgiognomeproxy.so  libgioremote-volume-monitor.so

izx@myprecise:~$ cat /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 
libgiognutls.so: gio-tls-backend
libgioremote-volume-monitor.so: gio-native-volume-monitor,gio-volume-monitor
libgvfsdbus.so: gio-vfs,gio-volume-monitor
libgiolibproxy.so: gio-proxy-resolver
libdconfsettings.so: gsettings-backend
libgiognomeproxy.so: gio-proxy-resolver
share|improve this answer
    
thanks, +1 since now I get another error while trying to install it :) feel free to observe my update –  mkk May 9 '12 at 8:18
    
I updated with a link to the deb, please try installing it, sometimes apt-get needs dpkg to give it a little help :) –  izx May 9 '12 at 8:39
    
thanks I tried this, unfortunately I still get error $ sudo dpkg -i ia32-libs-multiarch_20090808ubuntu35_i386.deb dpkg: error: file triggers record mentions illegal package name libglib2.0-0' (for interest in file /usr/lib/x86_64-linux-gnu/gio/modules'): ambiguous package name 'libglib2.0-0' with more than one installed instance –  mkk May 9 '12 at 8:46
    
Can you update question with the content of /usr/lib/x86_64-linux-gnu/gio/modules? If it's big, just the line containing libglib2.0-0 and 2-3 lines before and after it will do. –  izx May 9 '12 at 8:50
    
done - Icannot see libglib2.0-0 there nor anything similar. There is one cache file that looks suspicious –  mkk May 9 '12 at 9:03
show 7 more comments

I had the exact same issues.

I removed the line

/usr/lib/gio/modules libglib2.0-0

from /var/lib/dpkg/triggers/File

Although being a bit of a novice, I'm not sure it was a good idea or not, but it at least removed the error so I could continue.

share|improve this answer
add comment

I had the same problem and the method of the user user76204 worked for me but instead of just deleting /usr/lib/gio/modules libglib2.0-0 from the file /var/lib/dpkg/triggers/File I had to delete all 3:

/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0                                         
/usr/lib/gio/modules libglib2.0-0                                                          
/usr/share/glib-2.0/schemas libglib2.0-0           

I don't know if this going to cause problems in the future but I managed to pass the upgrade for now

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.