- 论坛徽章:
- 0
|
本帖最后由 DesBOY1 于 2015-05-22 11:20 编辑
基本信息如下:
主机A IP:192.168.1.1/24,网关192.168.1.254,操作系统windows 2012 R2
主机B IP:192.168.2.1/24,网关192.168.2.254,操作系统rhel6.5_x86-64
两台主机连通性正常。现在主机A上安装ftp服务,用户名anonymous,密码为任意,redhat的软件包放在主机A的ftp目录中(目录名称APPs),现要将这个ftp目录做为主机B的yum远程安装源,主机B的repo配置如下:
文件名yumftp.repo
[ftp]
name=ftpyum
baseurl=ftp@//192.168.1.1/APPs
enable=0
gpgcheck=1
gpgkey=ftp@//192.168.1.1/APPs/RPM-GPG-KEY-redhat-release
主机B配置完后
yum clean all
然后使用yum随便装一个软件,报的错如下:
File"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py",line 1126,in_hdr_retrieve
self.size=int(s)
valueerror:invalid literal for int() with base 10:"20131111191628.000'
current download cancelled,interrupt (ctrl-c) again within two seconds to exit.
Error:cannot retrieve repository metadata(repomd.xml) for repository;ftp.please verify its path and try again.
主机A上可以看到ftp的动作,主机A上也存在repomd.xml文件,目录权限everyone完全控制,请问这是怎么一回事?感谢
PS:因暂无权限发url的贴子,文中ftp后的@实为: |
|