Yefei.Blog

个人日记 WIKI

用户工具


Ubuntu

配置网卡

#vim /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.31.115
gateway 192.168.31.1
netmask 255.255.255.0

配置 DNS

#vim /etc/resolvconf/resolv.conf.d/base

nameserver 192.168.1.1

#resolvconf -u

使用网易源

备份 mv /etc/apt/sources.list /etc/apt/sources.list.bak

新建 /etc/apt/sources.list

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

皖ICP备15000265号

皖公网安备 34110302000106号