Just to report another conflict: udev rules files in /lib/udev/rules.d/. I had a few *.rules files in /lib/udev/rules.d/ that weren't owned by any package. Just move them from /lib/udev/rules.d/ to /usr/lib/udev/rules.d/.
What did you do to fix it? I stupidly did this on my work machine, so now I'm stuck using my laptop til I can take the time to fix it. (Finally got it set correctly on my laptop.)
Well, it can be useful in some situations. In general, it seems to exist for users that know what their doing. To me, it seems like a way to kick the package manager to get what you want.
I only mentioned it in this particular scenario because using '--force' on this update will seriously bork your system. The consequences aren't usually that severe.
To paraphrase what I was told earlier, the reasoning for having them separated was to fit each on the microscopic hard drives common when Unix was being developed, and that reason is gone. So we're going to break everything now to make your hard drive neater.
The old unix FHS conventions aren't so relevant now due to rapid growth in storage (as soullesswanksauce suggests) and also alternative system recovery options. A Linux distribution's motivation to simplify FHS is outweighing reasons for priority-oriented segregation of software.
The one argument against moving /lib to /usr/lib would be that we are complicating the option of segregating levels of volatility of a / mountpoint (containing /bin /sbin and /lib) versus an independent /usr mountpoint. The /usr filesystem is more prone to corruption due to frequent writes, so keeping a barebones system at / has always been a good idea. This change to move all libraries increases the importance of /usr at bootup and perhaps encourages including it on the / mountpoint, thus increasing the volitility of /. Being an oldschool kinda guy, I lean toward that mindset, but realistically, I'm just going to mount an entirely foreign resource full of tools to fix any problems anyway. Throwing gigabytes of removable media all willy nilly like, making sysadmins from the 1970s furious.
Because I am a genius, while screwing around with this I managed to rm -rf /lib (don't ask).
But it was easy enough to fix. I was pretty proud of myself for having gone from "Pretty Damn Stupid" to "Relatively Clever" in the space of about 15 minutes.
# sdX is your root partition
mount -t ext4 /dev/sdX /mnt
# if you have /boot on a separate partition, do:
mount -t ext4 /dev/sdY /mnt/boot
# set up mount points like we're going to chroot, but we're really not
# mount proc, sys, dev
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
This is the point where you'd chroot, but having deleted /lib, I wouldn't be able to chroot anyway (at least as far as I know).
Anyway, having mounted those, I then went:
ifconfig eth0 up
dhcpcd eth0
pacman -Syy
pacman -Suf glibc -r /mnt
pacman -Suf linux -r /mnt
Worked for me, after having screwed things up spectacularly.
My secret hope is that someone finds this post years from now and it helps them solve their similar problem.
edit: I'm retarded and typed /dev where I meant to type /lib
same here :) But my professional paranoia somewhat saved me. I have a hardcoded reflex in me to copy folders somewhere else before deleting them. And when i broke my arch, i just booted from livecd and copied lib folder back.
So I was an idiot and ignored the warning to not use --force. Even more idiotically I tried to reboot into a different distro in another partition to try and fix it, but it turns-out I didn't have it installed it anymore. Since I no longer had glibc not even systemd ran and received kernel panics when trying to boot ... I also didn't have a liveCD or liveUSB. So what do?
Solution without a liveCD or liveUSB after a reboot after using --force
Change your kernel command line and add init=/lib/ld-2.16.so /bin/bash
This will drop you into a command line where no command will work.
Next remount your root read/write using: /bin/ld-2.16.so /bin/mount -o remount,rw /dev/<your_root_device> /
Now prefixing every command with /bin/ld-2.16.so you can execute anything. Including extracting a package from /var/cache/ with glibc in it and put it in /usr/lib. Then with the same prefix you can make the symlink from /lib to /usr/lib
i found a forum post from 2005, the revived in 2010, then revived by me in 2012 to try and keep it near the top of search results that had a similar approach. i tried just moving /lib to a backup location, rather than deleting it. thankfully i still had a root shell open.
YIL something about dynamically linked libraries vs statically linked libraries.
I posted a little guide for fixing some of the issues people have been having with this upgrade. It's post #39 in this thread on the arch forums. Hopefully it will help some people.
had a couple multilib packages installed but commented out multilib section in pacman.conf (by mistake i guess), so the suggested updating method failed and "find /lib -exec pacman -Qo -- {} +" didn't show anything, so i used --force.
then i got my recovery CD.
Very happy to see that this change occurred finally in Arch, did two netinstalls yesterday/last evening and as a result I didn't even realize this change had occurred until after I checked the front page at archlinux.org. Seems that breakage from the change is minimal/nonexistant, at least on a fresh system, so yay for that.
Yet another reminder for everyone that it's probably a good idea to double-check the website for announcements before you do an update just in case there's something you need to be aware of.
I tried everything in the DeveloperWiki, appear to have only glibc oned files left in /lib, but if I remove them (made a backup before I completely broke the install) I can't even use ls. GRRR!
same here. my only thought right now is to copy all the remaining files in /lib to /usr/lib, make the symlink and do the upgrade. I'm almost certain that would work, but is much harder to undo if it doesn't. I'm gonna leave it as it is for now.
Edit: I was wrong. That second command (the grep command) shows that lib/ld-linux.so.2 (which doesn't even exist) is owned by "lib32-glibc". Trying to remove that for now to upgrade, but that seems like a pain too.
Edit 2: Perhaps I'm an idiot. I had all that lib32 stuff installed from some time ago, but at some point disabled multilib in pacman.conf, so all of those installed packages were old. I added multilib back, did an update ignoring glibc, then another update to upgrade glibc and it all worked. Hope this helps someone else.
86 comments
If you're reading this and are now afraid to update consider installing busybox and opening yourself a busybox root shell with "sudo busybox sh"
Then you can happily break /lib and still have a working shell to fix things from.
upvote! this worked the best for me, thanks a ton
There is nothing more exciting than watching people with broken systems in #archlinux
as a person who goes by gtmanfred on #archlinux... i wish I was just watching
Deleted before we saved it.
It's like a game of crossfire in there!
http://i.imgur.com/KPqkl.gif
Sorry, could you stick your nose up in the air a little higher?
Pretty sure it was a joke man, calm down.
I'll come back when you have had a sense of humour transplant, SOZ!
Just to report another conflict: udev rules files in
/lib/udev/rules.d/. I had a few*.rulesfiles in/lib/udev/rules.d/that weren't owned by any package. Just move them from/lib/udev/rules.d/to/usr/lib/udev/rules.d/.Most importantly...
DO NOT USE
--force.That was fun. I couldn't even run ls, or load pages in chromium.
I had some unmanaged files in there, and the rest were owned by glibc, so i thought force would fix that.
all of mine are owned by glibc. Should I manually move them over?
edit: solved my problem. see details
Oooooh.
I did that when I was on [testing]
As such, and the 48 hours it took to fix it, I am no longer on [testing] |3
What did you do to fix it? I stupidly did this on my work machine, so now I'm stuck using my laptop til I can take the time to fix it. (Finally got it set correctly on my laptop.)
Why the hell is --force an option even?
There are probably times where it's a good idea. Besides, it's Linux. We must be able to screw up systems when we want to.
There are times where one should use it. Most recently, this comes to mind: http://www.archlinux.org/news/filesystem-upgrade-manual-intervention-required-1/
Well, it can be useful in some situations. In general, it seems to exist for users that know what their doing. To me, it seems like a way to kick the package manager to get what you want.
I only mentioned it in this particular scenario because using '--force' on this update will seriously bork your system. The consequences aren't usually that severe.
Anyone know the reasoning behind this change?
To paraphrase what I was told earlier, the reasoning for having them separated was to fit each on the microscopic hard drives common when Unix was being developed, and that reason is gone. So we're going to break everything now to make your hard drive neater.
That raises the question, however - Why /lib -> /usr/lib? Why not /usr/lib -> /lib, as one might expect?
The old unix FHS conventions aren't so relevant now due to rapid growth in storage (as soullesswanksauce suggests) and also alternative system recovery options. A Linux distribution's motivation to simplify FHS is outweighing reasons for priority-oriented segregation of software.
The one argument against moving /lib to /usr/lib would be that we are complicating the option of segregating levels of volatility of a / mountpoint (containing /bin /sbin and /lib) versus an independent /usr mountpoint. The /usr filesystem is more prone to corruption due to frequent writes, so keeping a barebones system at / has always been a good idea. This change to move all libraries increases the importance of /usr at bootup and perhaps encourages including it on the / mountpoint, thus increasing the volitility of /. Being an oldschool kinda guy, I lean toward that mindset, but realistically, I'm just going to mount an entirely foreign resource full of tools to fix any problems anyway. Throwing gigabytes of removable media all willy nilly like, making sysadmins from the 1970s furious.
Warning: this update doesn't work with fglrx yet, and I'd advise against trying it until fglrx is updated.
Just uninstall catalyst-utils, catalyst-generator, do the pacman update for glibc.
Once you see lib being symlinked, reinstall both packages and no further issues.
You may invoke 'catalyst_build_module ...' after the update to ensure its working as it will use the newer symlinked /lib.
There will be more updates on the way... ;)
Ended up doing almost exactly that, but installed xf86-video-ati to replace it.
Turns out it's not just fglrx that's buggy and broken. :(
Just remove it, update, install it back and it’ll work.
I just did that with no issue.
Because I am a genius, while screwing around with this I managed to rm -rf /lib (don't ask).
But it was easy enough to fix. I was pretty proud of myself for having gone from "Pretty Damn Stupid" to "Relatively Clever" in the space of about 15 minutes.
The wonders of the adrenaline-rush due to impending system doom! ;)
Whoa. How did you fix it?
Boot to your Arch install media.
This is the point where you'd chroot, but having deleted /lib, I wouldn't be able to chroot anyway (at least as far as I know).
Anyway, having mounted those, I then went:
Worked for me, after having screwed things up spectacularly.
My secret hope is that someone finds this post years from now and it helps them solve their similar problem.
edit: I'm retarded and typed /dev where I meant to type /lib
Deleted before we saved it.
same here :) But my professional paranoia somewhat saved me. I have a hardcoded reflex in me to copy folders somewhere else before deleting them. And when i broke my arch, i just booted from livecd and copied lib folder back.
Aside from two pacsave files I'd got these in /lib:
After moving these somewhere else, updating glibc worked.
These files are left over sometimes when
depmodis run after a kernel update.If there are no further files in there, you can safely run
Thanks, that's what I thought and did.
I safely did the same thing. No issues after rebooting, so everything looks good.
If you've ever used multilib and then disabled it, lib32-glibc may cause issues.
(don't ask my why my multilib was disabled..... I think my last pacman .pacnew merge was fubar)
My multilib is enabled and it's still giving me issues.
Read through this: https://wiki.archlinux.org/index.php/DeveloperWiki:usrlib
Make sure to run: sudo pacman -Syu --ignore glibc && sudo pacman -Su
Went relatively smoothly for me. I use a custom kernel so had to move /lib/modules and /lib/firmware.
Me too. Then again, I read (and followed) the instructions from the Allan's message posted to arch-announce, as well as the guide on the wiki.
So I was an idiot and ignored the warning to not use
--force. Even more idiotically I tried to reboot into a different distro in another partition to try and fix it, but it turns-out I didn't have it installed it anymore. Since I no longer had glibc not even systemd ran and received kernel panics when trying to boot ... I also didn't have a liveCD or liveUSB. So what do?Solution without a liveCD or liveUSB after a reboot after using --force
Change your kernel command line and add
init=/lib/ld-2.16.so /bin/bashThis will drop you into a command line where no command will work.
Next remount your root read/write using:
/bin/ld-2.16.so /bin/mount -o remount,rw /dev/<your_root_device> /Now prefixing every command with
/bin/ld-2.16.soyou can execute anything. Including extracting a package from /var/cache/ with glibc in it and put it in /usr/lib. Then with the same prefix you can make the symlink from /lib to /usr/libi found a forum post from 2005, the revived in 2010, then revived by me in 2012 to try and keep it near the top of search results that had a similar approach. i tried just moving /lib to a backup location, rather than deleting it. thankfully i still had a root shell open.
YIL something about dynamically linked libraries vs statically linked libraries.
If anyone has udev ownership in lib after running
then remove udev-compat and install systemd-tools
then run
pacman -Su
I posted a little guide for fixing some of the issues people have been having with this upgrade. It's post #39 in this thread on the arch forums. Hopefully it will help some people.
had a couple multilib packages installed but commented out multilib section in pacman.conf (by mistake i guess), so the suggested updating method failed and "find /lib -exec pacman -Qo -- {} +" didn't show anything, so i used --force. then i got my recovery CD.
I got broken links afterward, should I fix them or remove them?
Ok, you can't see, but they are definitely red.
Try cd /lib and see if it works before concluding that they are broken.
Don't know why they have used usr/lib instead of /usr/lib, but it works here.
Ah, you're right. Using
usr/liblooks to give bash a donk but changing to the directory does work though. Appreciate the note.i did something semi-stupid: i tried moving, rather than removing, /lib.
in case anybody else does something similar, this 7 year old thread has a very simple solution: http://www.linuxquestions.org/questions/linux-software-2/i-moved-lib-help-309345/
Very happy to see that this change occurred finally in Arch, did two netinstalls yesterday/last evening and as a result I didn't even realize this change had occurred until after I checked the front page at archlinux.org. Seems that breakage from the change is minimal/nonexistant, at least on a fresh system, so yay for that.
Yet another reminder for everyone that it's probably a good idea to double-check the website for announcements before you do an update just in case there's something you need to be aware of.
sudo pacman -Syu --ignore glibc && sudo pacman -S glibc?After following the instructions on on the news page, I found out that my culprit was Mate.
pacman -Rdd mate That removed the offending package and Mate's hold on /lib .
pacman -Su Glib updates just fine (I updated all the other packages first with the ignore glib).
pacman -S mate Reinstalled Mate. It's good as new. Removing packages does not remove configuration files so all of the settings will remain.
I tried everything in the DeveloperWiki, appear to have only glibc oned files left in /lib, but if I remove them (made a backup before I completely broke the install) I can't even use ls. GRRR!
same here. my only thought right now is to copy all the remaining files in /lib to /usr/lib, make the symlink and do the upgrade. I'm almost certain that would work, but is much harder to undo if it doesn't. I'm gonna leave it as it is for now.
Edit: I was wrong. That second command (the grep command) shows that lib/ld-linux.so.2 (which doesn't even exist) is owned by "lib32-glibc". Trying to remove that for now to upgrade, but that seems like a pain too.
Edit 2: Perhaps I'm an idiot. I had all that lib32 stuff installed from some time ago, but at some point disabled multilib in pacman.conf, so all of those installed packages were old. I added multilib back, did an update ignoring glibc, then another update to upgrade glibc and it all worked. Hope this helps someone else.
Thanks. That may help me. I did the same thing with multilibs. I'll have a look tomorrow.
And still i cant update pacman
Congratulations on barreling straight down the road of Gentoo-style brokenness.
Elaborate please.