当前位置:   article > 正文

Ubuntu12.04 更新源方法_ubuntu12.04更新源

ubuntu12.04更新源

现在的时间节点为2021年7月,Ubuntu12.04已经停止服务了,所有的软件安装,例如vim都不能安装,所以必须更换源,但是不是随便什么源都可以使用,网上有很多更换源的方法,这里的源是我测试过没问题的源,方便大家使用。

首先先备份我们系统自带的源:

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

然后修改源

sudo gedit /etc/apt/sources.list

将内容全部删除然后复制以下源到里面:

  1. deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse
  2. deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
  3. deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse
  4. deb http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
  5. deb http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
  6. deb-src http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse
  7. deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
  8. deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse
  9. deb-src http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
  10. deb-src http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse

然后更新:

sudo apt-get update

完成!!

参考博客:Ubuntu 12.04更新源_ubutnu 1204安装源_之芫的博客-CSDN博客


2023/07/25

听取下方评论,再加上我自己实验,确实是precise,因此,修改为:

  1. deb http://old-releases.ubuntu.com/ubuntu precise main restricted universe multiverse
  2. deb http://old-releases.ubuntu.com/ubuntu precise-security main restricted universe multiverse
  3. deb http://old-releases.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
  4. deb http://old-releases.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
  5. deb http://old-releases.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
  6. deb-src http://old-releases.ubuntu.com/ubuntu precise main restricted universe multiverse
  7. deb-src http://old-releases.ubuntu.com/ubuntu precise-security main restricted universe multiverse
  8. deb-src http://old-releases.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
  9. deb-src http://old-releases.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
  10. deb-src http://old-releases.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

感谢下方评论区的小伙伴

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/655932
推荐阅读
相关标签
  

闽ICP备14008679号