现在的时间节点为2021年7月,Ubuntu12.04已经停止服务了,所有的软件安装,例如vim都不能安装,所以必须更换源,但是不是随便什么源都可以使用,网上有很多更换源的方法,这里的源是我测试过没问题的源,方便大家使用。
首先先备份我们系统自带的源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
然后修改源:
sudo gedit /etc/apt/sources.list
将内容全部删除然后复制以下源到里面:
deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
然后更新:
sudo apt-get update
完成!!
参考博客:https://blog.csdn.net/Magic_Ninja/article/details/89078082
|