Question

Cannot upgrade Ubuntu 15.10 due to failing to fetch packages

Posted March 13, 2020 119 views
Ubuntu

Hi!

I have a small server that I’d like to resurrect after several years. It is still working perfectly, but want to upgrade the current 15.10 wily distribution to a newer one as I need newer packages.

Several other people had problems doing so and the solution was re-configuring the /etc/apt/sources.list so packages will be fetched from an old-releases ubuntu page, but for me it is not working.

Already apt-get update fails to run with the following trace:

Ign http://dl.google.com stable InRelease
Hit http://old-releases.ubuntu.com wily InRelease
Hit http://old-releases.ubuntu.com wily-updates InRelease
Get:1 http://old-releases.ubuntu.com wily-backports InRelease [65.9 kB]
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Get:2 http://dl.google.com stable/main amd64 Packages [1,136 B]
Hit http://old-releases.ubuntu.com wily/main Sources
Hit http://old-releases.ubuntu.com wily/universe Sources
Get:3 https://packages.microsoft.com wily InRelease [178 B]
Ign https://packages.microsoft.com wily InRelease
Ign http://dl.google.com stable/main Translation-en_US
Get:4 https://packages.microsoft.com wily Release.gpg [178 B]
Ign https://packages.microsoft.com wily Release.gpg
Get:5 http://old-releases.ubuntu.com wily-backports/main Sources [748 B]
Get:6 https://packages.microsoft.com wily Release [178 B]
Ign https://packages.microsoft.com wily Release
Get:7 http://old-releases.ubuntu.com wily-backports/restricted Sources [28 B]
Ign http://dl.google.com stable/main Translation-en
Get:8 https://packages.microsoft.com wily/main amd64 Packages [178 B]
Get:9 http://old-releases.ubuntu.com wily-backports/universe Sources [2,257 B]
Get:10 http://old-releases.ubuntu.com wily-backports/multiverse Sources [28 B]
Get:11 https://packages.microsoft.com wily/main Translation-en_US [178 B]
Get:12 http://old-releases.ubuntu.com wily-backports/main amd64 Packages [619 B]
Get:13 https://packages.microsoft.com wily/main Translation-en [178 B]
Get:14 http://old-releases.ubuntu.com wily-backports/restricted amd64 Packages [28 B]
Get:15 http://old-releases.ubuntu.com wily-backports/universe amd64 Packages [2,006 B]
Get:16 https://packages.microsoft.com wily/main amd64 Packages [178 B]
Get:17 http://old-releases.ubuntu.com wily-backports/multiverse amd64 Packages [28 B]
Get:18 https://packages.microsoft.com wily/main Translation-en_US [178 B]
Get:19 http://old-releases.ubuntu.com wily-backports/main i386 Packages [619 B]
Get:20 http://old-releases.ubuntu.com wily-backports/restricted i386 Packages [28 B]
Get:21 http://old-releases.ubuntu.com wily-backports/universe i386 Packages [1,998 B]
Get:22 https://packages.microsoft.com wily/main Translation-en [178 B]
Get:23 http://old-releases.ubuntu.com wily-backports/multiverse i386 Packages [28 B]
Get:24 https://packages.microsoft.com wily/main amd64 Packages [178 B]
Get:25 http://old-releases.ubuntu.com wily-backports/main Translation-en [496 B]
Get:26 http://old-releases.ubuntu.com wily-backports/multiverse Translation-en [28 B]
Get:27 https://packages.microsoft.com wily/main Translation-en_US [178 B]
Get:28 http://old-releases.ubuntu.com wily-backports/restricted Translation-en [28 B]
Get:29 https://packages.microsoft.com wily/main Translation-en [178 B]
Get:30 http://old-releases.ubuntu.com wily-backports/universe Translation-en [1,390 B]
Hit http://old-releases.ubuntu.com wily/main amd64 Packages
Get:31 https://packages.microsoft.com wily/main amd64 Packages [178 B]
Get:32 https://packages.microsoft.com wily/main Translation-en_US [178 B]
Get:33 https://packages.microsoft.com wily/main Translation-en [178 B]
Hit http://old-releases.ubuntu.com wily/universe amd64 Packages
Get:34 https://packages.microsoft.com wily/main amd64 Packages [178 B]
Err https://packages.microsoft.com wily/main amd64 Packages
  HttpError404
Hit http://old-releases.ubuntu.com wily/main i386 Packages
Hit http://old-releases.ubuntu.com wily/universe i386 Packages
Get:35 https://packages.microsoft.com wily/main Translation-en_US [178 B]
Ign https://packages.microsoft.com wily/main Translation-en_US
Hit http://old-releases.ubuntu.com wily/main Translation-en
Hit http://old-releases.ubuntu.com wily/universe Translation-en
Hit http://old-releases.ubuntu.com wily-updates/main Sources
Get:36 https://packages.microsoft.com wily/main Translation-en [178 B]
Ign https://packages.microsoft.com wily/main Translation-en
Hit http://old-releases.ubuntu.com wily-updates/universe Sources
Hit http://old-releases.ubuntu.com wily-updates/main amd64 Packages
Hit http://old-releases.ubuntu.com wily-updates/universe amd64 Packages
Hit http://old-releases.ubuntu.com wily-updates/main i386 Packages
Hit http://old-releases.ubuntu.com wily-updates/universe i386 Packages
Hit http://old-releases.ubuntu.com wily-updates/main Translation-en
Hit http://old-releases.ubuntu.com wily-updates/universe Translation-en
Fetched 76.3 kB in 3s (20.3 kB/s)
W: Failed to fetch https://packages.microsoft.com/repos/azure-cli/dists/wily/main/binary-amd64/Packages  HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead.

It always fails at fetching the above package. What I did, is changing the digital ocean mirror servers to the old-releases repo in my sources.list

deb http://old-releases.ubuntu.com/ubuntu wily main
deb-src http://old-releases.ubuntu.com/ubuntu wily main


## Major bug fix updates produced after the final release of the
## distribution.

deb http://old-releases.ubuntu.com/ubuntu wily-updates main
deb-src http://old-releases.ubuntu.com/ubuntu wily-updates main


## 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 old-releases team.

deb http://old-releases.ubuntu.com/ubuntu wily universe
deb-src http://old-releases.ubuntu.com/ubuntu wily universe
deb http://old-releases.ubuntu.com/ubuntu wily-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu wily-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
## old-releases team.

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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 old-releases team.

deb http://old-releases.ubuntu.com/ubuntu wily-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu wily-backports main restricted universe multiverse

Any idea how to fetch those packages so apt-get update runs successfully?

Thanks a lot,
Akos

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @caodeveloping,

As far as I can see it is the wily distribution packages that are no longer available on the Microsoft Repository. The following returns a 404 not found:

https://packages.microsoft.com/repos/azure-cli/dists/wily/

What I could suggest is checking your /etc/apsources.list.d and see if you have any references to that Microsoft wily repository in there. Then remove it from your source list and then give this a try again.

Let me know how it goes!
Regards,
Bobby

Submit an Answer