LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1102|回复: 7

我晕了,我这里用不了yum

[复制链接]
发表于 2006-10-4 23:41:20 | 显示全部楼层 |阅读模式
我们公司宿舍里的代理很有趣的

一般的开网页用的是 lqa.domain.com
而下载用的代理则是 lqb.domain.com

这样导致yum无法使用,有人能否帮我解决这个问题?

:help :help :help :help :help
发表于 2006-10-5 08:08:33 | 显示全部楼层
/etc/yum.conf添加
proxy=http://lqb.domain.com:3128
试试
回复 支持 反对

使用道具 举报

发表于 2006-10-5 08:16:18 | 显示全部楼层
恩 楼上的是正解 端口倒是要试一下
不行的话  
export http_proxy="http://lqb.domain.com:port"
yum update
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-5 18:11:02 | 显示全部楼层
都不行,
我用 export http_proxy=http://user:pass@lqa.domain.com:port (lqa为只可浏览,不能下载的)
出现如下错误:

  1. [root@localhost heaven]# yum update
  2. Loading "installonlyn" plugin
  3. Setting up Update Process
  4. Setting up repositories
  5. core                                                                 [1/3]
  6. core                      100% |=========================| 1.1 kB    00:00
  7. updates                                                              [2/3]
  8. updates                   100% |=========================| 1.2 kB    00:00
  9. extras                                                               [3/3]
  10. ftp://fedora.mirrors.tds.net/pub/fedora-core-extras/5/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] (113, '\xe6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')
  11. Trying other mirror.
  12. extras                    100% |=========================| 1.1 kB    00:00
  13. Reading repository metadata in from local files
  14. http://ftp.ussg.iu.edu/linux/fedora/linux/core/5/i386/os/repodata/primary.xml.gz: [Errno 14] HTTP Error 403: Server: squid/2.5.STABLE5
  15. Mime-Version: 1.0
  16. Date: Thu, 05 Oct 2006 10:05:01 GMT
  17. Content-Type: text/html
  18. Content-Length: 1263
  19. Expires: Thu, 05 Oct 2006 10:05:01 GMT
  20. X-Squid-Error: ERR_ACCESS_DENIED 0
  21. X-Cache: MISS from ehome.domain.com
  22. Proxy-Connection: close
  23. Trying other mirror.
  24. http://ftp.ale.org/mirrors/fedora/linux/core/5/i386/os/repodata/primary.xml.gz: [Errno 14] HTTP Error 403: Server: squid/2.5.STABLE5
  25. Mime-Version: 1.0
  26. Date: Thu, 05 Oct 2006 10:05:01 GMT
  27. Content-Type: text/html
  28. Content-Length: 1259
  29. Expires: Thu, 05 Oct 2006 10:05:01 GMT
  30. X-Squid-Error: ERR_ACCESS_DENIED 0
  31. X-Cache: MISS from ehome.domain.com
  32. Proxy-Connection: close
  33. Trying other mirror.
复制代码


而用 export http_proxy=http://user:pass@lqb.domain.com:port (lqb为只可下载,不能做其它事情)
则出现以下错误:

  1. [root@localhost heaven]# yum update Loading "installonlyn" plugin
  2. Setting up Update Process
  3. Setting up repositories
  4. core                                                                 [1/3]
  5. Cannot find a valid baseurl for repo: core
  6. Error: Cannot find a valid baseurl for repo: core
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-10-6 13:44:49 | 显示全部楼层
浏览也是先下载到本地的缓存再浏览啊,有什么区别么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-6 18:12:28 | 显示全部楼层
8清楚,怪怪的,我想这里的破网是用不了yum了
回复 支持 反对

使用道具 举报

发表于 2006-10-6 18:14:48 | 显示全部楼层
同时要设置 http_proxy 和 ftp_proxy 才行的,设成相同的值
因为 core mirrors 是随机选择的,所以可能会随到 ftp_proxy
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-6 20:14:53 | 显示全部楼层
不行了,破网上不了FTP
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表