The db could not be synchronisized :: the system was not able to lock the db

Please see:

https://wiki.archlinux.org/title/Pacman#"Failed_to_init_transaction_(unable_to_lock_database)"_error

Put LANG=C before the command you are running.

EX:

LANG=C sudo pacman -Syu
3 Likes