第一,运行 pacman -Syu 时出现

:: Retrieving packages from core... warning; failed to retrieve some files from core error: failed to commit transaction (no servers configured for repository) Errors occured, no packages were upgraded.

这个的话,用vi或者nano打开也可以进入系统内部直接编辑这个文件 /etc/pacman.d/mirrorlist 发现没有选择镜像源,找到china把前面的'#'去掉再运行pacman -Syu就OK了.

第二,运行pacman -Syu时

error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'
error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'
error: could not open file /var/lib/pacman/sync/community-testing.db: Failed to open '/var/lib/pacman/sync/community-testing.db'
error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'
error: could not open file /var/lib/pacman/sync/multilib.db: Failed to open '/var/lib/pacman/sync/multilib.db'
error: could not open file /var/lib/pacman/sync/archlinuxfr.db: Failed to open '/var/lib/pacman/sync/archlinuxfr.db'
error: could not open file /var/lib/pacman/sync/unsupported.db: Failed to open '/var/lib/pacman/sync/unsupported.db'
error: could not open file /var/lib/pacman/sync/unstable.db: Failed to open '/var/lib/pacman/sync/unstable.db'
error: target not found: <insert random program name here>

有方法说在终端运行 pacman -Syy就可以了。但是我的解决办法是打开pacman.conf,看看里面有什么错误的么。我原来就是先配置了一个法国的源,然后里面的网址写错了,所以更新不成功,后来改好了更新就正常了。

这是我安装archlinux得到了两个经验,至少不会动不动再重装系统了,接下去的时候我会将Gnome3降为Gnome2,因为我的虚拟机不支持3,看着那界面我觉得蛋疼得要死.估计还要去Ubuntu中文论坛去搜一下帖子才行。