搭了个 yum 服务器 ,验证时yum list 报错

ftp://192.168.0.100/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-debuginfo. Please verify its path and try again

日志文件:Mar 27 01:36:11 localhost : error getting update info: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-debuginfo. Please verify its path and try again

 

问题解决方法,登录ftp服务器查看登录的目录是哪一个

[root@mail ~]# lftp 192.168.0.100

lftp 192.168.0.100:~> pwd

ftp://192.168.0.100

lftp 192.168.0.100:~> ls

drwxr-xr-x    8 0        0            4096 Mar 26 17:23 pub

lftp 192.168.0.100:/>

由此看出yum源的配置路径写错了,应该改为 ftp://192.168.0.100/pub/Server
在使用命令 yum list 验证,没报错了。