error: failed to synchronize all databases (unable to lock database)

The problem:

The solution:

sudo rm /var/lib/pacman/db.lck removes the lock of the package database that pacman created when a package is about to get altered. This mechanism prevents a different instance of pacman to perform simultaneous changes but the lock can sometimes remain stale

More about pacman troubleshooting: https://wiki.archlinux.org/title/Pacman#Troubleshooting


Leave a comment

Discover more from /root

Subscribe now to keep reading and get access to the full archive.

Continue reading