首页 > 服务器运维 > 老版本Ubuntu 11.04等的源列表

老版本Ubuntu 11.04等的源列表

2014年3月3日 Terence 1,953 次阅读 发表评论 阅读评论

      比较喜欢Ubuntu之前的Gnome 2.x经典界面,现在的Unity简直是反人类,抄Mac OS不说,但好歹要学人家操作简单易用啊,我去。。Ubuntu最后一个支持Gnome 2.x经典界面的版本是11.04,此后反人类界面登场了,连12.04 LTS版也不例外,虽然可以安装gnome-session-fallback包回到2.x时的经典桌面样子,但模拟始终是模拟,很多细节地方还是无法替代2.x时代的辉煌。

      但问题来了,11.04不是LTS版本(LTS版的Ubuntu有最长五年的支持周期),大概在2012年10月的时候就停止更新支持了,这也意味着它的官方源也就伴随着下线了,包括其他第三方镜像源,一般都是和官方源同步的。因此,直接用原来的源列表是不能安装更新软件的,这下如果要在这类老旧系统上安装apt包可怎么办呢?其实大可不必担心,Ubuntu已经为我们考虑到了这个情况,官方专门出了一个old-release镜像服务器http://old-releases.ubuntu.com/,我们可以用这个源来更新系统,所需要做的工作就是把原来的源地址替换成这个就行。

      比如我在用的11.04,打开/etc/apt/sources.list文件,清空原来的内容,填入以下的源列表地址:

# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
 
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
 
## 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 partner
 
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
# deb-src http://extras.ubuntu.com/ubuntu oneiric main

      然后再用apt-get update更新下apt缓存,是不是不会再报了404错误了呀。当然,对于其他Ubuntu旧版本只需要将11.04的版本代号natty改成其他版本代号即可,这样过期后的版本也可以继续使用了。需要注意的是old-release镜像服务器位于欧洲,国内访问它可能会比较慢,需要耐心等待。





分类: 服务器运维 标签: ,
  1. 远or广
    2018年5月10日09:30 | #1
    Google Chrome 66.0.3359.139 Google Chrome 66.0.3359.139 Windows Windows

    :razz: 非常感谢,找了好多文章,终于找到11.04版本的

    [回复]