You are not logged in.

#1 2012-07-17 10:00:45

mibadt
Member
Registered: 2009-09-25
Posts: 396

Lost all my /usr/lib files in trial so solve glib dependency

Hi,
Failing to upgrade my Arch_X86-64 system due to glibc dependencies, I've followed an advice in the forum and tried to move (as root) all files in usr/lib to a (temporary, initially empty) directory I've created. Now I can't see any files, neither in /usr/lib nor in the backup direvtory (see terminal output below).
Please advise how to restore my system?

thanks

Miki Badt

copy of terminal output

root /usr/lib # mv * /lib_back/
root /usr/lib # pacman -Syu
pacman: error while loading shared libraries: libalpm.so.7: cannot open shared object file: No such file or directory
root /usr/lib # mv /lib_back/* .
mv: error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory
root /usr/lib # ls
ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
root /usr/lib # cd /lib_back/
root /lib_back # ls
ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
root /lib_back # cd /usr/lib
root /usr/lib # ls
ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
root /usr/lib # 

Best regards,
Michael Badt

Offline

#2 2012-07-17 10:08:08

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Lost all my /usr/lib files in trial so solve glib dependency

You'll need to boot a livecd and restore from there.

Offline

#3 2012-07-17 10:08:59

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 224
Website

Re: Lost all my /usr/lib files in trial so solve glib dependency

boot from arch iso and chroot into your system

(eg. mount /dev/sda1 /mnt && chroot /mnt)

and revert your commands, simple as that !


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

#4 2012-07-17 10:13:28

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Lost all my /usr/lib files in trial so solve glib dependency

Thanks, I'll try


Best regards,
Michael Badt

Offline

Board footer

Powered by FluxBB