docker 404 Not Found 404 Not Found

lokaqttq  于 2023-03-29  发布在  Docker
关注(0)|答案(1)|浏览(198)

我们在我们的容器化环境中使用node:8-杰西,然后昨天我们突然遇到Packages not found 404错误

W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.130.132 80]

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

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

然后,我们根据herehere的修复对Dockerfile进行了一些调整。但是我们遇到了上面提供的相同的失败获取错误以及额外的GPG错误:
W: GPG error: http://archive.debian.org jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
下面是我的Dockerfile:

FROM node:8-jessie

RUN echo 'deb http://archive.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update
zbwhf8kr

zbwhf8kr1#

我无法对普通节点进行更新:8-杰西图像。

Last pushed
3 years ago by doijanky
https://hub.docker.com/layers/library/node/8-jessie/images/sha256-28f59300eba5e2e29c1545e13d578a0eac194f6535b7eaa4802ed42e8b6dd19f?context=explore

z@django-152:~$ cat Dockerfile

FROM node:8-jessie

# RUN echo 'deb http://archive.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
# RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
# RUN apt-get -o Acquire::Check-Valid-Until=false update

CMD tail -f /dev/null

z@django-152:~$ sudo docker build -t app2 .
z@django-152:~$ sudo docker run -it app2 bash
root@5910b3175a49:/# apt update

Ign http://security.debian.org jessie/updates InRelease
Ign http://deb.debian.org jessie InRelease          
Ign http://security.debian.org jessie/updates Release.gpg
Ign http://deb.debian.org jessie-updates InRelease
Ign http://security.debian.org jessie/updates Release
Ign http://deb.debian.org jessie Release.gpg
Err http://security.debian.org jessie/updates/main amd64 Packages
  
Ign http://deb.debian.org jessie-updates Release.gpg
Err http://security.debian.org jessie/updates/main amd64 Packages
  
Ign http://deb.debian.org jessie Release
Err http://security.debian.org jessie/updates/main amd64 Packages
  
Ign http://deb.debian.org jessie-updates Release
Err http://security.debian.org jessie/updates/main amd64 Packages
  
Err http://security.debian.org jessie/updates/main amd64 Packages
  404  Not Found [IP: 151.101.66.132 80]
Err http://deb.debian.org jessie/main amd64 Packages
  404  Not Found
Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.66.132 80]

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

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.

相关问题