docker-node
docker-node copied to clipboard
No debian image can update/install packages
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.
@tianon
Symptom of #1012
All the latest images default to stretch and we dropped jessie completely from v11. We made that switch some time ago.
For actively supported versions based on Jessie, this will be updated via https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476648047.
I was able to fix by replacing node:9.2
with node:9.2-stretch
in my case.
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.
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 packagesecho -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
Any updates @tianon ? Saw you mention that it would take a while but wondering how much longer.
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.
The same issue is in node:8.15.1-alpine
. It should be updated too.