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
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