2013-03-18 5 views
-2

저는 최근에 쿠분투를 설치했습니다. muon 소프트웨어 센터에서 소프트웨어를 설치할 수 있습니다. 그러나 터미널에서 그렇게하려고하면 오류가 발생합니다. 업데이트하려고에 예를 들어, 내가 얻을 : 나는 자식 코어를 설치하려고 할 때 쿠분투에 소프트웨어 설치

Err http://archive.canonical.com quantal InRelease 

Err http://archive.canonical.com quantal Release.gpg 
    Unable to connect to archive.canonical.com:http: 
Err http://archive.ubuntu.com quantal InRelease  

Err http://archive.ubuntu.com quantal Release.gpg  
    Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.201 80] 
Reading package lists... Done 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/InRelease 

W: Failed to fetch http://archive.canonical.com/dists/quantal/InRelease 

W: Failed to fetch http://archive.canonical.com/dists/quantal/Release.gpg Unable to connect to archive.canonical.com:http: 

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.201 80] 

W: Some index files failed to download. They have been ignored, or old ones used instead. 

마찬가지로, 내가 얻을 :

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
The following extra packages will be installed: 
    git git-man liberror-perl 
Suggested packages: 
    git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn 
    git-email git-gui gitk gitweb 
The following NEW packages will be installed: 
    git git-core git-man liberror-perl 
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 
Need to get 6,704 kB of archives. 
After this operation, 15.4 MB of additional disk space will be used. 
Do you want to continue [Y/n]? y 
Err http://archive.ubuntu.com/ubuntu/ quantal/main liberror-perl all 0.17-1 
    Could not connect to archive.ubuntu.com:80 (91.189.92.202). - connect (111: Connection refused) [IP: 91.189.92.202 80] 
Err http://archive.ubuntu.com/ubuntu/ quantal/main git-man all 1:1.7.10.4-1ubuntu1 
    Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
Err http://archive.ubuntu.com/ubuntu/ quantal/main git i386 1:1.7.10.4-1ubuntu1 
    Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
Err http://archive.ubuntu.com/ubuntu/ quantal/main git-core all 1:1.7.10.4-1ubuntu1 
    Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberror-perl_0.17-1_all.deb Could not connect to archive.ubuntu.com:80 (91.189.92.202). - connect (111: Connection refused) [IP: 91.189.92.202 80] 
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.7.10.4-1ubuntu1_all.deb Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_i386.deb Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git-core_1.7.10.4-1ubuntu1_all.deb Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80] 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

나는이 문제를 어떻게 처리하나요. 그게 중요하다면 나는 프록시 서버 뒤에 인터넷을 사용하고있다.

+2

귀하의 질문에 유래하는 것보다 수퍼 유저에 더 많은 속한다. – Jean

+1

또는 askubuntu, 가급적이면. – geoffspear

답변

2

당신은 /etc/apt/apt.conf

Acquire::http::Proxy "http://proxy-ip-or-hostname:port"; 

예에 프록시 설정을 추가해야합니다 :

Acquire::http::Proxy "http://192.168.0.1:3128"; 

또는 인증

Acquire::http::Proxy "http://user:[email protected]:3128"; 
+0

나는 항상이 문제를 겪었습니다. 이것은 영구적 인 해결책 인 것 같습니다. 감사! – sudeepdino008