-1

Running this very simple Dockerfile

FROM ubuntu:17.04

RUN apt-get update

fails with these errors:

W: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/universe/source/Sources  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/universe/source/Sources  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty-backports/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.161 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

This looks like a Ubuntu problem rather than a Docker problem. Is there a workaround?

Dean Schulze
  • 624
  • 2
  • 8
  • 18

1 Answers1

2

Ubuntu 17.04, Released in 2017.April (hence 17.04) is a short-term or standard Ubuntu release; with a supported life of 9 months only.

Ubuntu 17.04 users were prompted to upgrade to 17.10 (the 2017.October release), however it too is now EOL (but users were prompted to upgrade to 18.04 LTS).

Post a release reaching EOL; its repos are moved from archive.ubuntu.com to old-releases.ubuntu.com which occurred long ago with 17.04; but hasn't yet occurred with 17.10 (it only very recently reached its EOL; in a few weeks its repositories will be moved too)

If you want/need a longer life, use long-term-support releases, such as Ubuntu 14.04 LTS (2014.April), 16.04 LTS (2016.April) & 18.04 LTS (2018.April) with a supported life of 5 years each.

guiverc
  • 30,396
  • If you were hoping all April releases are LTS; sorry - only even years are; hence 14.04 LTS, 16.04 LTS & 18.04 LTS, with the next expected in 2020.April (20.04 LTS) – guiverc Jul 27 '18 at 04:56