Today is a bad day…

I wanted to migrate from desktop release 15.04 to desktop release 16.04, but the process stopped with an error. OK, I was able to continue working, but when I wanted to reboot my laptop, I got this error message :

libpcre.so.3 cannot open shared object file















and the system stayed hang …

Normaly, this library must be present in “/lib/x86_64-linux-gnu” directory, I suposed it was not the case.

How to fix this error ?

Download any Linux live CD (SystemRescueCd for example). If you have a windows PC, you can use Rufus utility to burn an USB key.

OK ? Boot with this USB key :















Launch “vgscan” to display your volume group :

root@wou-laptop:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "ubuntu-vg" using metadata type lvm2

Perfect, display logical volumes :

root@wou-laptop:~# lvscan ACTIVE '/dev/ubuntu-vg/root' [918,87 GiB] inherit ACTIVE '/dev/ubuntu-vg/swap_1' [11,89 GiB] inherit

Mount this logical volume :

root@wou-laptop:~# mount /dev/ubuntu-vg/root /mnt














Retrieve the missing library

What I did ? I used another Ubuntu Desktop (same release) do download the missing files.

Here this Ubuntu Desktop running system :

root@wou-ProLiant-MicroServer-Gen8:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Here is package I need to download :

root@wou-ProLiant-MicroServer-Gen8:~# dpkg -l | grep pcre3
ii  libpcre3:amd64                             2:8.38-3.1                                                  amd64        Perl 5 Compatible Regular Expression Library - runtime files

Download this package :

root@wou-ProLiant-MicroServer-Gen8:~# cd /tmp
root@wou-ProLiant-MicroServer-Gen8:/tmp# curl -LO http://ch.archive.ubuntu.com/ubuntu/pool/main/p/pcre3/libpcre3_8.38-3.1_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  217k  100  217k    0     0  52703      0  0:00:04  0:00:04 --:--:-- 52714

Extract files from this packet :

root@wou-ProLiant-MicroServer-Gen8:/tmp# mkdir pcre3
root@wou-ProLiant-MicroServer-Gen8:/tmp# dpkg -x /tmp/libpcre3_8.38-3.1_amd64.deb /tmp/pcre3

Files are here :

root@wou-ProLiant-MicroServer-Gen8:/tmp# ll /tmp/pcre3/lib/x86_64-linux-gnu/
total 456
drwxr-xr-x 2 root root   4096 Okt 18 21:45 ./
drwxr-xr-x 3 root root   4096 Mär 25  2016 ../
lrwxrwxrwx 1 root root     17 Mär 25  2016 libpcre.so.3 -> libpcre.so.3.13.2
-rw-r--r-- 1 root root 456632 Mär 25  2016 libpcre.so.3.13.2

Then, I used a second USB key to copy files from this up & running Ubuntu deskptop to the first one…


PDF24 Creator    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *