切换到/etc/apt/目录下,执行
cd /etc/apt/
- 第一步,备份官方的默认源
避免自己手贱操作失误,重装系统太费时间
cp /etc/apt/sources.list /etc/apt/sources.list.bak #此命令是备份该官方源文件
Ubuntu 14.04.4官方默认更新源sources.list
# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from