How to fix “unable to lock database” error in Arch linux

6 Responses

  1. Deepak says:

    hey m unable to delete db.lck file. it showing even cant open.
    plz help me.

  2. Alessandro says:

    Thank you, this article is helpful!

  3. Excellent work! My Manjaro install didn’t show the location of the lock file, so thanks for the guide!

  4. islamux says:

    Thank you , it’s helpful.

  5. mahi says:

    now (21.07.2019) it does not(((

    [… ~]$ sudo pacman -Syu
    [sudo] password for …:
    :: Synchronizing package databases…
    error: failed to update core (unable to lock database)
    error: failed to update extra (unable to lock database)
    error: failed to update community (unable to lock database)
    error: failed to update multilib (unable to lock database)
    error: failed to synchronize all databases
    EOF

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.