LinuxSir.cn,穿越时空的Linuxsir!

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

我的debian没有办法继续安装了,求助!

[复制链接]
发表于 2006-5-25 09:15:37 | 显示全部楼层 |阅读模式
Debian基本安装后好像没有给出网络配置的向导,后来我自己在命令行下用vi来修改/etc/resolv.conf和/etc/network/nterefaces

/etc/resolv.conf:
search
nameserver 202.102.24.34


/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.72.102.164
network 10.72.102.0
netmask 255.255.254.0
broadcast 10.72.102.255
gateway 10.72.102.254

我是局域网的,ip地址也是固定的,我检查了自己写的地址应该都没有问题,dns我有两个,这里由于不知道写两个dns的格式是什么就只写一个了,还有interfaces第四行原来是iface eth0 inet dhcp,因为用的ip是固定的,所以最后的dhcp改成了static也是对的吧

重启之后我又运行base-config,选configure apt,然后选择http或者ftp,再选一个debian网站连接,但是每次连接都会报一下类似的错误,谁能帮我分析一下下面的错误到底是什么原因导致的:


Failed to access the Debian archive while trying to access the Debian archive using the information you provided,the Debian package management tool,apt,returned the following error,The questions will be asked again.

Failed to fetch
ftp://mirrors.geekbone.org/debia ... ry-i386/packages.gz Temporary failure resolving 'mirrors.geekbone.org' Failed to fetch ftp://mirrors.geekbone.org/debia ... binary-i386/Release Temporary failure resolving 'mirrors.geekbone.org' W:couldn't stat source package.
list ftp://mirrors.geekone.org stable/main packages (/var/lib/apt/lists/mirrors.geekbone.org_debian_dists_stable_main_binary_i386_packages)-stat (2 No such File or directory)W:you may want to run apt get update to correct these problems.E:some index files failed to download,they have been ignored,or old ones used instead.

是网络没有连接上的原因吗?
发表于 2006-5-25 09:22:39 | 显示全部楼层
我的resolv.cof是这样写的:
nameserver 202.106.196.115
你的"search"是什么意思?
/etc/network/interfaces是这样写的:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

iface eth0 inet static
        address 10.1.28.*
        netmask 255.255.255.0
        network 10.1.28.0
        broadcast 10.1.28.255
        gateway 10.1.28.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.106.196.115

auto eth0

你ping一下网站试试,如果ping得通,解析域名没有问题.
ping一下临近主机的ip地址,ping通了网络没问题,
还有是apt的源注意没写错
回复 支持 反对

使用道具 举报

发表于 2006-5-25 09:25:18 | 显示全部楼层
你照着上面的改了,然后ifdown eth0&& ifup eth0,再试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-25 09:42:31 | 显示全部楼层
我在命令行用vi /etc/resolv.conf
显示的就是下面的文本,我一开始也是奇怪第一行的search
search
nameserver 202.102.24.34

我的/etc/network/interfaces好像没有你下面的这两行,这两行是不是很有必要?
dns-nameservers 202.106.196.115
auto eth0

还有ifdown eth0&& ifup eth0是什么意思啊?
回复 支持 反对

使用道具 举报

发表于 2006-5-25 17:54:38 | 显示全部楼层
Post by asert
我在命令行用vi /etc/resolv.conf
显示的就是下面的文本,我一开始也是奇怪第一行的search
search
nameserver 202.102.24.34

我的/etc/network/interfaces好像没有你下面的这两行,这两行是不是很有必要?
dns-nameservers 202.106.196.115
auto eth0

还有ifdown eth0&& ifup eth0是什么意思啊?


这是先禁用网卡,然后在使用网卡,"eth0"指的是以太网卡第一块,就如同"hda0"一样
你都改成和我一样在看看,应该没问题
回复 支持 反对

使用道具 举报

发表于 2006-5-25 17:55:34 | 显示全部楼层
先禁用网卡,然后在使用网卡
是为了是网卡读取新的/etc/network/interfaces
回复 支持 反对

使用道具 举报

发表于 2006-5-25 17:56:24 | 显示全部楼层
/etc/init.d/networking restart
这一个也起到同样效果
回复 支持 反对

使用道具 举报

发表于 2006-5-25 21:07:29 | 显示全部楼层
apt-get install etherconf
dpkg-reconfigure etherconf
回复 支持 反对

使用道具 举报

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

本版积分规则

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