国内老版本ubuntu更新源地址以及sources.list的配置方法

在终端输入并运行

sudo apt-get install vim
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份当前的源列表,以便日後需要时恢复)
sudo vim /etc/apt/sources.list (修改sources.list文件中源的列表)

sources.list文件中注释原有的并添加

1.国内可用的更新源地址:(1)中科大地址 http://mirrors.ustc.edu.cn/ubuntu-old-releases   (2)163  http://mirrors.163.com  (3)其它资源 

2.sources.list配置方法

(1)打开sources.list

$sudo vim /etc/apt/sources.list

(2)填写更新源的地址,格式如下:

deb 源地址/ubuntu/ 版本代号 main restricted universe multiverse
deb 源地址/ubuntu/ 版本代号-security main restricted universe multiverse
deb 源地址/ubuntu/ 版本代号-updates main restricted universe multiverse
deb 源地址/ubuntu/ 版本代号-proposed main restricted universe multiverse
deb 源地址/ubuntu/ 版本代号-backports main restricted universe multiverse
deb-src 源地址/ubuntu/ 版本代号 main restricted universe multiverse
deb-src 源地址/ubuntu/ 版本代号-security main restricted universe multiverse
deb-src 源地址/ubuntu/ 版本代号-updates main restricted universe multiverse
deb-src 源地址/ubuntu/ 版本代号-proposed main restricted universe multiverse
deb-src 源地址/ubuntu/ 版本代号-backports main restricted universe multiverse

注意:版本代号的首字母大小写要根据源地址子文件名对应(国内通常为小写)!

 (3)举例

举例1:中科大ubuntu8.10(intrepid)更新源的内容格式

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-backports main restricted universe multiverse

举例2:中科大ubuntu14.10(utopic)更新源的内容格式

 

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ utopic-backports main restricted universe multiverse

 

说明:

中科大支持的老版本ubuntu源(ubuntu-old-releases)有:

breezy/   

dapper/

edgy/ 

feisty/ 

gutsy/ 

hardy/ 

hoary/ 

intrepid/ 

jaunty/ 

karmic/  

lucid/   

maverick/ 

natty/   

oneiric/  

quantal/  

raring/ 

saucy/   

utopic/  

warty/ 

如果是长期更新源(带有LTS后缀)其格式如下:

举例3:中科大ubuntu12.04(precise)更新源的内容格式

deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

 

  举例4:163的ubuntu15.10(wily)更新源的内容格式

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

 

3. ubuntu版本号与版本代号对应关系

 

Ubuntu 的开发代号有三个特点

  1. 都是动物
  2. 都是两个词,并且两个词的首字母相同
  3. 从6.06开始,首字母从D开始递增

Ubuntu 历史版本一览表

版本号代号发布时间
16.04 LTSXenial Xerus 好客的非洲地松鼠即将发布 2016/4
15.10Wily Werewolf 狡诈的狼人2015/10/22
15.04Vivid Vervet 活泼的小猴2015/04/23
14.10Utopic Unicorn 乌托邦独角兽2014/10/23
14.04 LTSTrusty Tahr 值得信赖的塔尔羊2014/04/18
13.10Saucy Salamander 活泼的蝾螈2013/10/17
13.04Raring Ringtail 铆劲浣熊2013/04/25
12.10Quantal Quetzal 缤纷的绿咬鹃2012/10/18
12.04 LTSPrecise Pangolin 精准的穿山甲2012/04/26
11.10Oneiric Ocelot 有梦的虎猫2011/10/13
11.04 Unity成为默认桌面环境Natty Narwhal 敏捷的独角鲸2011/04/28
10.10Maverick Meerkat 标新立异的的狐獴2010/10/10
10.04 LTSLucid Lynx 清醒的猞猁2010/04/29
9.10Karmic Koala 幸运的无尾熊2009/10/29
9.04Jaunty Jackalope 活泼的兔子2009/04/23
8.10Intrepid Ibex 无畏的高地山羊2008/10/30
8.06 官方查不到此版本发布信息Haughty Husky 骄傲的哈士奇2008/06/07
8.04 LTSHardy Heron 坚强的苍鹭2008/04/24
7.10Gutsy Gibbon 勇敢的长臂猿2007/10/18
7.04Feisty Fawn 烦躁不安的小鹿2007/04/19
6.10Edgy Eft 尖利的小蜥蜴2006/10/26
6.06 LTSDapper Drake 整洁的公鸭2006/06/01
5.10Breezy Badger 活泼的獾2005/10/13
5.04Hoary Hedgehog 白发得刺猬2005/04/08
4.10 初始发布版本Warty Warthog 多疣的疣猪2004/10/20

 

4. 更新源地址

 

$sudo apt-get update

以下命令请选择性使用!

$sudo apt-get upgrade

(使所有的系统软件更新至最新!)

 

5. 参考资料

 官方老版本源:

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

其他Ubuntu Linux版本的只需要讲karmic改成其版本代号即可。这样过期后的版本也可以继续使用了。

转载于:https://www.cnblogs.com/zhangyang/p/7411795.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值