1.# gedit /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
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.192
netmask 255.255.255.0
gateway 192.168.1.1
2.# route add default gw 192.168.1.1
3.# gedit /etc/resolv.conf
添加: nameserver 192.168.1.1
4.如果之前的apt-get update 失败的话,现在再执行一下。