libstfl.so.0 exists in filesystem on upgrading Arch Linux

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

$ sudo pacman -Syu

(Abbreviated)

stfl: /usr/lib/libstfl.so.0 exists in filesystem`

The message means that /usr/lib/libstfl.so.0 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/libstfl.so.0

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

/usr/lib/libstfl.so.0 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/libstfl.so.0

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

$ sudo rm /usr/lib/libstfl.so.0
$ sudo pacman -Syu

Be careful not to remove managed libstfl.so.0.

Comments

comments powered by Disqus