NVIDIA Drivers apper to break yum repository

Issues related to hardware problems
User avatar
stuartw
Posts: 8
Joined: 2015/03/18 17:20:07

NVIDIA Drivers apper to break yum repository

Post by stuartw » 2015/03/18 17:27:08

After installing the NVIDIA (blacklist nouveau and so forth) the driver and graphics hardware seem to work well, but a subsequent use of yum produces the following message:

[root@torch stuart]# yum install alacarte
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 have been unsuccessful trying to repair the condition and have been through a few reinstalls to verify that the driver installation causes the problem. My system has a pair of GTX 970 cards. Both are recognized and configurable through nvidia-xconfig. Does anyone know how to repair this?

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NVIDIA Drivers apper to break yum repository

Post by TrevorH » 2015/03/18 17:58:56

Did you install the drivers from the ELRepo repository?

If you didn't (and it sounds like you didn't) then I don't think the two things are related. Try running yum with varying debug levels using e.g yum -d 3 install alacarte and bump the -d number incrementally until it gives some useful information. Post the output here if it's not immediately apparent what the problem might be.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
stuartw
Posts: 8
Joined: 2015/03/18 17:20:07

Re: NVIDIA Drivers apper to break yum repository

Post by stuartw » 2015/03/18 19:53:21

Thanks for your reply. Regarding elrepo, I tried it earlier and got to see everything go down in flames. Ditto for nux. I am using the installer from NVIDIA. I followed your advice. Increasing the number from 3 results in the same output (I stopped at 9 and tried 16 just to be sure). The log reveals nothing obvious to me, but I have no idea what Package Sacks are. For completeness I should mention that when Nouveau was installed, it could not identify the graphics chipset.

[root@torch ~]# yum -d 3 install alacarte
Loaded plugins: fastestmirror, langpacks
Adding en_US to language list
Config time: 0.006
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks


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
[root@torch ~]#

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NVIDIA Drivers apper to break yum repository

Post by TrevorH » 2015/03/18 20:06:55

Post the contents of /etc/yum.repos.d/CentOS-Base.repo and also the output of rpm -q --qf '%{version}\n' centos-release
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
stuartw
Posts: 8
Joined: 2015/03/18 17:20:07

Re: NVIDIA Drivers apper to break yum repository

Post by stuartw » 2015/03/18 23:04:24

First

[root@torch ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[root@torch ~]#

Second (!)

[root@torch ~]# rpm -q --qf '%{version}\n' centos-release
package centos-release is not installed
[root@torch ~]#

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: NVIDIA Drivers apper to break yum repository

Post by gerald_clark » 2015/03/18 23:16:24

You are not running CentOS.

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NVIDIA Drivers apper to break yum repository

Post by TrevorH » 2015/03/18 23:25:21

Right, you have what looks like a CentOS-Base.repo file but that file is supplied by the centos-release package. The centos-release package is also used by yum to set the $releasever variable so if it's absent then $releasever doesn't resolve to '7' like it should so it will fail. So the question now is: do you have a hosted system supplied by a vendor who removes centos-release and butchers CentOS around or did you manually remove the centos-release package yourself and if so, why?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
stuartw
Posts: 8
Joined: 2015/03/18 17:20:07

Re: NVIDIA Drivers apper to break yum repository

Post by stuartw » 2015/03/18 23:53:07

This is a basic installation from cd, followed by an update (via Gnome). Then an eclipse installation (luna then mars). Then the driver installation. I've also gone the path of install, update, then driver installation. I don't know of anything I could have done (overtly) to remove the centos-release package. Is there a way I can reinstall, somehow protect the package, and carry on until something disturbs the package?

User avatar
AlanBartlett
Forum Moderator
Posts: 9324
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: NVIDIA Drivers apper to break yum repository

Post by AlanBartlett » 2015/03/18 23:55:23

It might be worthwhile executing the following command and then pasting here the output produced --

rpm -qa \*release\*
Image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

User avatar
stuartw
Posts: 8
Joined: 2015/03/18 17:20:07

Re: NVIDIA Drivers apper to break yum repository

Post by stuartw » 2015/03/19 00:04:03

Very short

[root@torch ~]# rpm -qa \*release\*
[root@torch ~]#

Post Reply

Return to “CentOS 7 - Hardware Support”