|
|
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.
是网络没有连接上的原因吗? |
|