You are not logged in.
Hi, I accidentally messed up my /lib when I was creating an isolated chroot enviroment. I made a typo by running cp -R /lib ./lib (Huh? I was in the chroot dir). So after I discovered that my /lib is completely erased, I restored it from the backup (from chroot env where I copied whole /lib few minutes ago) using busybox because cp/ls etc... commands was throwing errors. Now, as I restored /lib from backup I run into issue that pacman is now messed up too when I executed "yaourt -S $(pacman -Qeq) --noconfirm" because I can't install anything so I'm trying to do a full package reinstall:
Proceed with installation? [Y/n]
(317/317) checking package integrity [############################################################] 100%
(317/317) loading package files [############################################################] 100%
(317/317) checking for file conflicts [############################################################] 100%
(317/317) checking available disk space [############################################################] 100%
( 1/317) upgrading glibc [############################################################] 100%
error: extract: not overwriting dir with file lib
error: problem occurred while upgrading glibc
Generating locales...
cs_CZ.UTF-8... done
sk_SK.UTF-8... done
Generation complete.
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
Using pacman -S glibc --force will remove /lib, so that's not working. Is it possible to do a full reinstall without rebooting arch? Like ignoring that changes in /lib or by unpacking some tgz into / with base arch system and than reinstalling every package (like that yaourt -S $(pacman -Qeq) --noconfirm) ? (I can't reboot because of the running server and some important stuff which I'm working on). I found something which may help: https://wiki.archlinux.org/index.php/In … ion_Chroot but is it safe to reinstall system in this way without destroying it/or reboot?
Thanks for any help.
[Update]
I found this thread: https://bbs.archlinux.org/viewtopic.php?pid=1127823
Is it possible to move /lib to the another temporary dir, unpack glibc package into root and than reinstall glibc via pacman all without rebooting my system?
Last edited by intense.feel (2012-07-14 22:30:46)
Offline
Thanks, it's working!
(mv /lib /old_lib && /old_lib/ld-linux.so.2 /bin/ln -s /usr/lib /lib && yaourt -S $(pacman -Qeq) --noconfirm)
Offline
Offline
intense.feel wrote:Thanks, it's working!
(mv /lib /old_lib && /old_lib/ld-linux.so.2 /bin/ln -s /usr/lib /lib && yaourt -S $(pacman -Qeq) --noconfirm)This is a ridiculous thing to do. Do not do this.
eeevv... too late, but it's working (system is fully functional) and all packages has been reinstalled without errors.
Offline