现在再换回原来的源,提示以下错误:
[root@myhost etc]# pacman -Sy pacman
config: line 74: all directives must belong to a section
config: line 74: all directives must belong to a section
config: line 74: all directives must belong to a section
:: Synchronizing package databases...
failed to synchronize current
failed to synchronize extra
failed to synchronize community
目前的pacman.conf:
[current]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/current
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra
[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/community
已经解决了,解决办法:
手工修改/etc/pacman.conf文件,将Include=/etc/pacman.d/current等引用全部修改为服务器的地址,修改后的配置文件如下:
[root@myhost pacman.d]# cat /etc/pacman.conf
[current]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/current
Server = ftp://mirror.pacific.net.au/linux/archlinux/current/os/i686