dell r410 1u
-
ip网络配置
修改文件:
/etc/network/interfaces
配置静态ip如下:
iface eth0 inet static address 61.xxx.xxx.30 netmask 255.255.255.224 gateway 61.xxx.xxx.1
重启网络:
sudo /etc/init.d/networking restart
-
dns
修改文件:
/etc/resolv.conf
-
碰到command-not-found has crashed后,执行下面命令:
sudo locale-gen zh_CN.UTF-8
-
将apt-get改成163源
修改文件:
/etc/apt/sources.list
替换成以下内容:
deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted deb http://mirrors.163.com/ubuntu/ precise universe deb-src http://mirrors.163.com/ubuntu/ precise universe deb http://mirrors.163.com/ubuntu/ precise-updates universe deb-src http://mirrors.163.com/ubuntu/ precise-updates universe deb http://mirrors.163.com/ubuntu/ precise multiverse deb-src http://mirrors.163.com/ubuntu/ precise multiverse deb http://mirrors.163.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ precise-security main restricted deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted deb http://mirrors.163.com/ubuntu/ precise-security universe deb-src http://mirrors.163.com/ubuntu/ precise-security universe deb http://mirrors.163.com/ubuntu/ precise-security multiverse deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main
执行命令:
sudo apt-get update
如果有key错误,执行命令:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys < add keys here >
然后再执行命令:
sudo apt-get update