手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

关于非LTS版Ubuntu系统无法update的解决方法

时间:2024-10-15 00:30:16

1、Ubutun版本的更新比较快,目前只有10.04,12.04,14.04,以及后续的16.04会支持长期维护,时间长达3-5年,而其他常规版本的维护期比较短,基本是一年以内。而笔者使吹涡皋陕用的14.10,已经停止更新了好一段时间,因为平时用的还可以,所以也就没怎么更新,直到今天要安装一些东西了,才发现update不能用了。

2、在网上找了很多Ubuntu14.10对应的源的列表,然后把它们加入到了系统的源列表中,可还是不行。但是,所有停止维护的版本都可以使用old源。所以在元列表中把原来的地址改为带有old源的就可以了。

3、首先,备份系统中的源列表,打开终端,输入sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

关于非LTS版Ubuntu系统无法update的解决方法

4、输入sudo gedit /etc/apt/sources.list打开源列表文件,ctrl+A,然后delete,删除全部内容然后把下面的地址复制到该文件中de芟鲠阻缒b http://old-releases.ubuntu.com/ubuntu utopic main restricted universe multiversedeb http://old-releases.ubuntu.com/ubuntu utopic-security main restricted universe multiversedeb http://old-releases.ubuntu.com/ubuntu utopic-updates main restricted universe multiversedeb http://old-releases.ubuntu.com/ubuntu utopic-proposed main restricted universe multiversedeb http://old-releases.ubuntu.com/ubuntu utopic-backports main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu utopic main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu utopic-security main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu utopic-updates main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu utopic-proposed main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu utopic-backports main restricted universe multiverse

关于非LTS版Ubuntu系统无法update的解决方法

5、需要注意的是上面地址中的 utopic是ubuntu系统版本的名称,我的ubuntu系统是14.10,对应的版本名称是utopic。只要把这里的utopic换车你自己系统版本的名称即可,如果不知道版本名称的话,可以运行以下命令获得lsb_release -a其中,Codename就是了。

关于非LTS版Ubuntu系统无法update的解决方法

6、保存好源列表文件后,进入到终端,一定要再输入以下命令sudo apt-get update 来进行更新,会看到没有失败的提示了,转而出现“命中,获取中”等字眼

关于非LTS版Ubuntu系统无法update的解决方法
© 手抄报圈