docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

No debian image can update/install packages

Open Vishnu91007 opened this issue 5 years ago • 10 comments

Unable to fetch updates from debain repos. All our VM update/install are also facing the same error. Even if I do curl or browse from another network, I'm getting the same error for debian url.

Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:2 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:3 http://deb.debian.org jessie Release [148 kB]
Ign http://deb.debian.org jessie-updates Release
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Get:4 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Fetched 10.1 MB in 18s (543 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Vishnu91007 avatar Mar 26 '19 11:03 Vishnu91007

@tianon

Vishnu91007 avatar Mar 26 '19 12:03 Vishnu91007

Symptom of #1012

Munksgaard avatar Mar 26 '19 13:03 Munksgaard

All the latest images default to stretch and we dropped jessie completely from v11. We made that switch some time ago.

chorrell avatar Mar 26 '19 13:03 chorrell

For actively supported versions based on Jessie, this will be updated via https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476648047.

tianon avatar Mar 26 '19 13:03 tianon

I was able to fix by replacing node:9.2 with node:9.2-stretch in my case.

deiwin avatar Mar 26 '19 16:03 deiwin

For others coming here, depending on the dependencies you need to install, you may be able to use the solution found here.

RUN this before you install packages

echo -e "deb http://deb.debian.org/debian jessie main\ndeb http://security.debian.org jessie/updates main" > /etc/apt/sources.list

https://forum.gitlab.com/t/gitlab-runners-stopped-working/24958/2


Edit: this was a temporary fix, the true fix for me was updated my FROM to the latest security patch on my major version, the latest version of an LTS won't have these problems.

jordonbiondo avatar Mar 26 '19 18:03 jordonbiondo

For others coming here, depending on the dependencies you need to install, you may be able to use the solution found here.

RUN this before you install packages

echo -e "deb http://deb.debian.org/debian jessie main\ndeb http://security.debian.org jessie/updates main" > /etc/apt/sources.list

https://forum.gitlab.com/t/gitlab-runners-stopped-working/24958/2

Had this issue running the image in drone, modifying the above command to exclude the -e worked

echo "deb http://deb.debian.org/debian jessie main\ndeb http://security.debian.org jessie/updates main" > /etc/apt/sources.list

ebeal avatar Mar 27 '19 20:03 ebeal

Any updates @tianon ? Saw you mention that it would take a while but wondering how much longer.

chrissnell avatar Mar 28 '19 20:03 chrissnell

The following list of tags should all be (long-since now) updated:

$ bashbrew list node | grep jessie
node:8.15.1-jessie
node:8.15-jessie
node:8-jessie
node:carbon-jessie
node:8.15.1-jessie-slim
node:8.15-jessie-slim
node:8-jessie-slim
node:carbon-jessie-slim
node:6.17.0-jessie
node:6.17-jessie
node:6-jessie
node:boron-jessie
node:6.17.0-jessie-slim
node:6.17-jessie-slim
node:6-jessie-slim
node:boron-jessie-slim
node:10.15.3-jessie
node:10.15-jessie
node:10-jessie
node:dubnium-jessie
node:lts-jessie
node:10.15.3-jessie-slim
node:10.15-jessie-slim
node:10-jessie-slim
node:dubnium-jessie-slim
node:lts-jessie-slim

They are the only actively-supported versions by the Node.js project, so they are the only versions that will be rebuilt.

tianon avatar Mar 28 '19 20:03 tianon

The same issue is in node:8.15.1-alpine. It should be updated too.

ultrasites avatar Apr 04 '19 06:04 ultrasites