Skip to content

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.

24 points

upvote! this worked the best for me, thanks a ton

2 points

There is nothing more exciting than watching people with broken systems in #archlinux

23 points

as a person who goes by gtmanfred on #archlinux... i wish I was just watching

6 points
unknown author

Deleted before we saved it.

6 points

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/.

Most importantly...

DO NOT USE --force.

20 points

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.

9 points

Never use --force during this update

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

8 points

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.)

2 points

Why the hell is --force an option even?

2 points

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.

2 points

Anyone know the reasoning behind this change?

15 points

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.

27 points

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.

18 points

Warning: this update doesn't work with fglrx yet, and I'd advise against trying it until fglrx is updated.

10 points

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... ;)

3 points

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. :(

2 points

Just remove it, update, install it back and it’ll work.

I just did that with no issue.

2 points

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.

7 points

The wonders of the adrenaline-rush due to impending system doom! ;)

12 points

Whoa. How did you fix it?

7 points

Boot to your Arch install media.

# 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

16 points
unknown author

Deleted before we saved it.

1 points

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.

1 points

Aside from two pacsave files I'd got these in /lib:

error: cannot determine ownership of directory '/lib/modules'
error: cannot determine ownership of directory '/lib/modules/3.1.9-2-ARCH'
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.usbmap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.pcimap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.seriomap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.isapnpmap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.ieee1394map
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.ofmap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.ccwmap
error: No package owns /lib/modules/3.1.9-2-ARCH/modules.inputmap
error: cannot determine ownership of directory '/lib/modules/3.1.9-1-ARCH'
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.usbmap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.pcimap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.seriomap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.isapnpmap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.ieee1394map
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.ofmap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.ccwmap
error: No package owns /lib/modules/3.1.9-1-ARCH/modules.inputmap
error: cannot determine ownership of directory '/lib/modules/3.2.6-1-ARCH'
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.symbols
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.builtin.bin
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.alias
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.dep.bin
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.symbols.bin
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.dep
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.softdep
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.alias.bin
error: No package owns /lib/modules/3.2.6-1-ARCH/modules.devname
error: cannot determine ownership of directory '/lib/modules/3.2.6-2-ARCH'
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.symbols
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.builtin.bin
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.alias
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.dep.bin
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.symbols.bin
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.dep
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.softdep
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.alias.bin
error: No package owns /lib/modules/3.2.6-2-ARCH/modules.devname

After moving these somewhere else, updating glibc worked.

6 points

These files are left over sometimes when depmod is run after a kernel update.

If there are no further files in there, you can safely run

rm -rf /lib/modules
10 points

I safely did the same thing. No issues after rebooting, so everything looks good.

1 points

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)

5 points

Went relatively smoothly for me. I use a custom kernel so had to move /lib/modules and /lib/firmware.

4 points
unknown author

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.

1 points

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

3 points

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.

1 points

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.

3 points

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.

2 points

I got broken links afterward, should I fix them or remove them?

ls -l /lib*
lrwxrwxrwx 1 root root 7 Jul  7 06:09 /lib -> usr/lib
lrwxrwxrwx 1 root root 7 Jul  7 06:13 /lib64 -> usr/lib

Ok, you can't see, but they are definitely red.

1 points

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.

1 points

Ah, you're right. Using usr/lib looks to give bash a donk but changing to the directory does work though. Appreciate the note.

1 points

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.

1 points

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.

1 points

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!

0 points

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.

0 points

Thanks. That may help me. I did the same thing with multilibs. I'll have a look tomorrow.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.