apt-get messed up
Hi guys,
I am currently switching from Windows to GNU/Linux. The bad habit of throw libs into system32 folder made me break the apt-get command. I copied a library from my DEBIAN Lenny 32bit to my DEBIAN Lenny 64bit. Code:
# scp root@DEBIAN:/usr/lib/libstdc++.so.6 . Code:
apt-get: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32 I googled this but all the information is out of date or is wrong. However, too many people asked to run this commands. Hope will be useful for you: Code:
# file /usr/lib/libstdc++.so.6 Thanks in advance. |
Looks like you learned an important lesson about not messing around with important system files. Anyhow, /usr/lib/libstdc++.so.6 is in the libstdc++6 package. I'd suggest that you locate the .deb file for libstdc++6 on your install media, purge the old package from your system, and simply reinstall it with "dpkg -i" (you might need to add the --force-all option to dpkg). The procedure is roughly described in this article, however as your apt-get is broken you'll need to do everything with dpkg directly instead of using apt-get. Alternatively, you might try just extracting the libstdc++.so.6.0.10 file from the .deb file and copying it over the bad 32 bit version (instructions for extracting files from .deb packages may be found here.
Good luck and in the future please think twice before messing with critical system libraries (at least it wasn't glibc that you overwrote ;-)). |
It was a netinstall. I've just replaced the file like you said and it's working again :)
Thanks man! |
Quote:
i am facing the same problem, apt-get and synaptic package manager is not responding , could you please describe me what did you do in details, my knowledge is just scratch, so i need little steps to be known, i am using ubuntu 10.04. when i type in root apt-get then i see the following message apt-get: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64 also in my case all icons on desktop are disappeared, how ever i can see the desktop items in shell, many thanks in advance |
All times are GMT -5. The time now is 11:19 PM. |