본문 바로가기
Error Handling

Ubuntu apt-get update 명령어 이후, Some index files failed to download. 에러 발생 및 해결하기

by 클수저 2024. 4. 19.
728x90
반응형

 

새로운 라이브러리를 설치하기 위하여 우분투에서 apt-get update 명령어를 사용해서 update를 하던 와중에 아래와 같은 에러를 만났다.  ㅎ ㅏ......그놈의 에러..... 리눅스 에러는 정말 볼때마다 친해지기는 어렵다...

E: Some index files failed to download.

인덱스 파일 다운안되고.....뭐...어쩌구 저쩌구....

구글링을 해본 결과 apt 패키지 안에 서버의 문제라고 답이 나오는 상황이었다.

문제를 정확하게 해결할 수 있도록 참조한 블로그는 다음과 같다.

 

sudo apt-get upgrade 다운로드 서버 변경

sudo apt-get upgrade 를 하니까 E: Some index files failed to download. They have been ignored, or old ones used instead. 이런 에러 메시지가 떴다. 그래서 인터넷을 찾아보니 apt-get 서버를 변경하면 된다는걸 찾았다. 1.

wooriel.tistory.com

 

sudo vi /etc/apt/sources.list

apt 패키지 안에 sources.list를 확인하면 아래와 같다.

URL 앞에 US가 되어있다. 즉, 서버 자체가 미국서버로 통신이 된다는 의미인 것 같다.

그것을 다음과 같이 변경 한다.

us.archive.ubuntu.com/ubuntu 👉ftp.daumkakao.net/ubuntu

 

변경 후, 저장!

sudo apt-get update

위 명령어로 업데이트 진행!

정상적으로 명령어가 샐행되는 모습을 확인 할 수 있다.

 

나머지 apt명령어도 정상적으로 동작하는 것을 확인 할 수 있다.


참조 블로그

https://yujuwon.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%AC-Some-index-files-failed-to-download-%EC%97%90%EB%9F%AC

 

우분투 Some index files failed to download 에러

우분투 14.04 서버가 새로 도착하여 깔끔하게 apt-get update를 진행하려고 하는데 자꾸 아래와 같은 에러 메시지가 발생한다. Some index files failed to download. They have been ignored, or old ones used instead. 열심

yujuwon.tistory.com

https://flowerinmyheart.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%AC-aptget-update-%EB%AC%B8%EC%A0%9C-%ED%95%B4%EA%B2%B0

 

<우분투> apt-get update 문제 해결

업데이트가 안되는 문제 E: Some index files failed to download. They have been ignored, or old ones used instead. 뭐 크게 짜증날 필요는 없다. 1. 최신 버전일 경우 $ sudo vi /etc/apt/sources.list 파일을 열고 :%s/kr.archieve.ub

flowerinmyheart.tistory.com

 

728x90
반응형