Ubuntu停止维护版本的apt源更新方法

       一直使用11.04版本,但是官方停止维护已经很长时间了,而目前有更新apt源的需求。通过搜索资料,发现了如下解决方法:

1. 标准动作:备份原source.list

   sudo mv /etc/apt/source.list /etc/apt/source.list.bk


2.编辑source.list为如下内容,以11.04版本(代号natty)为例:

deb http://old -releases .ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old -releases .ubuntu.com/ubuntu/ natty -security main restricted universe multiverse
deb http://old -releases .ubuntu.com/ubuntu/ natty -updates main restricted universe multiverse
deb http://old -releases .ubuntu.com/ubuntu/ natty -proposed main restricted universe multiverse
deb http://old -releases .ubuntu.com/ubuntu/ natty -backports main restricted universe multiverse
deb -src http://old -releases .ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb -src  http://old -releases .ubuntu.com/ubuntu/ natty -security main restricted universe multiverse
deb -src  http://old -releases .ubuntu.com/ubuntu/ natty -updates main restricted universe multiverse
deb -src  http://old -releases .ubuntu.com/ubuntu/ natty -proposed main restricted universe multiverse

deb-src  http://old-releases.ubuntu.com/ubuntu/ natty-

backports main restricted universe multiverse


然后sudo apt-get update即可


参考资料:

http://www.dwhd.org/2013/02/03/1971.html


wzw0114

2013.07.15

你可能感兴趣的:(apt)