我在这里找到答案
https://wiki.archlinux.org/index.php/Pacman_(简体中文)#.22error:_failed_to_init_transaction_.28unable_to_lock_database.29.22_.E9.94.99.E8.AF.AF
运行这段就可以了
rm /var/lib/pacman/db.lck
https://wiki.archlinux.org/index.php/Pacman_(简体中文)#.22error:_failed_to_init_transaction_.28unable_to_lock_database.29.22_.E9.94.99.E8.AF.AF
运行这段就可以了
rm /var/lib/pacman/db.lck