LinuxSir.cn,穿越时空的Linuxsir!

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

如何正确配置 sources.list 文件?

[复制链接]
发表于 2007-1-13 14:15:54 | 显示全部楼层 |阅读模式
我的配置如下:

deb http://debian.cn99.com/debian/ testing main contrib non-free

为什么总是提示无发找到 release.gpg 。

Failed to fetch http://debian.cn99.com/debian/dists/testing/Release.gpg

这个问题应该如何解决呢?不胜感激。
发表于 2007-1-13 14:22:06 | 显示全部楼层
cn99的源不是很稳定,你换个源试试,如:geekbone、cnsite或者干脆用国外的,如日本鬼子的、美国佬的。我的如下:
deb http://debian.cnsite.org/debian/ testing main non-free contrib
deb-src http://debian.cnsite.org/debian/ testing main non-free contrib

#deb http://debian.cnsite.org/debian/ sid main non-free contrib
#deb-src http://debian.cnsite.org/debian/ sid main non-free contrib

#deb http://debian.cn99.com/debian/ testing main non-free contrib
#deb-src http://debian.cn99.com/debian/ testing main non-free contrib

#deb http://mirrors.geekbone.org/debian/ testing main non-free contrib
#deb-src http://mirrors.geekbone.org/debian/ testing main non-free contrib

#deb ftp://ftp.us.debian.org/debian/ testing main non-free contrib
#deb-src ftp://ftp.us.debian.org/debian/ testing main non-free contrib

#deb ftp://debian.lcs.mit.edu/debian/ testing main non-free contrib
#deb-src ftp://debian.lcs.mit.edu/debian/ testing main non-free contrib
这一阵子地震闹的,us和mit的源都没开了,平时mit的源速度比us快,开一个就行了,国内用cnsite的速度很快,但有时也会挂,到时又换成别的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 14:31:58 | 显示全部楼层
还是同样的问题,找不到 Release.gpg ,我怀疑是不是我的网络配置问题?

怎么检测网络配置是否正常?
回复 支持 反对

使用道具 举报

发表于 2007-1-13 14:44:59 | 显示全部楼层
ping ............
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:02:48 | 显示全部楼层
谢谢你们了。

果然是网络设置的问题。但是我不知道网络应该怎么设置才正常。还望各位兄弟指点。我用的是路由上网。配置文件如下:

iface eth0 inet static
     address 192.168.1.3
     netmask 255.255.255.0
     network 192.168.1.0
     broadcast 192.168.1.255
     gateway 192.168.1.1
     dns-nameservers 202.96.128.86
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:08:36 | 显示全部楼层
ping 127.0.0.1
ping 192.168.1.3

都正常。

ping dns 的时候报错,错误如下:

network is unreachable

network 是网络地址?由什么决定,我应该怎么改?

谢谢。
回复 支持 反对

使用道具 举报

发表于 2007-1-13 15:25:23 | 显示全部楼层
这个是我的
我在路由状态下/etc/network/interfaces的设置

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.7
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 61.139.2.69

我用的没有问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:28:53 | 显示全部楼层
是adsl猫路由拨号。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:30:16 | 显示全部楼层
在windows下面是可以正常上网的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:33:47 | 显示全部楼层
照这样看,我的设置应该是没有问题的啊。郁闷咯。
回复 支持 反对

使用道具 举报

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

本版积分规则

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