国内老版本ubuntu更新源地址以及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 gedit /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

举例3:中科大ubuntu18.4()更新源的链接:

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ bionic-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开始递增

Q:如何查看Ubuntu当前版本:

root@ubuntu:/home/hello# lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:    precise
 

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. 参考资料

(1)https://zhidao.baidu.com/question/334082996.html

(2)http://mirrors.163.com/.help/ubuntu.html

(3)http://blog.sina.com.cn/s/blog_1510dfd4e0102wbnb.html

(4)https://my.oschina.net/cgjcgs/blog/363665

 

相关推荐

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:编程工作室 设计师:CSDN官方博客 返回首页

打赏作者

snaking616

你的鼓励是我最大的动力!

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值