当前位置:IT快活林→LinuxLinux服务

使用debian-40r0-i386-netinst安装debian遇到了麻烦!

作者:本站整理   发布时间:2008-4-16 22:58:01


实验室是通过路由器上网的,win下面ipconfig后的结果是:Ethernet adapter 本地连接:Connection-specific DNS Suffix . :IP Address . . : 10.20.0.222Subnet Mask . : 255.0.0.0Default Gateway . . . . . . . . . : 10.20.0.7通过硬盘安装方式安装了debian(仅用debian-40r0-i386-netinst),安装过程中好像DHCP配置不行被我跳过了,之后设置sources.list也出了问题。我想当然认为网络已经可以用了,自己在sources.list里添了以下两个源:deb http://debian.ustc.edu.cn/debian-non-US sarge/non-US main non-free contribdeb http://debian.cn99.com/debian/ sarge main non-free contrib 然后尝试apt-get install x-window-system-core gnome-core,报错说couldn't stat source package list………………我想源应该没有问题,网络没弄好,ping www.google.cn说unkown host,于是我想把win下的网络设置照抄过来:#ifconfig eth0 inet down#ifconfig eth0 inet up 10.20.0.222\netmask 255.0.0.0 broadcast 10.20.0.7这样以后ping一下自己的IP:ping 10.20.0.222倒是可以,ping www.google.cn 还是 unkown host。当然apt-get install反应还是一样说couldn't stat source package list………………,apt-get update也报同样错误……请问有经验的debsir我该如何解决上述问题,谢谢!-----1 ping网关看网络有问题没2 cat /etc/resolv.conf 看看dns设置对不对。-----DNS服务器是否设置正确?-----初步判断是dns设置的问题,然后可以看看默认网关是不是正确的-----ping 10.20.0.7看看你的网卡驱动是否正确安装了?否则一般来说安装的时候dhcp应该没问题。-----#ifconfig eth0 不改变DNS设置先#dpkg-reconfiguration etherconf重新配置一下DNS更改完source.list后先执行一下#apt-get update-----检查你的网关和DNS-----你可以先试试/etc/init.d/networking restart 能不能自动获得IP
》热 点 关 注