-
使用pacman安装出现如下错误:
failed to init transaction (unable to lock database) if you're sure a package manager is not already running, you can remove /var/lib/pacman/db.lck
此时,说明可能之前存在更新的任务,使得pacman正在被锁定,可以直接按照提示执行:
sudo rm -r /var/lib/pacman/db.lck
即可解决。
避免这种错误最好在更新软件包之后,常执行如下命令:
sudo pacman -Syu
持续更新..........................