sudo apt-get update fail on Ubuntu 17.04

一笑奈何 提交于 2019-12-03 04:08:38

you can solve it by: just replace us.archive.ubuntu.com and security.ubuntu.com in /etc/apt/sources.list with old-releases.ubuntu.com and then you'll be able to finish updating.

refer to source 1 and ubuntu forum

it work for me

In my case:

sed -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list 
sed -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list 

In my case, I was able to download some of the packages by doing the following:

I had to replace "us.archive.ubuntu.com" and "security.ubuntu.com" in /etc/apt/sources.list WITH "old-releases.ubuntu.com" and then I was able to finish downloading some of the packages, like Ayush Kumar said.

For the other updates that were listed by my Hosting company, Linode, I used the following:

I had to use the --allow-unauthenticated flag with sudo apt-get update.

sudo apt-get update --allow-unauthenticated

Then I was able to finish updating.

17.04 isn't getting further support from Ubuntu. So, the solution that worked for me was to upgrade it to 17.10 as none other solutions helped.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!