본문 바로가기
Server/Ubuntu

E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.

by 유주원 2023. 9. 11.

2년 전에 마지막으로 빌드했던 docker file을 빌드하려고 했더니 아래와 같은 에러가 발생했다.

 

E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.

 

debian에서 저장소 repo가 업데이트 되었고, 이전 저장소는 삭제가 되어 발생한 에러였다. 아래와 같이 해당 위치에 있는 list 파일에서 저장소 url을 수정해 주자.

 

/etc/apt/sources.list

기존
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main
deb http://security.debian.org stretch/updates main
deb-src http://security.debian.org stretch/updates main  

 

변경
deb http://archive.debian.org/debian stretch main
deb-src http://archive.debian.org/debian stretch main
deb http://archive.debian.org/debian-security stretch/updates main
deb-src http://archive.debian.org/debian-security stretch/updates main

apt-get update를 해보면 아래와 같이 잘 받아오는 것을 확인할 수 있다.