LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1028|回复: 1

求救:

[复制链接]
发表于 2007-8-5 14:57:06 | 显示全部楼层 |阅读模式
刚才把源的配置改了一下,使用教育网的镜像,安装了几个软件,如下:
编辑/etc/pacman.conf 添加服务器地址:
[current]
Server = http://mirror.bjtu.edu.cn/ArchLinux/current/os/i686
[extra]
Server = http://mirror.bjtu.edu.cn/ArchLinux/extra/os/i686
[testing]
Server = http://mirror.bjtu.edu.cn/ArchLinux/testing/os/i686
[community]
Server = http://mirror.bjtu.edu.cn/ArchLinux/community/os/i686
[unstable]
Server=http://mirror.bjtu.edu.cn/ArchLinux/unstable/os/i686

现在再换回原来的源,提示以下错误:
[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.d/current等文件:
第74行:
#Mirror chosen in setup
Server = ftp://mirror.pacific.net.au/linux/archlinux/current/os/i686
没有改,和以前一样。

到底什么原因,请高手指教,多谢!
 楼主| 发表于 2007-8-5 15:30:19 | 显示全部楼层
已经解决了,解决办法:
手工修改/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

[extra]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/extra
Server = ftp://mirror.pacific.net.au/linux/archlinux/extra/os/i686

[community]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/community
Server = ftp://mirror.pacific.net.au/linux/archlinux/community/os/i686

然后执行pacman -Sy pacman 即可解决了。

但为什么不能使用Include = /etc/pacman.d/community引用了?还没有想明白。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表