LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2010, 05:04 AM   #1
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
yum via ftp (with different directory)


Hi All

I am using RHEL 5.4 on hp's proliat DL380 series server. I want to install kde through yum on one of our server. I installed vsftpd rpm and created the repository. i put an directive anon_root=/opt/yum in vsftp.conf file. Firewall,iptables and selinux's are disabled. When i do, "yum list lsscsi", i am getting the following error
Quote:
[root@einbalx0006 ~]# yum list lsscsi
Loaded plugins: rhnplugin, security
Repository 'local' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
ftp://147.128.148.142/opt/yum/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: local. Please verify its path and try again
[root@einbalx0006 ~]#
i changed the permission of /opt/yum directory in server to root:ftp with 777. But still i failed to achieve. Please help me.

My yum configuration file is as follows,
Quote:
[root@einbalx0006 yum.repos.d]# cat local.repo
[local]
baseurl=ftp://147.128.148.142/opt/yum
enabled=1
gpgcheck=0
[root@einbalx0006 yum.repos.d]#
 
Old 11-30-2010, 08:13 AM   #2
josh.engelbrecht
LQ Newbie
 
Registered: Sep 2010
Location: Sioux Falls, SD
Distribution: Fedora/CentOS
Posts: 4

Rep: Reputation: 0
try removing '/opt/yum' from the repo file. You already told the vsftp server that your base path is /opt/yum.
 
Old 11-30-2010, 10:51 PM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21
it didnt help me.
 
Old 12-01-2010, 09:14 AM   #4
josh.engelbrecht
LQ Newbie
 
Registered: Sep 2010
Location: Sioux Falls, SD
Distribution: Fedora/CentOS
Posts: 4

Rep: Reputation: 0
are you still getting the same error? is there an error in the ftp log (not just the yum error) that is useful? Also is there a /opt/yum/repodata directory with the repomd.xml file(just trying to cover all bases). Can you access the ftp site via a web browser (ftp://147.128.148.142)? If not look in the log files again and see if there is a useful error. If so, try recreating the repository.

Side note: on the yum server I have running (hosted via web), the permissions are 644 root:root
And the ftp server I have are the same.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can yum override an exclusion in the /etc/yum.conf directory eodchop Fedora 3 12-05-2013 05:44 PM
ftp user can't create a directory on ftp server bharatlalgupta Red Hat 4 01-27-2010 01:58 PM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM


All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration