You are not logged in.

#1 2019-09-12 12:03:53

jared
Member
From: Germany
Registered: 2012-01-16
Posts: 43

[SOLVED] pacman aborts at error: failed to synchronize all databases

I did an update (-Syu) this morning. After lunch, my maschine froze and I had to do a cold restart. When I checked pacman -Syu again, I got this error:

$ pacman -Syu
[sudo] password for user: 
:: 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 synchronize all databases

Looking at pacman:

$ ls -lah /var/lib/pacman/
total 84K
drwxr-xr-x    4 root root 4.0K Sep 12 10:08 .
drwxr-xr-x   36 root root 4.0K Sep 12 00:00 ..
----------    1 root root    0 Sep 12 10:08 db.lck
drwxr-xr-x 1394 root root  68K Sep 10 17:44 local
drwxr-xr-x    2 root root 4.0K Sep 12 10:08 sync

I am unsure what to do now. How should I proceed to solve this issue?
Thank you for your help.

Last edited by jared (2019-09-12 12:17:12)

Offline

#2 2019-09-12 12:09:35

Swiggles
Member
Registered: 2014-08-02
Posts: 260

Re: [SOLVED] pacman aborts at error: failed to synchronize all databases

Offline

#3 2019-09-12 12:19:23

jared
Member
From: Germany
Registered: 2012-01-16
Posts: 43

Re: [SOLVED] pacman aborts at error: failed to synchronize all databases

I was looking at https://wiki.archlinux.org/index.php/Pa … 9.22_error before positng. My error looks slightly different, that's why I was hesitant.
However, removing db.lck solved the issue.

Thanks.

Offline

Board footer

Powered by FluxBB