centos-yum-update-depency-problem
Hi i have a problem when i use yum this is the error:
Code:
yum update Code:
# CentOS-Base.repo |
Welcome to LQ!!!
Why all baseurls in CentOS-Base.repo are commented out? I would suggest uncommenting all baseurls in CentOS-Base.repo and your repo file should like as below: Code:
# CentOS-Base.repo Code:
yum clean all |
When i do yum repolist do the same error, but later:
Quote:
|
posting the content of just one of the repos files is really not very useful
a much better option is this use yum ! Code:
su - it will inform us as to WHAT repos ( cent and third party's ARE !!! installed ) and if they are turned ON or OFF |
The output is:
Code:
[root@mail ~]# su - |
i am guessing that at some point before this problem
you manually edited the url's pointing to the cent repositories --- never a good idea --- download and FORCE a reinstall of the cent7 release repo rpm http://mirror.centos.org/centos/7/os...2.8.x86_64.rpm ( select SAVE AS !!!) then cd into the Downloads folder as "root" and force a reinstall of the rpm Code:
su - Code:
su - |
No it doesn't work :( this is all command i have executed:
Code:
[youssef4d@mail ~]$ cd /home/youssef4d/downloads |
I I still have not solved the problem :(
|
In your system's /etc/yum.repos.d/<main repo file.repo> comment out the following url:
Code:
http://mirror.centos.org/centos/7/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Code:
yum clean all ? Because 404 is for page not found which means the location doesn't exist. I will check repo file on my CentOS 7 box (not near my CentOS system as of now) |
odd
this location IS NOT!!!!! part of the mirror list -- this is NOT in any mirror "http://mirror.centos.org/centos/7/addons/x86_64/repodata/repomd.xml" that location is no existent , so HOW did it get in there that is why i am assuming that you manually edited a file -------------------------------- go look there is no "addons" folder anyplace http://mirror.centos.org/centos/7/ ------------------------------- this IS the correct mirror link from the rpm link i posted Code:
name=CentOS-$releasever - Base manually look at EVERY *.repo file in yum.repos.d folder and see if any of them have the word "addons" in the URL |
This is CentOS-Base.repo:
Code:
# CentOS-Base.repo Code:
http://mirror.centos.org/centos/7/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Code:
#[addons] Code:
[root@mail ~]# yum repolist |
Here is my CentOS 7 base repo:
Code:
# CentOS-Base.repo Code:
yum clean all |
forcing a reinstall of the cent release repo rpm should have replaced that
centos-release-7-1.1503.el7.centos.2.8.x86_64.rpm from post 6 should have replaced that - your "Manually edited" CentOS-Base.repo file and REMOVE that non existent "addons" url that was added to that file REPLACE that file with the one in the rpm from post 6 or from "T3RM1NVT0R" above post |
Quote:
Code:
[root@mail ~]# yum clean all Code:
[root@mail ~]# yum update |
Code:
[root@mail ~]# yum clean all Was it working before? Is this a new setup? If it was working before then what were the changes that you made after which it stopped working? As I can see from your previous posts your internet connection is fine. Running yum update as well able to connect to repos it is just that it is not able to fetch the information we are looking for. I am making a guess here that it could be a curl issue, yum is nothing but a python script which uses curl to pull the information. So if something is wrong with curl package it is quite possible that you are not able to get the required information. You can try to download curl from CentOS site for CentOS 7 and then update it using rpm -Uvh and then give yum a try. |
All times are GMT -5. The time now is 02:49 PM. |