LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2016, 09:38 AM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 193

Rep: Reputation: 15
Unable to install new libraries using YUM


I'm trying to install some new libraries using yum. It appears that I'm unable to locate the CENTOS repository I get the following errors below:

sudo yum install -y binutils.x86_64 compat-libcap1.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 ksh compat-libstdc++-33 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libXi.i686 libXi.x86_64 libXtst.i686 libXtst.x86_64 make.x86_64 sysstat.x86_64
sudo: unable to mkdir /var/db/sudo: No such file or directory

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for ABCDE:
Loaded plugins: fastestmirror, langpacks
http://mirror.centos.org/centos/%24r...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-$releasever - 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/$releasever/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[ABCED@EFGH-T510-PC ~]$

Thanks
 
Old 05-01-2016, 01:23 PM   #2
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
what version of cent are you using ?

only 5.11 , 6.7 , and 7.2 are supported

for 6.7

http://mirror.centos.org/centos/6.7/os/x86_64/

if you try for a different version than the current and only supported you will get this placeholder
-- for 6.5
http://mirror.centos.org/centos/6.5/readme
Quote:
This directory (and version of CentOS) is deprecated. For normal users,
you should use /6/ and not /6.5/ in your path. Please see this FAQ
concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 6.5
level, go to http://vault.centos.org/ for packages.

Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 and 6.5 no longer gets any updates, nor
any security fix's.
 
Old 05-01-2016, 01:42 PM   #3
louisb
Member
 
Registered: Aug 2003
Posts: 193

Original Poster
Rep: Reputation: 15
I'm running CENTOS 7 with all patches and updates applied.

Thanks
 
Old 05-01-2016, 01:55 PM   #4
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
what dose
Code:
cat /etc/redhat-release
say

if it is 7.0 or 7.1 you will get an error like you posted
 
Old 05-01-2016, 02:00 PM   #5
louisb
Member
 
Registered: Aug 2003
Posts: 193

Original Poster
Rep: Reputation: 15
CentOS Linux release 7.2.1511 (Core)
 
Old 05-01-2016, 09:18 PM   #6
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
did you set up "sudo"
rhel/cent/sl do not use that by default

use "su -"

Code:
su -

/* then type in the root password when asked */

yum update
if that errors then please post the full error
 
Old 05-02-2016, 04:01 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1012Reputation: 1012Reputation: 1012Reputation: 1012Reputation: 1012Reputation: 1012Reputation: 1012Reputation: 1012
I don't know if the "c" still applies, but Red Hat use to document running commands as root like so:

$ su -c 'command_name'

with the single quotes. Which I think means su gets no controlling terminal, i.e. when the command completes the shell exits to userid 1000
 
Old 05-02-2016, 07:02 PM   #8
louisb
Member
 
Registered: Aug 2003
Posts: 193

Original Poster
Rep: Reputation: 15
This is what I get when I type su - then yum update:

[12345@5678-T510-PC ~]$ su -
Password:
Last login: Sun May 1 11:01:43 EDT 2016 on pts/0
[root@12345-T510-PC ~]# yum update
Loaded plugins: fastestmirror, langpacks
http://mirror.centos.org/centos/%24r...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-$releasever - 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/$releasever/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[root@12345-T510-PC ~]#
 
Old 05-05-2016, 06:32 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,440

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Quote:
Not Found
Trying other mirror.
The current mirrors are for version 7.2 .
If it's a long time since you last updated, the update may not be possible.

Example mirror, 7.2 :
http://mirror.centos.org/centos/7.2....6_64/repodata/
Updates http://mirror.centos.org/centos/7.2....6_64/repodata/


-
 
  


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 install SPECIFIC libraries gtkmm 1.2.10 and libsigc++ 1.0.4 in debian geperezg Linux - Newbie 4 07-04-2012 07:45 PM
[SOLVED] unable to install boost1.42 c++ libraries in lucid vpriya Linux - Software 5 02-16-2012 01:16 AM
I am unable to gain access to libraries I need to install printer. Ranapen Ubuntu 2 12-21-2010 05:59 AM
Unable to install package through yum troelskn Red Hat 5 04-27-2009 09:42 AM

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

All times are GMT -5. The time now is 10:30 PM.

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