exists in filesystem on upgrading Arch Linux

When you upgrade your arch linux using pacman, you might see the following error:

$ sudo pacman -Syu


stfl: /usr/lib/ exists in filesystem`

The message means that /usr/lib/ was created by some reason and it isn’t managed by pacman. Ok…, but how can we confirm that?

Run the following command:

$ sudo pacman -Qo /usr/lib/

The result of the above command should be like this if is owned by pacman:

/usr/lib/ is owned by stfl 0.24-4

So how can we resolve the above error? Let’s run the following command:

$ sudo pacman -Syu --overwrite /usr/lib/

This is a recommended solution, but try the following command if you encounter an error:

$ sudo rm /usr/lib/
$ sudo pacman -Syu

Be careful not to remove managed


comments powered by Disqus