apt-get: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found

shatter

Member
Nov 27, 2009
74
0
6
Hello *,

after an apt-get Update/Upgrade I can't start neither APT-GET nor APTITUDE any more:
Code:
nwivz:~# apt-get
apt-get: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by apt-get)
apt-get: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libapt-pkg-libc6.7-6.so.4.6)

nwivz:~# aptitude
aptitude: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by aptitude)
aptitude: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libapt-pkg-libc6.7-6.so.4.6)
aptitude: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libept.so.0)
aptitude: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libxapian.so.15)
nwivz:~#
Host versions:
Code:
nwivz:~# pveversion -v
pve-manager: 1.5-10 (pve-manager/1.5/4822)
running kernel: 2.6.24-10-pve
proxmox-ve-2.6.24: 1.5-21
pve-kernel-2.6.24-10-pve: 2.6.24-21
pve-kernel-2.6.24-8-pve: 2.6.24-16
qemu-server: 1.1-16
pve-firmware: 1.0-5
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.23-1pve11
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.4-1

nwivz:~# uname -a
Linux nwivz 2.6.24-10-pve #1 SMP PREEMPT Tue Dec 29 10:16:15 CET 2009 x86_64 GNU/Linux
I already tried to reinstall APTITUDE, as suggested before:

Code:
cd ~ && wget http://mirrors.kernel.org/debian/pool/main/a/aptitude/aptitude_0.4.11.11-1~lenny1_amd64.deb && dpkg -i aptitude_0.4.11.11-1~lenny1_amd64.deb
but receive the same result.

Any suggestions?
Do I really have to re-install Proxmox?

Joachim
 
do you have the log from the upgrade?
 
do you have the log from the upgrade?

No, sorry.

I have followed an advice to reinstall the packages:
Code:
dpkg -i *.deb
Now I get:
Code:
nwivz:/usr/lib# apt-get
apt-get: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32

nwivz:/usr/lib# ls -l libstdc++.so.6*
lrwxrwxrwx 1 root root     26 Jan  2 15:49 libstdc++.so.6 -> libstdc++.so.6.0.10.32-bit
-rw-r--r-- 1 root root 971048 Sep 25 12:55 libstdc++.so.6.0.10.32-bit
-rwxr-xr-x 1 root root 973680 Nov 17 21:13 libstdc++.so.6.0.8

nwivz:/usr/lib# file  libstdc++.so.6.0.8
libstdc++.so.6.0.8: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
If I replace the symbolic link so it points to "libstdc++.so.6.0.8" I get the same error message as before:

Code:
nwivz:/usr/lib# apt-get
apt-get: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by apt-get)
apt-get: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libapt-pkg-libc6.7-6.so.4.6)
j.
 
Please can you post your apt sources list? (/etc/apt/sources.list)

Sure.

Code:
nwivz:~# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian lenny main contrib

# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian lenny pve

# security updates
deb http://security.debian.org/ lenny/updates main contrib

nwivz:~#

Joachim