Failed to synchronize all databases (unable to lock database)

Hi, I can’t install nvidia drivers, it gives me this error, please help!

Waiting for user input…
Starting

Installing video-nvidia-470xx…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-470xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases…
error: failed to synchronize all databases (unable to lock database)
Error: pacman failed!
Error: script failed!

I would be grateful for your help and advice!

include some system information like

inxi -Fazy

says it’s missing

Most likely this is sufficient:

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

These issues could occur if you interrupt an update procedure.

1 Like