sudo apt-get update
명령어를 실행했는데 언젠가 부터 아래와 같은 오류가 남.
Err:1 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://dl.google.com/linux/chrome/deb stable InRelease
Temporary failure resolving 'dl.google.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu bionic-security 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 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease Temporary failure resolving 'dl.google.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
해결방법
1) $ vi /etc/network/interfaces 를 열고
dns-nameservers 8.8.8.8 8.8.4.4 를 추가.
2) $ vi /etc/resolv.conf 를 열고
nameserver 8.8.8.8
nameserver 8.8.4.4
를 추가
- 그리고 apt-get update 명령을 하면 오류가 나지 않고 정상적으로 처리되었다.
'OS > ubuntu' 카테고리의 다른 글
지킬[jekyll] serve 백그라운드 실행 (1) | 2020.09.11 |
---|---|
우분투 하드웨어(cpu, 램) 사용량 확인 하기 (0) | 2020.08.09 |
우분투 cpu/디스크 온도, 습도 확인하기 (0) | 2020.08.07 |
우분투 18.04 LTS / 주기적으로 커널 명령하기 / 자동 명령,스케줄링 /crontab 사용법 (2) | 2019.12.27 |
.sh 스크립트 실행시, Permission denied (1) | 2019.08.05 |
댓글