打开终端
1.)输入:sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup //此为保存当前的源列表
2.)输入:sudo gedit /etc/apt/sources.list //此为编辑源列表
此时会用gedit打开源列表,全选后,复制以下横线之间的内容覆盖原有的全部内容:
-----------------------------------------------------------------------------------------------------------
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-secrity main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
--------------------------------------------------------------------------------------------------------------
保存好编辑过的源后关闭sources.list,然后回到终端,继续输入以下命令:
3.)输入:sudo apt-get update
4.)输入:sudo apt-get dist-upgrade




