LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2016, 06:59 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 193

Rep: Reputation: 15
Unable to run YUM Update successfully


I'm trying to run YUM Update, when I do the following message is displayed:

Loaded plugins: fastestmirror, langpacks


One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable <repoid>

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/$releasever/x86_64

I've been working on this for several months now and have not had any success. I read several post and google several articles. Just today I recently turned on IPV6 in and effort to get things working, I've had no luck yet.

Has anyone had this problem and resolved it?

Thanks
 
Old 06-05-2016, 08:12 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,780

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
What distro are you using? What repository are you trying to access? Have you actually tried each of suggestions 2, 3, and 4?
 
Old 06-05-2016, 08:36 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Isn't this the exact same thing you posted about last month?
http://www.linuxquestions.org/questi...um-4175578751/

You were given suggestions and solutions there. Post #9 by knudfl.
 
Old 06-05-2016, 01:54 PM   #4
louisb
Member
 
Registered: Aug 2003
Posts: 193

Original Poster
Rep: Reputation: 15
To the comment made by TB0one you are correct I did post the last month. As of this post I have not been able to resolve my reported issue yet. I've tried all of the posted solution and so far no success yet. I discovered over the past month that I had other issues with my CENTOS 7.1 installation. As of this post the only remaining issue is this one. I'm getting the following error message when I try to execute a "YUM Update":

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7.2....ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Can you provide some insight about what might be happening that's causing the above error? Allow me to apologize for not following correct protocol or offending anyone.

To the RockDoctor I'm running CENTOS 7.1.

I would appreciate any help that I can get.

Thanks
 
Old 06-05-2016, 02:17 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,534

Rep: Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622
you were informed last month that -- 7.1 is unsupported
the repos moved to " The Vault"

dist upgrade to 7.2 first

Code:
su -
yum --releasever=7.2 upgrade
or

install the 7.2 repolists
http://mirrors.kernel.org/centos/7.2....10.x86_64.rpm
manually edet ( if needed) any third party repos
then run a update

Last edited by John VV; 06-05-2016 at 02:27 PM.
 
1 members found this post helpful.
Old 06-05-2016, 02:33 PM   #6
louisb
Member
 
Registered: Aug 2003
Posts: 193

Original Poster
Rep: Reputation: 15
I checked my version I'm running the following release of CENTOS:

cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)

When I run sudo Yum --releasever=7.2 upgrade I get the following message below:

Loaded plugins: fastestmirror, langpacks
http://mirror.centos.org/centos/7.2....ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/



One of the configured repositories failed (CentOS-7.2 - Base),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable base

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=base.skip_if_unavailable=true

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7.2....ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Thanks

I followed the above instructions and still no success, what am i doing wrong?
 
Old 06-05-2016, 04:20 PM   #7
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Linux Mint
Posts: 862

Rep: Reputation: 246Reputation: 246Reputation: 246
Quote:
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7.2....ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
That seems to be the issue and as such, either the address/mirror you are using is not right or down. The numbered instructions you posted show what to do as 1) have upstream fix it 2) Reconfigure the url 3) Disable it or 4) configure it to be skipped if it is down. Seems to me the easiest fix would be to pick a different mirror.
 
Old 06-05-2016, 09:31 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,534

Rep: Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622
using " su -" in case sudo is messed up -- it is not set up by default

please post the output of this

Code:
su -
yum repolist all
this will give us an idea of the files in the repo folder and if they are on or off

from that we move on to reading EACH *.repo file and see just what each is using


but this error right here SHOULD have been fixed ( unless YOU added it by manually editing the url in the repo file)
by installing or reinstalling the centos-release rpm

Code:
http://mirror.centos.org/centos/7.2.1511/updates/x86_64/repodata/repodata/repomd.xml
that is the WRONG location

this is the correct one for the updates repo
Code:
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra

http://mirror.centos.org/centos/7.2.1511/updates/x86_64/
from the"CentOS-Base.repo" in the "centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm"
Code:
#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Last edited by John VV; 06-05-2016 at 09:43 PM.
 
  


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
Unable to run yum update on my RHEL6.6 box gauravprashar17 Linux - Software 4 12-29-2015 11:28 PM
Unable to successfully run menulibre JKostaRibeiro Slackware 15 05-21-2015 05:30 PM
unable to update yum seeker48 Linux - Newbie 2 06-05-2009 07:22 AM
Unable to run "yum update" dependency problems!! baig Linux - Newbie 11 11-28-2008 08:20 PM
Unable to yum update tkt Linux - Newbie 1 09-22-2005 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 AM.

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
Open Source Consulting | Domain Registration