Pamac update: unable to lock database, Failed to synchronize databases

Transcript below pretty much sums it up. Any help would be greatly appreciated. Thanks!

[brian@framework ~]$ pamac update
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
Warning: python-pyqt5: local (5.15.6-7.1) is newer than extra (5.15.6-7)
Nothing to do.
Transaction successfully finished.

sudo rm /var/lib/pacman/db.lck
and update again

If you want to deal with that, then upgrade as follows:

pamac upgrade --enable-downgrade

Yes, I know this has nothing to do with the original question.

Also, if you leave it, it should eventually catch up and won’t be a problem. You can choose to leave it as is, no worries if everything works correctly.

This seems to be the stock answer online when you Google. Unfortunately that file does not exist.

[brian@framework ~]$ ls -al /var/lib/pacman/db.lck
ls: cannot access '/var/lib/pacman/db.lck': No such file or directory
1 Like


pamac update --force-refresh

Because, from the man page:

pamac upgrade,update [options]

force the refresh of the databases


Combined with my previous post, I’m taking an educated guess that it’ll be something like this:

pamac upgrade --enable-downgrade --force-refresh

This worked. Thanks!


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.