Not able to get yum working using ftp.

Issues related to configuring your network
Post Reply
manu_leo
Posts: 5
Joined: 2015/01/07 16:20:01

Not able to get yum working using ftp.

Post by manu_leo » 2016/08/17 11:20:16

Hi Experts, I am setting up yum configuration through ftp on one of my centos machine. However it does not seems be to working . I am getting the below error all the time

Code: Select all

[root@Linux-Client home]# yum list all
Failed to set locale, defaulting to C
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
ftp://10.205.20.122:/pub/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host '10.205.20.122:'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: client-repo. Please verify its path and try again
On the Server

Code: Select all

[root@Linux-Server pub]# cat /etc/yum.repos.d/local.repo 
[local]
name=local
enabled=1
gpgcheck=0
baseurl=file:///var/ftp/pub/Packages/

On the CLIENT :-

Code: Select all

[root@Linux-Client home]# cat /etc/yum.repos.d/local.repo 
[client-repo]
name=local
enabled=1
gpgcheck=0
baseurl=ftp://10.205.20.122:/pub/

Code: Select all

[root@Linux-Client home]# ftp 10.205.20.122
Connected to 10.205.20.122 (10.205.20.122).
220 (vsFTPd 2.2.2)
Name (10.205.20.122:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/"
ftp> ls
227 Entering Passive Mode (10,205,20,122,68,236).
150 Here comes the directory listing.
drwxr-xr-x    4 0        0            4096 Aug 17 10:54 pub
226 Directory send OK.
ftp> cd pub
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (10,205,20,122,133,197).
150 Here comes the directory listing.
dr-xr-xr-x    3 0        0          258048 Aug 17 09:56 Packages
dr-xr-xr-x    2 0        0            4096 Aug 17 10:54 repodata
226 Directory send OK.
ftp> 
ftp> 
ftp> cd Packages
250 Directory successfully changed.
ftp> get ftp-0.17-54.el6.x86_64.rpm 
local: ftp-0.17-54.el6.x86_64.rpm remote: ftp-0.17-54.el6.x86_64.rpm
227 Entering Passive Mode (10,205,20,122,49,204).
150 Opening BINARY mode data connection for ftp-0.17-54.el6.x86_64.rpm (59152 bytes).
226 Transfer complete.
59152 bytes received in 0.00304 secs (19432.33 Kbytes/sec)
ftp> bye
221 Goodbye.
[root@Linux-Client home]# 
However when I try using yum , it fails with the above error message shared. The client and the server are in the same n/w, they are pingable, connectivity is there which I have tested through ftp. I am not sure where the issue is.

Appreciate all your help on this and thanks in advance.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Not able to get yum working using ftp.

Post by avij » 2016/08/17 12:02:57


Post Reply