• sync failure of pacman database


    Hi there

    Fora few days I have not been able to install updates. When I click on the software update icon, I get a pop-up window stating “Error : synchronization failure. Impossible to lock database.”

    Has anyone noted anything similar recently ? Any hints ?

    I am on Gnome,if it matters.

    Thanks for your support

  • @squid-f

    sudo rm /var/lib/pacman/db.lck

  • Hi,

    super, it worked ! Thanks !

    Do you know why / how the database has been locked ? Did I do something wrong ?

    Thanks

  • The same thing happened to me as well, which I was able to fix thanks to sudo rm /var/lib/pacman/db.lck . I’m also wondering, what’s the cause of this issue?

  • from the arch wiki

    “Failed to init transaction (unable to lock database)” error
    When pacman is about to alter the package database, for example installing a package, it creates a lock file at /var/lib/pacman/db.lck. This prevents another instance of pacman from trying to alter the package database at the same time.
    If pacman is interrupted while changing the database, this stale lock file can remain. If you are certain that no instances of pacman are running then delete the lock file:

synchronization1 database9 update46 Posts 5Views 1257
Log in to reply