LinuxSir.cn,穿越时空的Linuxsir!

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

帮我看看我为什么一直用不了yum

[复制链接]
发表于 2007-6-5 12:41:37 | 显示全部楼层 |阅读模式
我是内网,yum后提示如下:
[root@localhost ~]# yum -y install yum-fastestmirror
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Could not retrieve mirrorlist http://mirrors.fedoraproject.org ... ora-7&arch=i386 error was
[Errno 4] IOError: <urlopen error (110, '\xe8\xbf\x9e\xe6\x8e\xa5\xe8\xb6\x85\xe6\x97\xb6')>
Error: Cannot open/read repomd.xml file for repository: fedora

帮忙看是什么问题
 楼主| 发表于 2007-6-5 16:15:12 | 显示全部楼层
有没有人指点一下
回复 支持 反对

使用道具 举报

发表于 2007-6-5 17:20:07 | 显示全部楼层
看起来像网络问题,估计要设代理

请看这个


通过代理服务器使用yum

你可以通过标准的web代理服务器来访问软件仓库。如果你的系统通过一个web代理服务器访问 Internet,在/etc/yum.conf里要指定代理服务器详细资料。代理服务器设置项必须指定该代理服务器的完整URL,包括TCP端口号。如果你的代理服务器需要用户名或密码,通过添加代理服务器用户名(username)和代理服务器密码(password)设置项来指定。

下面设置yum使用代理服务器mycache.mydomain.com,连接到端口3128,使用用户名yum-user和密码qwerty。

QUOTE:
# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty

例3.使用代理服务器配置文件设置


全局设置

如果你在/etc/yum.conf中定义代理服务器,则当使用yum时所有用户都以这些定义连接这个代理服务器。

要允许特定用户访问代理服务器,则添加下列一些行到用户的shell profile文件中。缺省是bash shell,profile文件是~/.bash_profile。下面的设置允许shell所在用户的yum使用代理服务器 mycache.mydomain.com,连接到端口3128。

QUOTE:
# The Web proxy server used by this account
http_proxy="http://mycache.mydomain.com:3128"
export http_proxy

例4. 为使用代理服务器的Profile文件设置


如果代理服务器需要用户名或密码,添加这些到URL。要包含用户名yum-user和密码qwerty,设置如下:

QUOTE:
# The Web proxy server, with the username and password for this account
http_proxy="http://yum-user:qwerty@mycache.mydomain.com:3128"
export http_proxy

例5. 为代理服务器安全的Profile文件设置


              http_proxy环境变量
              The http_proxy environment variable is also used by curl and other utilities. Although yum itself may use http_proxy in either upper-case or lower-case, curl requires the name of the variable to be in lower-case.



原文
http://liqiankun80.blog.163.com/ ... 660920074695637767/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-5 22:43:18 | 显示全部楼层
感谢,估计问题正是代理问题,谢谢LS的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-5 22:43:30 | 显示全部楼层
感谢,估计问题正是代理问题,谢谢LS的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-6 12:35:21 | 显示全部楼层
不行。我现在上网是可以不通过代理自动配置的,在WIn下是要设置代理。我的yum.comf:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

proxy=http://192.168.88.1:8080
proxy_username=***
proxy_password=***********

运行后:
[root@localhost ~]# yum install yumex
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Could not retrieve mirrorlist http://mirrors.fedoraproject.org ... ora-7&arch=i386 error was
[Errno 4] IOError: <urlopen error nonnumeric port: '8080?'>
Error: Cannot open/read repomd.xml file for repository: fedora
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-6 12:36:46 | 显示全部楼层
另通过代理后是不能用FTP了,会不会受这个双重影响
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-22 08:25:08 | 显示全部楼层
好象解决方法如下:
在终端:export http_proxy="http://192.168.88.1:8080",然后yum,但yumx用不了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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