sudo apt-get update
인터넷에 연결된 서버에서 실행 이 실패합니다. 서버가 일시적으로 고장 났거나 APT가 잘못 구성되어 기존 서버를 사용하고 있습니까? 요컨대, 이것을 어떻게 고치나요?
출력은 다음과 같습니다.
~$ uname -a
Linux nematode 2.6.28-19-server #66-Ubuntu SMP Sat Oct 16 18:41:24 UTC 2010 i686 GNU/Linux
~$ sudo apt-get update
Err http://us.archive.ubuntu.com jaunty Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://security.ubuntu.com jaunty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/main Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/universe Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/Release.gpg Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release.gpg Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/universe/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
답변
명령 행에서 해당 호스트를 해결할 수 있습니까?
jinx:775 Z$ ping us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.92.171) 56(84) bytes of data.
64 bytes from cassava.canonical.com (91.189.92.171): icmp_seq=1 ttl=128 time=104 ms
그렇지 않은 경우 다음 단계는 다음을 시도하는 것입니다 host -v
.
jinx:776 Z$ host -v us.archive.ubuntu.com
Trying "us.archive.ubuntu.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14243
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;us.archive.ubuntu.com. IN A
;; ANSWER SECTION:
us.archive.ubuntu.com. 592 IN A 91.189.88.31
us.archive.ubuntu.com. 592 IN A 91.189.88.40
us.archive.ubuntu.com. 592 IN A 91.189.88.45
us.archive.ubuntu.com. 592 IN A 91.189.88.46
us.archive.ubuntu.com. 592 IN A 91.189.92.169
us.archive.ubuntu.com. 592 IN A 91.189.92.170
us.archive.ubuntu.com. 592 IN A 91.189.92.171
us.archive.ubuntu.com. 592 IN A 91.189.88.30
Received 167 bytes from 10.211.55.1#53 in 37 ms
Trying "us.archive.ubuntu.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50130
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;us.archive.ubuntu.com. IN AAAA
;; AUTHORITY SECTION:
ubuntu.com. 1800 IN SOA ns1.canonical.com. hostmaster.canonical.com. 2011030301 10800 3600 604800 3600
Received 100 bytes from 10.211.55.1#53 in 65 ms
Trying "us.archive.ubuntu.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54875
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;us.archive.ubuntu.com. IN MX
;; AUTHORITY SECTION:
ubuntu.com. 1800 IN SOA ns1.canonical.com. hostmaster.canonical.com. 2011030301 10800 3600 604800 3600
Received 100 bytes from 10.211.55.1#53 in 62 ms
DNS 서버에서 반환 된 오류를 찾으십시오.
답변
DNS 문제인 것 같습니다. 문제를 해결하려면 다음을 확인해야합니다.
/etc/resolv.conf
DNS 서버에 대한 좋은 항목이 있습니다.
Google 에는 사용할 수있는 공개 DNS 서버가 있습니다 .
예를 들어 /etc/resolv.conf
위에서 설명한대로 파일 상단 (Google DNS 서버의 지점)에 다음 두 줄을 추가 할 수 있습니다 .
nameserver 8.8.8.8
nameserver 8.8.4.4
물론이 파일을 변경하려면 루트 권한이 있어야하며 변경하기 전에 백업해야합니다!
답변
이 스레드는 매우 오래되었다는 것을 알고 있지만 여전히 찾고있는 사람은 무선 액세스 포인트의 연결을 끊었다가 다시 연결하여이 문제를 해결했습니다.
답변
종종이 문제를 해결하기 위해 /etc/resolv.conf에 8.8.8.8을 입력했습니다. 월등 한 저렴한 클라우드 공급자 (이 경우 linode)를 처리 할 때 Esp.
고양이 /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
#nameserver 72.14.179.5
#nameserver 72.14.188.5
이들은 구글의 퍼블릭 DNS 서버입니다. 예, 아마도 해당 로그에서 도용을 추적 할 수 있습니다. 그러나 내가 그 서버에서 공격하는 경향이있는 유일한 사이트는 git and ubuntu archives입니다.
답변
나는 동일한 문제를 Err on apt-get update
ændrük가 올바르게 암시했다.
DNS 주소를 수동으로 파일 /etc/resolv.conf
에서 운영자의 DNS 주소 로 변경하여 문제를 해결했습니다 .
이전에는 192.168.0.254
Ubuntu 에서 설정했습니다 .
답변
나는 비슷한 문제가있어서
sudo apt-get update
끝내지 못했습니다. 오류가있었습니다. 케이블 모뎀 을 다시 시작하려고 시도했지만 작동했습니다. 케이블 모뎀을 다시 시작할 수도 있습니다.
답변
“http://us.archive.ubuntu.com”웹 페이지를 열 수 있는지 웹 브라우저에서 확인하십시오. 그렇다면 네트워크 프록시 설정에 문제가있는 것입니다.
Ubuntu Desktop에서 다음 단계를 수행하십시오.
- 시스템-> 환경 설정-> 네트워크 프록시로 이동하십시오.
- “수동 프록시 구성”을 선택하십시오
- “모든 프로토콜에 동일한 프록시 사용”확인
- HTTP 프록시 :, 포트 :
- 세부 정보를 누르고 “사용자 인증”을 확인하십시오.
- 사용자 이름과 비밀번호를 입력하고 닫습니다
이 작업을 수행 한 후 이러한 오류를 해결할 수있었습니다.