Wednesday, June 5, 2013

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)

Well, last night i upgrade archlinux on my PC Desktop (32bit) & Netbook (64bit). I got some file exists in filesystems error when doing pacman -Syu.

Here's error on my 32bit machines:

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)


And on my 64bit machines, same as above.

So i went to archlinux.org pages, and there's info/news about "Binaries move to /usr/bin requiring update intervention"

Links:
https://www.archlinux.org/news/binaries-move-to-usrbin-requiring-update-intervention/

Detailed:
1. pacman -Syu
2. You will get error. like above
3. If you using AUR packages, check packages using this command

$ pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -

If you see the result, it's recommended to remove them. (pacman -R)

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)


4. Check package on repo (if you using non official repo)

$ paclist <repo> | awk ' { print $1 } ' | pacman -Ql - | grep ' /s\?bin/\| /usr/sbin/'

<repo> change to your repo list, (core, extra, community, multilib,etc) if you using official repo, then you can skip it.

If you see the result, remove them. (pacman -R)

5. If you have files in /bin, /sbin or /usr/sbin that are unowned by any package, you need to move them. Find a list using:

$ find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null

6. Ok now upgrade system.
$sudo pacman -Su --ignore filesystem,bash

7. Install bash
$sudo pacman -S bash

8. Install filesystem
$sudo pacman -S filesystem
or
$sudo pacman -Su

If you have not cleaned the packages on step 3-5, you will see this error again.

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)

So make sure you have cleaned packages that listed on step 3-5. :D

Here's my result on 32bit system:

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)

And also 64bit system:

/bin, /sbin, /usr/sbin exists in filesystem when upgrading archlinux (2013/6/3)


All system on my machines succesfully updated.

Hope usefull.  Enjoy
^_^
Share on Facebook
Share on Twitter
Share on Google+
Tags :