LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: vacuumboby

请教源的设置!~ 己解决。有兴趣可以参考~!

[复制链接]
发表于 2009-10-21 18:14:29 | 显示全部楼层
cat /etc/pacman.conf
把内容发到这里。(我怀疑你配置网络没有。。)

你是用的虚拟机吧。 VBOX里面网卡模式是用的NAT么?
你可以 看看你的/etc/rc.conf文件。如果eth0="192.163..."之类的话,就把eth0设置为dhcp,像这样
  1. eth0="dhcp"
  2. INTERFACES=(eth0)
复制代码
类似的。。然后/etc/rc.d/network restart
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-21 18:22:40 | 显示全部楼层
Post by firefoxmmx;2038749
cat /etc/pacman.conf
把内容发到这里。(我怀疑你配置网络没有。。)

你是用的虚拟机吧。 VBOX里面网卡模式是用的NAT么?
你可以 看看你的/etc/rc.conf文件。如果eth0="192.163..."之类的话,就把eth0设置为dhcp,像这样

  1. eth0="dhcp"
  2. INTERFACES=(eth0)
复制代码

类似的。。然后/etc/rc.d/network restart


不好意思。没有用。我的设置。本来eth0就是DHCP。
重启网络后。问题依然没有改变~!
回复 支持 反对

使用道具 举报

发表于 2009-10-21 20:41:47 | 显示全部楼层
163的源有问题啊。换别的吧。
回复 支持 反对

使用道具 举报

发表于 2009-10-22 13:21:31 | 显示全部楼层
Post by vacuumboby;2038746
我现在输入
cat /etc/pacman.d/mirrorlist
Server = http://mirrors.163.com/archlinux/archlinux/$repo/os/i686

但是pacman -Syn后还是一样的错误提示~!


Server = http://mirrors.163.com/archlinux/$repo/os/i686
你的多了一个archlinux
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-22 14:07:19 | 显示全部楼层
Post by xiaohuli1239;2038933
Server = http://mirrors.163.com/archlinux/$repo/os/i686
你的多了一个archlinux


汗。出现了低级错误。。不好意思。修正后试试。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-22 14:09:44 | 显示全部楼层
实在不好意思。修正后。问题依旧。。好像是说pacman.conf里面没有指定更新源~!大至是这样的意思。。
回复 支持 反对

使用道具 举报

发表于 2009-10-22 14:28:46 | 显示全部楼层
pacman.conf里面有
  1. [core]
  2. # Add your preferred servers here, they will be used first
  3. Include = /etc/pacman.d/mirrorlist
  4. [extra]
  5. # Add your preferred servers here, they will be used first
  6. Include = /etc/pacman.d/mirrorlist
  7. [community]
  8. # Add your preferred servers here, they will be used first
  9. Include = /etc/pacman.d/mirrorlist
复制代码
这几句么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-22 14:30:37 | 显示全部楼层
Post by firefoxmmx;2038949
pacman.conf里面有

  1. [core]
  2. # Add your preferred servers here, they will be used first
  3. Include = /etc/pacman.d/mirrorlist
  4. [extra]
  5. # Add your preferred servers here, they will be used first
  6. Include = /etc/pacman.d/mirrorlist

  7. [community]
  8. # Add your preferred servers here, they will be used first
  9. Include = /etc/pacman.d/mirrorlist

复制代码

这几句么?


有的啊~!我前面有截图的。。这些都有~!但是好像没有链接起来(个人感觉)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-22 14:31:46 | 显示全部楼层
Include我也注释掉了~!应该没有问题了。但是还是不可以更新。。
回复 支持 反对

使用道具 举报

发表于 2009-10-22 14:36:00 | 显示全部楼层
。。。。你把INCLUDE注释了。。。。它怎么知道你的[core] [extra] 是什么来自哪里 呢??
服了你了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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