I have done alot of searching and can't figure out how to fix my ubuntu installation.
I have a dual boot system with windows 7 (I can boot into windows fine). When I try to boot ubuntu from grub as per usual, it now goes into kernel panic complaining
error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
This happened a while back and I haven't got around to fixing it until now. I can't remember what caused this (I assume a failed update). I can't use recovery mode as it gives the same issue nor any of the older kernels still installed.
I have tried booting into text mode or single mode, but it always fails the same way with the above error.
I have tried booting via a live usb stick and have managed to mount the root directories and chroot into them. However I can't do a
sudo apt-get update ; sudo apt-get upgrade
due to the same issue. Even trying to do ls in a directory fails with the above error.
I would really appreciate any advice on how to get the ubuntu up and running again.
I have tried copying the libpcre.so.3.13.1
from the live cd to the /lib/x86_64-linux-gnu/
on the harddisk, and then linked it in the same folder to libpcre.so.3
. Unfortuately that didn't work either. I can't find any useful log of the failed boot to share to help with the debugging.
Please let me know if there is any additional information I can provide to help debug the issue.
sudo ldconfig
help?/lib/x86_64-linux-gnu/
directory or you can usefind
utils to find the file. Follow this guide to restore and check your ld path. GUIDE/lib/i386-linux-gnu/libpcre.so.3
I made a link of it back to/lib/
I then triedsudo ldconfig
, but it still doesn't work. I however get a different error messageroot@ubuntu:/lib/x86_64-linux-gnu# sudo ldconfig sudo: error while loading shared libraries: libpcre.so.3: wrong ELF class: ELFCLASS32
I'm guessing I have the 32bit version installed and that is screwing up the 64bit operating system/lib/i386-linux-gnu/libpcre.so.3
in/lib
. After that boot into your live system, download mirrors.kernel.org/ubuntu/pool/main/p/pcre3/… and extract the file viadpkg -x libpcre3_8.31-2ubuntu2.1_amd64.deb foo
and copy the content offoo
into your/
of your system.