CREATING A REPOSITORY FILE

Learn More about linux

CREATING A REPOSITORY FILE

Postby sreevishnu » Mon Feb 16, 2015 1:02 pm

when i tried to create a repository file and tried "yum repolist", the following error found. please try to fix it
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel. Please verify its path and try again
sreevishnu
 
Posts: 0
Joined: Wed Feb 11, 2015 12:38 pm

Re: CREATING A REPOSITORY FILE

Postby SIbinPhilip » Tue Feb 17, 2015 11:00 am

Hello Sreevishnu,

There are few reasons for this error. I will guide you through some of them.

1. Please check the selinux status and see whether it is permissive or enforcing. If it is enforcing, change it to permissive mode.

Edit the file /etc/sysconfig/selinux and change the mode or you can set the selinux through command.

setatus - to check the status of the selinux
setenforce 0 - to set the selinux to permissive mode
setenforce 1 - to set the selinux to enforcing mode

Now set the selinux to permissive. If it is already in permissive mode please ignore the above mentioned step.

2. Flush the iptables and save it.

iptables -L - to list
iptables -F - to flush the iptables
service iptables save

3. Some times the ca certificate might have been out-dated , you need to update the ca certificate depending upon the repository you choose.

4. See if that repository exist because most of the repositories might be expired , if not check for alternative repositories.

Hope this might help you.. :) :D
SIbinPhilip
 
Posts: 0
Joined: Tue Nov 25, 2014 12:01 pm


Return to Know Linux

Login  •  Register

cron