Chinaunix

标题: sudo apt-get install gettext [打印本页]

作者: yiyeshuv5    时间: 2012-07-21 11:50
标题: sudo apt-get install gettext
实用Ubuntu自动安装gettext时,提示连接失败,为什么会自动连接这个IP161.92.51.225呢?现在无法自动安装,该如何解决?求高手,谢谢
gav@ubuntu:~/gettext-0.18$ sudo apt-get install gettext
[sudo] password for gav:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  cvs
Suggested packages:
  gettext-doc
The following NEW packages will be installed:
  cvs gettext
0 upgraded, 2 newly installed, 0 to remove and 494 not upgraded.
Need to get 3,447kB of archives.
After this operation, 11.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  cvs gettext
Install these packages without verification [y/N]? y
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main cvs 1:1.12.13-12ubuntu1.10.04.1
  Could not connect to 161.92.51.225:8080 (161.92.51.225). - connect (110: Connection timed out)
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main gettext 0.17-8ubuntu3
  Unable to connect to 161.92.51.225:8080:
Err http://security.ubuntu.com/ubuntu/ lucid-security/main cvs 1:1.12.13-12ubuntu1.10.04.1
  Could not connect to 161.92.51.225:8080 (161.92.51.225). - connect (110: Connection timed out)
Failed to fetch http://security.ubuntu.com/ubunt ... u1.10.04.1_i386.deb  Could not connect to 161.92.51.225:8080 (161.92.51.225). - connect (110: Connection timed out)
Failed to fetch http://us.archive.ubuntu.com/ubu ... 7-8ubuntu3_i386.deb  Unable to connect to 161.92.51.225:8080:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

作者: yiyeshuv5    时间: 2012-07-21 12:33
我已经解决了,修改/etc/apt/apt.conf,将里面原有的网址替换成有效的IP即可。
比如我先ping us.archive.ubuntu.com,能够得到这个URL的有效IP,打开这个IP后界面提示使用80端口。然后把这些信息填到apt.conf里就行了
搞了好久才知道,浪费时间了
作者: dfi123    时间: 2014-01-18 14:04
學習學習學習學習學習學習
作者: xitry    时间: 2014-01-20 14:28
修改下软件源就好了,有图形界面可以配置的
作者: amarant    时间: 2014-01-22 09:51
你的机器是通过代理上网的吧?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2