• 목록
  • 아래로
  • 위로
  • 쓰기
  • 검색

도커 우분투 apt-get update 에러 뜰때

덕후 덕후
1687 0 0

도커로 우분투 설치 후 apt-get update가 안되는 상황

도커 공부를 좀 해볼려고 도커 공식 우분투 이미지를 다운로드 받아서 설치했는데, 리눅스를 깔고나면 가장 먼저 하게 되는.. sudo apt-get update를 하고 기분좋게 쳐다보려고 하는데 뭔 에러가 아래 처럼 주루룩 뜹니다.

 

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease                                         
  Temporary failure resolving 'security.ubuntu.com'                                                       
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease                                                   
  Temporary failure resolving 'archive.ubuntu.com'                                                        
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                           
  Temporary failure resolving 'archive.ubuntu.com'                                                        
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                         
  Temporary failure resolving 'archive.ubuntu.com'                                                        
Reading package lists... Done                                                                             
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'a
rchive.ubuntu.com'                                                                                        
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure reso
lving 'archive.ubuntu.com'                                                                                
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Temporary failure re
solving 'archive.ubuntu.com'                                                                              
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Temporary failure re
solving 'security.ubuntu.com'                                                                             
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

 

내가 뭘 잘못했는데....

 

찾아보니 DNS 문제거나 그걸로 해결이 안된다면 혹은 캐싱 문제로 우분투 도커 이미지를 삭제하면 된다고도 하는데 아래 답변들을 참고합시다.

  • https://askubuntu.com/questions/881843/dns-issue-with-docker-image
  • https://stackoverflow.com/questions/37706635/in-docker-apt-get-install-fails-with-failed-to-fetch-http-archive-ubuntu-com

 

 

 

신고공유스크랩

댓글 0

댓글 쓰기
에디터 모드

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

이 댓글을 삭제하시겠습니까?

공유

퍼머링크
번호 제목 글쓴이 날짜 조회 수
2
image
덕후 21.03.20.03:17 3318
normal
덕후 21.03.13.23:08 1687