Broken libglib on debian 6
So, some time ago I wanted to update mpd to the newest version which required a newer version of libglib, so I compiled them from source as I was on debian oldstable and couldn't find an easier way of doing that. For various reasons I didn't have access to that system again until now. When I tried to run mpd it gave me the following error:
Code:
mpd/usr/bin/mpd: symbol lookup error: /usr/bin/mpd: undefined symbol: g_malloc_n failed! Code:
root@nibelung:~# apt-get --reinstall install libglib2.0 |
Can you post the contents of your /etc/apt/sources.list file.
You are clearly having dependency issues as you can see from the error messages. Is there any reason for using such an old version of Debian? In any event you can get the oldstable version of libglib2.0 which is version 2.24.2-1 so you don't really need to compile it from source. jdk |
The reason I still have oldstable is because I'm using OpenMediaVault. Here's my sources file:
Code:
# |
OpenMediaVault makes the following claim:
Quote:
jdk |
Well, the thing is I wanted mpd 1.6 which required libglib >= 2.31.8 on amd64, which I couldn't get via apt-get, as oldstable goes up to 2.24.2.
Quote:
|
But in your first post you presented a reinstall. So that means the package was already installed. Why did you want to reinstall it?
jdk |
I'm sorry, I wasn't clear. Having mpd installed I had libglib installed too. My first attempt was to try and install libglib but apt tried to install some additional libglib packages (such as libglib2.0-dev or libglib2.0-doc) and reported libglib to be at the newest version, also giving me the following error which is very similar with the one from the reinstall:
Code:
* Installing 1 assembly from libglib2.0-cil into Mono |
And does your system now report broken packages? If so, which ones?
jdk |
apt-get check doesn't return anything. I should mention that I just found some libglib files in /usr/local/lib and I suspect they may be from me.
Code:
root@nibelung:~# ls -la /usr/local/lib |
Quote:
jdk |
I would do that, but a lot of stuff depends on glib, and removing it would remove them too. Is there any way to remove the problematic packages without removing everything that depends on them?
|
You can do a simulation (in aptitude it's the -s option) of removing glib without actually removing it. That will give you an idea of what other packages would be removed. It's not a big deal to copy that list and then paste it back into a future command installing all the files that were removed when you removed glib.
jdk |
Just to make sure, removing the packages won't delete their settings, right?
|
So I tried removing libglib, but this happened:
Code:
root@nibelung:~# apt-get -s remove libglib2.0-0 Code:
root@nibelung:~# mv /var/lib/dpkg/info/libglib2.0-cil.* /tmp/ Code:
root@nibelung:~# apt-get install collectd gettext intltool libatk1.0-0 libcroco3 libcurl4-openssl-dev libdbus-glib-1-2 libglib2.0-0 libglib2.0-0-dbg libglib2.0-0-refdbg libglib2.0-cil libglib2.0-cil-dev libglib2.0-data libglib2.0-dev libgsf-1-114 libidn11-dev libmono-corlib2.0-cil libmono-posix2.0-cil libmono-security2.0-cil libmono-system2.0-cil libpango1.0-0 libqt4-dbus libqt4-network libqt4-sql libqt4-sql-sqlite libqt4-xml libqtcore4 librrd4 libsigc++-2.0-dev mono-2.0-gac mono-gac mono-runtime mumble-server openmediavault pkg-config python-dbus python-gobject rrdtool Reading package lists... Done |
Quote:
jdk |
All times are GMT -5. The time now is 12:56 PM. |