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
CREATING A REPOSITORY FILE
2 posts
• Page 1 of 1
Re: CREATING A REPOSITORY FILE
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..
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..
- SIbinPhilip
- Posts: 0
- Joined: Tue Nov 25, 2014 12:01 pm
2 posts
• Page 1 of 1