본문 바로가기
실무

apt update 404 Not Found 에러 해결 방법 - The repository does not have a Release file.

2021. 10. 7.

TmaxOS21에서 docker를 설치하려고 했더니 설치는 안되고 apt update를 할 때마저 아래와 같은 에러가 발생했다.

$ sudo apt update
기존:1 http://tos-repo.tmaxos.com/tmax nabi InRelease
기존:2 http://tos-repo.tmaxos.com/tmax tmax InRelease                          
기존:3 http://dl.google.com/linux/chrome/deb stable InRelease                  
무시:4 https://download.docker.com/linux/ubuntu nabi InRelease                
오류:5 https://download.docker.com/linux/ubuntu nabi Release
  404  Not Found [IP: 54.192.70.31 443]
패키지 목록을 읽는 중입니다... 완료
E: The repository 'https://download.docker.com/linux/ubuntu nabi 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.

 

구글링을 아무리 해봐도 nabi 버전?을 해결한 경우는 없었다. 그러다가 아래 방법으로 문제를 해결할 수 있었다.

 

$ cd /etc/apt/sources.list.d/
$ ls
docker.list  tmax.list  togate-browser.list

/etc/apt/sources.list.d/ 경로에 존재하는 파일을 확인해보면 위 3개의 list 파일이 있는데, 아무래도 docker.list 때문에 문제가 생기는 것 같아서 이 파일을 삭제했다.

$ sudo rm docker.list
$ sudo apt update
기존:1 http://tos-repo.tmaxos.com/tmax bullseye InRelease
기존:2 http://tos-repo.tmaxos.com/tmax nabi InRelease
기존:3 http://tos-repo.tmaxos.com/tmax tmax InRelease
기존:4 http://dl.google.com/linux/chrome/deb stable InRelease
패키지 목록을 읽는 중입니다... 완료     
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료        
All packages are up to date.

다시 apt update를 해보니 잘 된다. 도커 설치도 잘 완료되었다.

댓글