Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sources list in wheezy should be switched to archive #65

Closed
JamesCohen-awin opened this issue Mar 22, 2019 · 16 comments
Closed

sources list in wheezy should be switched to archive #65

JamesCohen-awin opened this issue Mar 22, 2019 · 16 comments

Comments

@JamesCohen-awin
Copy link

In the last 24 hours apt-get update has started failing due to the package repos being moved to archive.debian.org

To exhibit the error behaviour

$ docker run --rm -it debian:wheezy apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [1601 B]
Ign http://deb.debian.org wheezy Release.gpg
Get:2 http://security.debian.org wheezy/updates Release [52.3 kB]
Ign http://deb.debian.org wheezy-updates Release.gpg
Ign http://deb.debian.org wheezy Release
Get:3 http://security.debian.org wheezy/updates/main amd64 Packages [743 kB]
Ign http://deb.debian.org wheezy-updates Release
Err http://deb.debian.org wheezy/main amd64 Packages
  404  Not Found
Err http://deb.debian.org wheezy-updates/main amd64 Packages
  404  Not Found
Fetched 797 kB in 1s (403 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/wheezy/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://deb.debian.org/debian/dists/wheezy-updates/main/binary-amd64/Packages  404  Not Found

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

To fix /etc/apt/sources.list should be corrected to:

deb http://archive.debian.org/debian wheezy main
deb http://security.debian.org/debian-security wheezy/updates main
@tianon
Copy link
Contributor

tianon commented Mar 22, 2019

Yep, this is expected -- Wheezy has been EOL since April 25th, 2016 (which is when the security team stopped supporting it and the LTS team picked it up, but the LTS support even ended 31 May 2018).

The next update to the debian image should be removing the wheezy tags from the supported list altogether. If you check out debian:squeeze, you'll see that it was treated similarly post-EOL.

At some point (hopefully soon), we'll get wheezy added to debian/eol (https://hub.docker.com/r/debian/eol).

@JamesCohen-awin
Copy link
Author

Understood. We'll fix this downstream then.

@TheMeier
Copy link

Same problem with jessie. Will this also be not changed?

@tobiasoort
Copy link

@tobiasoort
Copy link

I recorded the jessie issue in its own issue: #66

@tianon
Copy link
Contributor

tianon commented Mar 26, 2019

See #66 (comment) -- this should be resolved with this next update (although I'm not 100% sure what it's going to do to debian:wheezy given that http://security.debian.org/debian-security/dists/wheezy/updates/ exists and https://deb.debian.org/debian/dists/wheezy/ does not, but I think this will remove debian:wheezy appropriately given the current code).

@mphilipps
Copy link

but I think this will remove debian:wheezy appropriately given the current code).

As in move it to debian/eol?

For now I am working around that with

# wheezy is no longer provided by deb.debian.org, replaced with archive.debian.org
RUN sed -i 's|^deb http://deb.debian.org/debian|deb http://archive.debian.org/debian/|' /etc/apt/sources.list
# remove wheezy-updates (no longer exist, as there are no planned point releases)
RUN sed -i '/wheezy-updates/d' /etc/apt/sources.list

in my top-level Dockerfile.

@boussou
Copy link

boussou commented Apr 14, 2019

Even after having switched to archive, I can't build any of our wheezy based Dockerfiles.
We have legacy software that relies on this exact version.
The source.list is:
deb http://archive.debian.org/debian wheezy main contrib non-free

Now, any package I try to install, ends up with "it is not going to be installed".
Of course; I tried to update, upgrade, dist-upgrade, fix broken. No Luck.

Example with apache2:

The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-13+deb7u6) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-13+deb7u6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If wheezy is abandonned, can you tell us how to do (even if required to setup our own server) to be able build our dockerfiles?
Thanks

@sjackman
Copy link

I'm not sure if it's the same issue that I had, but make sure that you have both archive and security in your sources.list. See https://github.com/Homebrew/homebrew-portable-ruby/blob/91a6b054267519d6c2c71fa84f0a89e6f7f5175c/docker/Dockerfile.x86_64#L10

@boussou
Copy link

boussou commented Apr 15, 2019

Good idea, but there is nothing here:
http://security-cdn.debian.org/debian-security/dists/

If you browse it, you can see there is no wheezy folder.

@sjackman
Copy link

sjackman commented Apr 15, 2019

That's curious. There definitely was 18 days ago on March 28 when I merged that commit (Homebrew/homebrew-portable-ruby#81). I take it that it's changed since then? It definitely did not work before without the security repo in sources.list, and I saw an error similar to what you're seeing now.

@tianon
Copy link
Contributor

tianon commented Apr 16, 2019

Ok, in the interest of finally stopping the perfect from being the enemy of the good, I've pushed up debian/eol:wheezy (https://hub.docker.com/r/debian/eol).

Hopefully sometime Soon™ I'll re-push it via some official Debuerreotype process along with all the other existing tags so that they're reproducible too (see also debuerreotype/debuerreotype#58, debuerreotype/debuerreotype#59, debuerreotype/debuerreotype#60, debuerreotype/debuerreotype#61), but for now this should be enough.

As with all debian/eol images, it's appropriately targeting http://archive.debian.org and should have enough settings baked in for apt-get update and apt-get install invocations to succeed out-of-the-box.

This finally concludes this issue. 🎈

@tianon tianon closed this as completed Apr 16, 2019
@sjackman
Copy link

Thank you, Tianon!

@boussou
Copy link

boussou commented Apr 17, 2019

Thanks.

I can confiirm,, it works, just by replacing the 1st line to --> "FROM debian/eol:wheezy".

@tianon
Copy link
Contributor

tianon commented Apr 25, 2019

For anybody who was excited by the idea of the EOL images being properly reproducible and multi-arch, see https://twitter.com/tianon/status/1121243343436963840?s=19

@boussou
Copy link

boussou commented Apr 25, 2019

Great ! Thanks a lot.
I will try it today.
We all have legacy software ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants