UBUNTU 11.04 更新源

来源:互联网 发布:淘宝的尺码怎么修改 编辑:程序博客网 时间:2024/06/05 15:46

1 首先对源列表做好备份:

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

2 编辑

sudo gedit /etc/apt/sources.list

把文本中所有内容删掉,用下列替换 

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://old-releases.ubuntu.com/ubuntu/ natty main restricteddeb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricteddeb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu## team. Also, please note that software in universe WILL NOT receive any## review or updates from the Ubuntu security team.deb http://old-releases.ubuntu.com/ubuntu/ natty universedeb-src http://old-releases.ubuntu.com/ubuntu/ natty universedeb http://old-releases.ubuntu.com/ubuntu/ natty-updates universedeb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu## team, and may not be under a free licence. Please satisfy yourself as to## your rights to use the software. Also, please note that software in## multiverse WILL NOT receive any review or updates from the Ubuntu## security team.deb http://old-releases.ubuntu.com/ubuntu/ natty multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ natty multiversedeb http://old-releases.ubuntu.com/ubuntu/ natty-updates multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates multiverse## Uncomment the following two lines to add software from the 'backports'## repository.## N.B. software from this repository may not have been tested as## extensively as that contained in the main release, although it includes## newer versions of some applications which may provide useful features.## Also, please note that software in backports WILL NOT receive any review## or updates from the Ubuntu security team.# deb http://us.old-releases.ubuntu.com/ubuntu/ natty-backports main restricted  # universe multiverse# deb-src http://us.old-releases.ubuntu.com/ubuntu/ natty-backports main restricted  # universe multiverse## Uncomment the following two lines to add software from Canonical's## 'partner' repository.## This software is not part of Ubuntu, but is offered by Canonical and the## respective vendors as a service to Ubuntu users.# deb http://archive.canonical.com/ubuntu natty partner# deb-src http://archive.canonical.com/ubuntu natty partnerdeb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricteddeb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricteddeb http://old-releases.ubuntu.com/ubuntu/ natty-security universedeb-src http://old-releases.ubuntu.com/ubuntu/ natty-security universedeb http://old-releases.ubuntu.com/ubuntu/ natty-security multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ natty-security multiverse

3 更新源

sudo apt-get update


原创粉丝点击