hopper333
May 21st, 2010, 10:51 AM
I recently upgraded from a very stable 8.04 server (amd64) -> 10.04 server via the normal route i.e. do a last update and safe-upgrade on 8.04 and then dist-upgrade -> 10.04.
The update-manager kicked in and downloaded a lot of files, then started installing them over my previous installation as expected. Some way through this I noticed a bunch of errors from dpkg as downloaded files couldn't be configured. At the end, there were a lot of errors so I set about removing things that seemed to be involved. They all seemed related to gnome and gtk apps and libraries so I removed a lot of this stuff and took it down to the bare bones i.e. ssh, samba, ufw and it all seems to be working fine (albeit with a gigantic memory footprint with nothing running what is all this ureadahead stuff doing on a server?). However, when I try to install anything even remotely desktop'y (e.g. synaptic, gnuplot, gedit) I am back in dependency hell.
I am really not used to this - my experience of debian and ubuntu in the past has been excellent package management. The common feature when the packages can't be configured is messages like the following:
undefined symbol: g_malloc0_n
which leads me to think that glib, gnome or gtk may be involved. A very common dependency which cannot be installed (even though there has been a recent update on the repos) is shared-mime-info.
Here is some output from aptitude when I recently tried to install gnuplot and the usual suspects couldn't be configured:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up shared-mime-info (0.71-1ubuntu2) ...
update-mime-database.real: symbol lookup error: update-mime-database.real: undefined symbol: g_malloc0_n
dpkg: error processing shared-mime-info (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of libgtk2.0-0:
libgtk2.0-0 depends on shared-mime-info; however:
Package shared-mime-info is not configured yet.
dpkg: error processing libgtk2.0-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libwxgtk2.8-0:
libwxgtk2.8-0 depends on libgtk2.0-0 (>= 2.17.5); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libwxgtk2.8-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnuplot-x11:
gnuplot-x11 depends on libwxgtk2.8-0 (>= 2.8.10.1); however:
Package libwxgtk2.8-0 is not configured yet.
dpkg: error processing gnuplot-x11 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnuplot:
gnuplot depends on gnuplot-x11 (>= 4.2.6-1); however:
Package gnuplot-x11 is not configured yet.
dpkg: error processing gnuplot (--configure):
depenNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk2.0-bin:
libgtk2.0-bin depends on libgtk2.0-0 (>= 2.20.0-0ubuntu4); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgtk2.0-bin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
shared-mime-info
libgtk2.0-0
libwxgtk2.8-0
gnuplot-x11
gnuplot
libgtk2.0-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm quite happy at the command line so if anyone can suggest some dpkg, apt-get or aptitude commands to diagnose or resolve this issue then I would really appreciate it. I don't mean "use -f to force it" but something to work out why it has happened and make sure it doesn't happen again. Feel free to ask for more diagnostic output if you need it.
Many thanks in advance
Michael
The update-manager kicked in and downloaded a lot of files, then started installing them over my previous installation as expected. Some way through this I noticed a bunch of errors from dpkg as downloaded files couldn't be configured. At the end, there were a lot of errors so I set about removing things that seemed to be involved. They all seemed related to gnome and gtk apps and libraries so I removed a lot of this stuff and took it down to the bare bones i.e. ssh, samba, ufw and it all seems to be working fine (albeit with a gigantic memory footprint with nothing running what is all this ureadahead stuff doing on a server?). However, when I try to install anything even remotely desktop'y (e.g. synaptic, gnuplot, gedit) I am back in dependency hell.
I am really not used to this - my experience of debian and ubuntu in the past has been excellent package management. The common feature when the packages can't be configured is messages like the following:
undefined symbol: g_malloc0_n
which leads me to think that glib, gnome or gtk may be involved. A very common dependency which cannot be installed (even though there has been a recent update on the repos) is shared-mime-info.
Here is some output from aptitude when I recently tried to install gnuplot and the usual suspects couldn't be configured:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up shared-mime-info (0.71-1ubuntu2) ...
update-mime-database.real: symbol lookup error: update-mime-database.real: undefined symbol: g_malloc0_n
dpkg: error processing shared-mime-info (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of libgtk2.0-0:
libgtk2.0-0 depends on shared-mime-info; however:
Package shared-mime-info is not configured yet.
dpkg: error processing libgtk2.0-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libwxgtk2.8-0:
libwxgtk2.8-0 depends on libgtk2.0-0 (>= 2.17.5); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libwxgtk2.8-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnuplot-x11:
gnuplot-x11 depends on libwxgtk2.8-0 (>= 2.8.10.1); however:
Package libwxgtk2.8-0 is not configured yet.
dpkg: error processing gnuplot-x11 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnuplot:
gnuplot depends on gnuplot-x11 (>= 4.2.6-1); however:
Package gnuplot-x11 is not configured yet.
dpkg: error processing gnuplot (--configure):
depenNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk2.0-bin:
libgtk2.0-bin depends on libgtk2.0-0 (>= 2.20.0-0ubuntu4); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgtk2.0-bin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
shared-mime-info
libgtk2.0-0
libwxgtk2.8-0
gnuplot-x11
gnuplot
libgtk2.0-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm quite happy at the command line so if anyone can suggest some dpkg, apt-get or aptitude commands to diagnose or resolve this issue then I would really appreciate it. I don't mean "use -f to force it" but something to work out why it has happened and make sure it doesn't happen again. Feel free to ask for more diagnostic output if you need it.
Many thanks in advance
Michael