[ubuntu 20.04] sudo apt-get update 명령어 에러 해결방법 / sources.list 초기화 (2620:2d:4000:1::16)

🔮·2022년 5월 18일
4
post-thumbnail

https://wavescats.github.io/error/2022/05/18/ubun7.html

👆👆👆👆👆👆👆 블로그 이사했어요!










## 찾아보게된 이유
우분투에 설치되어 있는 파일을
업데이트 & 업그레이드를 하는
sudo apt-get update 명령어 실행중에
(2620:2d:4000:1::16)
ppa.launchpad.net:80에 연결할 수 없습니다 에러발생
구글링을 해서 내가 해결한 방법을 기록으로 남기려고 한다.
해결 방법
구글링을 해보면 '한국 KR 우분투 서버가 죽어서' 그렇다고
sources.list라는 파일을 수정해야된다고 해서
sudo vi /etc/apt/sources.list
또는
sudo gedit /etc/apt/sources.list
명령어를 이용하여 / 에디터 파일에 나오는
http://kr.archive.ubuntu.com/ubuntu/ 주소를 http://ftp.daum.net/ubuntu/ 으로 수정하는 작업을 했는데 (http://mirror.kakao.com/ubuntu)
결과는 더 꼬이기만 했다
해결해보다가 안되면 해결방법은 역시 초기화
sources.list 파일 초기화
sudo dpkg -S apt | grep sources.list
명령어로 sources.list 이 있는 경로를 알아낸다
경로를 알아냈으면 sudo cp 명령어 에 그대로 복사하여 붙여넣기
sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/
그 다음에 업데이트 & 업그레이드 를 해보면
sudo apt update && sudo apt upgrade
업데이트가 잘 되는걸 볼수있다
재부팅을 한번 해주면 좋다
발생했던 에러 내용
Err:1 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to ports.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to ports.ubuntu.com:80 (185.125.190.36), connection timed out Err:2 http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (185.125.190.36), connection timed out Err:3 http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-updates InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Err:4 http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-backports InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Reading package lists... Done W: Failed to fetch http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (185.125.190.36), connection timed out W: Failed to fetch http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) W: Failed to fetch http://uk-london-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to uk-london-1-ad-3.clouds.ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to ports.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to ports.ubuntu.com:80 (185.125.190.36), connection timed out W: Some index files failed to download. They have been ignored, or old ones used instead.


E: The repository 'http://ftp.daum.net/ubuntu maverick 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. E: The repository 'http://ftp.daum.net/ubuntu maverick-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. E: The repository 'http://ftp.daum.net/ubuntu maverick-backports 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.

0개의 댓글