红联Linux门户
Linux帮助

ftp方式yum源问题

发布时间:2011-09-12 01:14:04来源:红联作者:梦の里花
配置yum时我直接先在.repo中用file形式可以安装包 然后改成ftp方式yum源就不行了
vsftpd服务也开启了!代码如下 哪位大大把看看 才学linux的 小弟感激不尽

[root@localhost yum.repos.d]# vim rhel-debuginfo.repo
[server]
name=server directory
baseurl=ftp://192.168.1.2/var/ftp/yum/Server
enabled=1
gpgcheck=0


[root@localhost ~]# yum install samba
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
ftp://192.168.1.2/var/ftp/yum/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba.i386 0:3.0.33-3.29.el5_5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
samba i386 3.0.33-3.29.el5_5.1 server 16 M

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 16 M
Is this ok [y/N]: y
Downloading Packages:
ftp://192.168.1.2/var/ftp/yum/Server/samba-3.0.33-3.29.el5_5.1.i386.rpm: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.

Error Downloading Packages:
samba-3.0.33-3.29.el5_5.1.i386: failure: samba-3.0.33-3.29.el5_5.1.i386.rpm from server: [Errno 256] No more mirrors to try.
文章评论

共有 5 条评论

  1. qiangu 于 2011-09-13 09:21:39发表:

    恭喜楼主

  2. 梦の里花 于 2011-09-12 10:42:43发表:

    嗯 谢谢就是路径问题 改成ftp://192.168.1.2/yum/Server 就好了 - -

  3. age 于 2011-09-12 10:38:37发表:

    引用:
    ftp://192.168.1.2/var/ftp/yum/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.

    路径不对, 检查下你的ftp匿名用户根目录在哪, 一般是不能出这个目录的

  4. Diary 于 2011-09-12 09:24:52发表:

    帮顶下

  5. 梦の里花 于 2011-09-12 09:02:38发表:

    请哪位高手指教下~感激不尽