Cannot upgrade Ubuntu 15.10 due to failing to fetch packages


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 stable InRelease
Hit wily InRelease
Hit wily-updates InRelease
Get:1 wily-backports InRelease [65.9 kB]
Hit stable Release.gpg
Hit stable Release
Get:2 stable/main amd64 Packages [1,136 B]
Hit wily/main Sources
Hit wily/universe Sources
Get:3 wily InRelease [178 B]
Ign wily InRelease
Ign stable/main Translation-en_US
Get:4 wily Release.gpg [178 B]
Ign wily Release.gpg
Get:5 wily-backports/main Sources [748 B]
Get:6 wily Release [178 B]
Ign wily Release
Get:7 wily-backports/restricted Sources [28 B]
Ign stable/main Translation-en
Get:8 wily/main amd64 Packages [178 B]
Get:9 wily-backports/universe Sources [2,257 B]
Get:10 wily-backports/multiverse Sources [28 B]
Get:11 wily/main Translation-en_US [178 B]
Get:12 wily-backports/main amd64 Packages [619 B]
Get:13 wily/main Translation-en [178 B]
Get:14 wily-backports/restricted amd64 Packages [28 B]
Get:15 wily-backports/universe amd64 Packages [2,006 B]
Get:16 wily/main amd64 Packages [178 B]
Get:17 wily-backports/multiverse amd64 Packages [28 B]
Get:18 wily/main Translation-en_US [178 B]
Get:19 wily-backports/main i386 Packages [619 B]
Get:20 wily-backports/restricted i386 Packages [28 B]
Get:21 wily-backports/universe i386 Packages [1,998 B]
Get:22 wily/main Translation-en [178 B]
Get:23 wily-backports/multiverse i386 Packages [28 B]
Get:24 wily/main amd64 Packages [178 B]
Get:25 wily-backports/main Translation-en [496 B]
Get:26 wily-backports/multiverse Translation-en [28 B]
Get:27 wily/main Translation-en_US [178 B]
Get:28 wily-backports/restricted Translation-en [28 B]
Get:29 wily/main Translation-en [178 B]
Get:30 wily-backports/universe Translation-en [1,390 B]
Hit wily/main amd64 Packages
Get:31 wily/main amd64 Packages [178 B]
Get:32 wily/main Translation-en_US [178 B]
Get:33 wily/main Translation-en [178 B]
Hit wily/universe amd64 Packages
Get:34 wily/main amd64 Packages [178 B]
Err wily/main amd64 Packages
Hit wily/main i386 Packages
Hit wily/universe i386 Packages
Get:35 wily/main Translation-en_US [178 B]
Ign wily/main Translation-en_US
Hit wily/main Translation-en
Hit wily/universe Translation-en
Hit wily-updates/main Sources
Get:36 wily/main Translation-en [178 B]
Ign wily/main Translation-en
Hit wily-updates/universe Sources
Hit wily-updates/main amd64 Packages
Hit wily-updates/universe amd64 Packages
Hit wily-updates/main i386 Packages
Hit wily-updates/universe i386 Packages
Hit wily-updates/main Translation-en
Hit wily-updates/universe Translation-en
Fetched 76.3 kB in 3s (20.3 kB/s)
W: Failed to fetch  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 wily main
deb-src wily main

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

deb wily-updates main
deb-src 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 wily universe
deb-src wily universe
deb wily-updates universe
deb-src 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 wily-backports main restricted universe multiverse
deb-src wily-backports main restricted universe multiverse

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

Thanks a lot, Akos

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

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