Wednesday, July 18, 2012

How to solve Glibc "/lib exists in filesystem" on Archlinux Update

I got error when update/upgrade archlinux. The error -> glibc: /lib exists in filesystem. Then i found on archlinux wiki how to solve it.
My machines are acer aspire one 722 & thd px intel atom tablet.
Source to solve it :

These my step to solve it, based on archwiki
1. #pacman -Syu

I got error "glibc /lib exists in filesystem"
2. #pacman -Su --ignore glibc
#pacman -Su --ignore glibc
with this command will upgrade without glibc. for installs that have not been updated during 2012, it will save you some time to do:
pacman -U<arch>.pkg.tar.xz
where <arch> is replaced by i686 or x86_64 as required
3. #rm /lib/udev
4. #grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc
For my machine i got these results (maybe different from yours). On my machine i got plymouth-0.8.4-2 & udev-compat-173-3, just remove these directory.

5. #find /lib -exec pacman -Qo -- {} +
If you found file with "error: No package owns" then you can safely remove these files. These the results of my machine.

After you remove any files with ""error: No package owns", check it again with:
#find /lib -exec pacman -Qo -- {} +
if there's no file with "error: No package owns", then you can continue to pacman -Su
6. #pacman -Su

Everything is ok now. Enjoy.

If you do --force when doing pacman -Syu, maybe you can read how to solve it on this post.

Some snapshot on my machine:

Share on Facebook
Share on Twitter
Share on Google+

Related : How to solve Glibc "/lib exists in filesystem" on Archlinux Update