You are not logged in.
I think this entire /lib episode should at least drive home the importance of system backups.
And an excellent advertisement for pacmatic...
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@mini,
What does the output of the other (find) command from the wiki give? You need to deal with unowned files and directories under lib/ as well...
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Hello everybody.
I updated my system a few days ago, and it appeared to have a problem regarding glibc (mentioned in the news http://www.archlinux.org/news/the-lib-d … a-symlink/ ). I didn't read these news at that time, and i used the --force option with pacman. Now the system is broke. What should i do?
Thanks for your help.
Offline
Hello everybody.
I updated my system a few days ago, and it appeared to have a problem regarding glibc (mentioned in the news http://www.archlinux.org/news/the-lib-d … a-symlink/ ). I didn't read these news at that time, and i used the --force option with pacman. Now the system is broke. What should i do?
Thanks for your help.
Check the info in the pink box on this page:
Offline
Merging with the glibc stickied thread...
Offline
EDIT: Found the answer a short while after posting. I didn't realize Issue 1 of https://wiki.archlinux.org/index.php/De … iki:usrlib applied to me, having read and dismissed it early on while having other issues well before running into this one. Sorry!
I've read over all the posts I can find here, but I'm still unable to complete my update. GCC 4.7.1-1 seems to be the holdout, but refuses to update to 4.7.1-4 even with --ignore glibc set due to an unmet dependency on the new glibc. Any help would be appreciated.
find /lib -exec pacman -Qo -- {} +
error: cannot determine ownership of directory '/lib'
/lib/libc.so.6 is owned by glibc 2.15-12
/lib/libpthread.so.0 is owned by glibc 2.15-12
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.15-12
/lib/libnss_files-2.15.so is owned by glibc 2.15-12
/lib/librt.so.1 is owned by glibc 2.15-12
/lib/libmemusage.so is owned by glibc 2.15-12
/lib/libcidn-2.15.so is owned by glibc 2.15-12
/lib/libutil.so.1 is owned by glibc 2.15-12
/lib/libnss_nis.so.2 is owned by glibc 2.15-12
/lib/libanl.so.1 is owned by glibc 2.15-12
/lib/libresolv-2.15.so is owned by glibc 2.15-12
/lib/libthread_db-1.0.so is owned by glibc 2.15-12
/lib/libnss_hesiod.so.2 is owned by glibc 2.15-12
/lib/libpthread-2.15.so is owned by glibc 2.15-12
/lib/libdl-2.15.so is owned by glibc 2.15-12
/lib/libnss_compat-2.15.so is owned by glibc 2.15-12
/lib/libcrypt.so.1 is owned by glibc 2.15-12
/lib/libc-2.15.so is owned by glibc 2.15-12
/lib/libnss_db.so.2 is owned by glibc 2.15-12
/lib/libpcprofile.so is owned by glibc 2.15-12
/lib/libcidn.so.1 is owned by glibc 2.15-12
/lib/libthread_db.so.1 is owned by glibc 2.15-12
/lib/libresolv.so.2 is owned by glibc 2.15-12
/lib/libdl.so.2 is owned by glibc 2.15-12
/lib/ld-2.15.so is owned by glibc 2.15-12
/lib/libnss_nisplus-2.15.so is owned by glibc 2.15-12
/lib/librt-2.15.so is owned by glibc 2.15-12
/lib/libSegFault.so is owned by glibc 2.15-12
/lib/libnsl-2.15.so is owned by glibc 2.15-12
/lib/libnss_dns-2.15.so is owned by glibc 2.15-12
/lib/libm-2.15.so is owned by glibc 2.15-12
/lib/libnss_hesiod-2.15.so is owned by glibc 2.15-12
/lib/libBrokenLocale.so.1 is owned by glibc 2.15-12
/lib/libnss_files.so.2 is owned by glibc 2.15-12
/lib/cpp is owned by gcc 4.7.1-1
/lib/libutil-2.15.so is owned by glibc 2.15-12
/lib/libanl-2.15.so is owned by glibc 2.15-12
/lib/libm.so.6 is owned by glibc 2.15-12
/lib/libcrypt-2.15.so is owned by glibc 2.15-12
/lib/libnss_nis-2.15.so is owned by glibc 2.15-12
/lib/libBrokenLocale-2.15.so is owned by glibc 2.15-12
/lib/libnss_dns.so.2 is owned by glibc 2.15-12
/lib/libnsl.so.1 is owned by glibc 2.15-12
/lib/libnss_compat.so.2 is owned by glibc 2.15-12
/lib/libnss_nisplus.so.2 is owned by glibc 2.15-12
/lib/libnss_db-2.15.so is owned by glibc 2.15-12
grep '^lib/' /var/lib/pacman/local/*/files
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/cpp
/var/lib/pacman/local/glibc-2.15-12/files:lib/
/var/lib/pacman/local/glibc-2.15-12/files:lib/ld-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/ld-linux-x86-64.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libSegFault.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libanl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libanl.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libc-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libc.so.6
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libdl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libdl.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libm-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libm.so.6
/var/lib/pacman/local/glibc-2.15-12/files:lib/libmemusage.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpcprofile.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread.so.0
/var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/librt-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/librt.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db-1.0.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libutil-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libutil.so.1
Thank you!
Last edited by Zeta Syanthis (2012-07-18 04:19:06)
Offline
I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.
Only command that worked was cd, not vim, nano, nothing!
I had to shutdown on laptop power button, and tried to boot, some kernel panic.
What now? I was following the directions give on the wiki and this thread and baaam.
Offline
I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.
Unfortunately you misread the wiki, the instructions state to remove all files *not* owned by a package.
As for how to recover, boot a livecd (or to some other recovery shell), mount your partitions, and reinstall glibc.
Offline
ephan wrote:I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.
Unfortunately you misread the wiki, the instructions state to remove all files *not* owned by a package.
As for how to recover, boot a livecd (or to some other recovery shell), mount your partitions, and reinstall glibc.
Any useful link on how I can mount my partitions from a live cd? And to reinstall glibc, I nede to boot Arch, right?
Also, what about all the executables, they are gone, right? Mouting my partitions will bring them back? Also, I didn't misread the wiki, I misread the thread, I'm very sure some post said that :S Too bad, I guess I can't trust everything.
Offline
I followed this post https://wiki.archlinux.org/index.php/De … iki:usrlib and I have deleted the /lib direcotry. Now I cannot boot my system, so I am really in a serious issue, any help would be appreciated.
regards
Offline
I followed this post https://wiki.archlinux.org/index.php/De … iki:usrlib and I have deleted the /lib direcotry. Now I cannot boot my system, so I am really in a serious issue, any help would be appreciated.
No, you misread it, it doesn't say to delete /lib.
Any useful link on how I can mount my partitions from a live cd? And to reinstall glibc, I nede to boot Arch, right?
Also, what about all the executables, they are gone, right? Mouting my partitions will bring them back? Also, I didn't misread the wiki, I misread the thread, I'm very sure some post said that :S Too bad, I guess I can't trust everything.
mount /dev/whatever /mnt/whatever
If you boot an Arch livecd you can use pacman to reinstall glibc.
pacman -r /mnt/whatever -S glibc
The executables are not gone, but the linker is and so they can't be loaded, hence the error. Reinstalling glibc will fix this.
Offline
Shall I do mount /dev/sda1 /mnt/temporarymount?
Offline
If /dev/sda1 is your root partition, yes.
Offline
If /dev/sda1 is your root partition, yes.
I am a bit lost here. I have 4 partitions:
/dev/sda1 boot
/dev/sda2 (no idea)
/dev/sda3 root
/dev/sda4 home
Do I need to mount all of them?
Offline
Mount sda3 to /mnt/arch and sda1 to /mnt/arch/boot The home partition is not necessary. If sda2 is /var, then you'll have to mount that to /mnt/arch/var, too.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I do not know how I can know what sda2, but I do know the file system is linux-swap, so nothing to do with it, right?
Offline
I do not know how I can know what sda2, but I do know the file system is linux-swap, so nothing to do with it, right?
You shouldn't need it with the LiveCD when you are recovering your system. If you happen to need it swapon /dev/sda2, but just to recover you won't need it.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
So, I mounted everything as you said, and I still get kernel panic when booting Arch on hard disk. Any ideas?
Offline
@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?
Offline
@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?
I can't install glib if I can't boot, can I? So, the answer is no.
Offline
Strike0 wrote:@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?
I can't install glib if I can't boot, can I? So, the answer is no.
boot from cd. Mount root, /var and /boot. Install glibc from cache in mounted arch. pacman -U -r /mnt/arch /mnt/arch/var/cache/pacman/pkg/glibc.... Unmount. Reboot.
Last edited by progandy (2012-07-18 19:32:20)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
On my Linode VPS I get this:
$ find /lib -exec pacman -Qo -- {} +
error: cannot determine ownership of directory '/lib'
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1
/lib/ld-2.16.so is owned by glibc 2.16.0-1
/lib/libmemusage.so is owned by glibc 2.16.0-1
/lib/libanl-2.16.so is owned by glibc 2.16.0-1
/lib/libutil-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
/lib/libc.so.6 is owned by glibc 2.16.0-1
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/modules'
error: cannot determine ownership of directory '/lib/modules/2.6.35.4-x86_64-linode16'
error: No package owns /lib/modules/2.6.35.4-x86_64-linode16/modules.dep
error: cannot determine ownership of directory '/lib/modules/2.6.39.1-x86_64-linode19'
error: No package owns /lib/modules/2.6.39.1-x86_64-linode19/modules.dep
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-1
/lib/libdl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_files-2.16.so is owned by glibc 2.16.0-1
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libm-2.16.so is owned by glibc 2.16.0-1
/lib/libSegFault.so is owned by glibc 2.16.0-1
/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-1
/lib/librt-2.16.so is owned by glibc 2.16.0-1
/lib/libc-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-1
/lib/libpthread.so.0 is owned by glibc 2.16.0-1
/lib/libcrypt-2.16.so is owned by glibc 2.16.0-1
/lib/libthread_db.so.1 is owned by glibc 2.16.0-1
/lib/libnsl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/libpthread-2.16.so is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
/lib/libresolv-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-1
/lib/libresolv.so.2 is owned by glibc 2.16.0-1
/lib/libcidn.so.1 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
I guess this mean I have to wait for Linode to update the kernel package and move the modules out of /lib before I can do any more updates. Or would it be safe to remove /lib/modules/2.6.39.1-x86_64-linode19 (the only file in there is modules.dep)? I am being very cautious since I can't exactly use a LiveCD on my VPS.
Offline
Which kernel are you using? The linode files mentioned in your list are specific for two 2.6 kernels. If you don't use them you should be able to remove them.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I think the kernel is provided by Linode, it doesn't seem to be in the package manager (or even the root filesystem). I'm not quite sure how VPSes work to be honest, I'm just a user ;-)
uname -r reports 2.6.39.1-x86_64-linode19
Offline
I checked the Linode forum and apparently it's safe to remove /lib/modules
Offline