security.debian.org에는 Debian Docker 이미지가 포함된 '릴리스 파일이 없습니다'

security.debian.org에는 Debian Docker 이미지가 포함된 '릴리스 파일이 없습니다'

둘 다로 표시되며 debian:stable-slim현재 debian:stable둘 다 손상되었습니다(업데이트용).

> $ docker run -ti --rm  debian:stable-slim
Unable to find image 'debian:stable-slim' locally
stable-slim: Pulling from library/debian
fc491617b0f1: Pull complete
Digest: sha256:a85c2c0e634946e92a6f4a9a4f6ce5f19ce7c11885bc198f04ab3ae8dacbaffa
Status: Downloaded newer image for debian:stable-slim
root@e610973ac2f8:/# apt update
Ign:1 http://security.debian.org/debian-security stable/updates InRelease
Err:2 http://security.debian.org/debian-security stable/updates Release
  404  Not Found [IP: 151.101.130.132 80]
Get:3 http://deb.debian.org/debian stable InRelease [113 kB]
Get:4 http://deb.debian.org/debian stable-updates InRelease [36.8 kB]
Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8178 kB]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

다른 사람이 이것을 경험했거나 해결 방법을 찾았습니까?

답변1

다음 줄을 변경하여 이 문제를 해결할 수 있었습니다.

deb http://security.debian.org/debian-security stable/updates main

에게

deb http://security.debian.org/debian-security stable-security/updates main

다음을 실행하여 그렇게 할 수 있습니다.

sed -i 's/stable\/updates/stable-security\/updates/' /etc/apt/sources.list

답변2

문제

Debian Stretch (9) Docker 이미지에서 이 문제가 발생했습니다.

apt-get update를 실행할 때 아래 오류가 발생했습니다.

W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found [IP: xx]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

배경

이는 특히 보안 저장소와 관련이 있습니다.

이러한 저장소 정의는 apt에서 업데이트를 가져오는 데 사용되며 다음에서 정의됩니다./etc/apt/sources.list

공식 데비안 보안 권장 사항 -https://www.debian.org/security/

To keep your Debian operating system up-to-date with security patches, please add the following line to your /etc/apt/sources.list file

`deb http://security.debian.org/debian-security bullseye-security main contrib non-free`

답변

Dockerfile에 다음 줄을 추가하세요.

RUN echo "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list

RUN apt-get update

기타 솔루션

나에게 효과가 없었던 것:

  • 저장소를 stable-security로 변경
  • 플래그 로 apt 실행 --allow-releaseinfo-change- apt-get 업데이트와 플래그 쌍이 인식되지 않았습니다.

그 밖에 효과가 있었던 것:

  • 불스아이 보안 저장소를 사용하는 대신 스트레치 아카이브 저장소를 사용할 수 있습니다 deb http://archive.debian.org/debian stretch main contrib non-free. 보안 측면에서는 최신 릴리스부터 보안을 유지하는 것이 좋습니다.

업데이트

보안 저장소 문제를 확대하는 경우 위의 내용이 정확합니다.

보안 저장소에서 이러한 문제가 발생하는 이유는 무엇입니까?

내 경우 데비안 9는 보관되어 있고 지원되지 않으며 유지 관리되지 않는 버전입니다.

보안 저장소를 "수정"(우회)할 수 있었지만 APT에 대한 종속성 저장소와 관련된 추가 문제가 있었습니다. 버전이 더 이상 사용되지 않으므로 이러한 저장소는 아카이브를 가리켜야 합니다.

일반적으로 이로 인해 Debian 10으로 업그레이드해야 했습니다. Debian 10에서는 위의 수정 사항이 필요하지 않았습니다.

답변3

debian.org에서... ("stretch"를 현재 실행 중인 버전으로 바꾸세요). 유사해 보이는 다른 줄을 지운 다음 apt-get update 및 apt-get 업그레이드를 수행합니다.

deb http://archive.debian.org/debian/ stretch main non-free contrib
deb-src http://archive.debian.org/debian/ stretch main non-free contrib

deb http://archive.debian.org/debian-security/ stretch/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ stretch/updates main non-free contrib

관련 정보