error: failed to initialize alpm library
这个问题出在archlinux上面
[root@sarch pacman]# pacman -Syu
error: failed to initialize alpm library
(database is incorrect version: /var/lib/pacman/)
error: try running pacman-db-upgrade
可以直接使用root运行
#pacman-db-upgrade