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
Preparing...
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.
7 Likes

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

Try:

pamac update --force-refresh

Because, from the man page:

pamac upgrade,update [options]

--force-refresh
force the refresh of the databases

Edit:

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

pamac upgrade --enable-downgrade --force-refresh
21 Likes

This worked. Thanks!

10 Likes

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