Sudo Apt-Get Update Fail on Ubuntu 17.04

sudo apt-get update fail on Ubuntu 17.04

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.

apt-get update shows errors

You have two issues conflated, for starters lets work on xerus-media

cd /etc/apt
grep -r xerus *

now edit the file containing xerus

sudo vi /etc/apt/either_sources.list_or_a_file_in_subdir

delete the line which mentions

http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release   

add these lines

deb http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main 
deb-src http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main

save that file and confirm you no longer see an error which mentions xerus-media

sudo apt-get update 

Now on to the docker issue ... docker package for ubuntu is shipped to xenial ... so lets see what you have ... do this

cd /etc/apt
grep -r docker *

now edit the file which mentions docker as in

sudo vi /etc/apt/sources.list

now edit the line

deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable

its entry should look like this

deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable

(yes xenial its OK its not artful you still get newest docker) now lets see what docker package you have installed ... issue this

dpkg -l | grep docker

you should see this

ii  docker-ce       17.09.0~ce-0~ubuntu      amd64        Docker: the open-source application container engine

now do an update

sudo apt-get update && sudo apt-get dist-upgrade 

are you now locked and loaded ? if not we can continue battling

linode | ubuntu | sudo apt-get update | mirror 404 error

Response from Linode Support:

It looks like you are using an Ubuntu versions that's reached its end of life status.

https://wiki.ubuntu.com/Releases

You can reference the following link to see if you are able to update this in another manner. The other option is deploy an updated Ubuntu image for your server and copy your data over to the new disk.

https://help.ubuntu.com/community/EOLUpgrade

Google Compute Engine Ubuntu 17.04 zesty does no longer have a Release file

I confirm that "E: The repository 'http://ru.archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file."

Solved as proposed before by heroin in the recipe https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/ .

Run this command below on your server and it will replace all of the archive.ubuntu.com and security.ubuntu.com package repository URLs with old-releases.ubuntu.com

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

Unfortunately this sed command will not work for you if you have selected a national mirror (like us.archive.ubuntu.com for updates. Then one can update strings in the file /etc/apt/sources.list changing all entries like http://*.archive.ubuntu.com and http://*.security.ubuntu.com to the http://old-releases.ubuntu.com manually in a text editor,

sudo nano /etc/apt/sources.list

or

sudo vi /etc/apt/sources.list

For example, your http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty InRelease become http://old-releases.ubuntu.com/ubuntu zesty InRelease and so on.

Here is my updated file /etc/apt/sources.list:

# deb cdrom:[Kubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412)]/ zesty main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty universe
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-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 zesty partner
# deb-src http://archive.canonical.com/ubuntu zesty partner

deb http://old-releases.ubuntu.com/ubuntu zesty-security main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security main restricted
deb http://old-releases.ubuntu.com/ubuntu zesty-security universe
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security universe
deb http://old-releases.ubuntu.com/ubuntu zesty-security multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu zesty-security multiverse


Related Topics



Leave a reply



Submit