LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2016, 11:08 AM   #1
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Rep: Reputation: Disabled
Unhappy trying to install software - YUM


hi i just installed Centos7 and i want to install yum but i get the following message
Cannot find valid baseurl for repo: base/7/x86_64

and

One of the configured repositories failed (uknown)

thank you for you help
 
Old 06-09-2016, 11:31 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What are you using to install yum? Yum should already be installed.
 
Old 06-09-2016, 11:37 AM   #3
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
i typed in sudo yum install wget

error came up
 
Old 06-09-2016, 12:23 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by JerseyGiant View Post
i typed in sudo yum install wget

error came up

What was the error that came up?

Try typing in:
Code:
su (hit enter)
put in your password (hit enter)
Than try:
Code:
yum install wget
If your repo is not right; look here:
https://www.centos.org/forums/viewtopic.php?t=54100
 
Old 06-09-2016, 12:44 PM   #5
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
its like i don't have any packages installed.

[root@ltgit2 etc]# yum install wget
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


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/7/x86_64

Last edited by JerseyGiant; 06-09-2016 at 12:47 PM.
 
Old 06-09-2016, 12:47 PM   #6
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
[root@ltgit2 etc]# yum install wget
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


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/7/x86_64
 
Old 06-09-2016, 01:22 PM   #7
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
what is the output of the following command:

Code:
yum repolist
 
1 members found this post helpful.
Old 06-09-2016, 01:26 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Like lazydog said; yum should be installed.

http://superuser.com/questions/97509...um-on-centos-7
http://tecadmin.net/top-5-yum-reposi...rhel-systems/#

Could be an DNS issue?
https://www.centos.org/forums/viewtopic.php?t=56113

Quote:
If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
http://vault.centos.org/4.2/CentOS-Base.repo

HTH
 
Old 06-09-2016, 02:12 PM   #9
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
[gituser@ltgit2 etc]$ yum repolist
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...as&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...es&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
repo id repo name status
base/7/x86_64 CentOS-7 - Base 0
extras/7/x86_64 CentOS-7 - Extras 0
updates/7/x86_64 CentOS-7 - Updates 0
repolist: 0
[gituser@ltgit2 etc]$
 
Old 06-09-2016, 02:13 PM   #10
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
i have the dns configured. but strange.,. it pings 8.8.8.8 but not name resolution google.com
 
Old 06-09-2016, 02:22 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Can you ping mirrorlist.centos.org?

https://www.centos.org/forums/viewtopic.php?t=52756

-::-Wait to hear what lazydog thinks about this.-::-
 
Old 06-09-2016, 02:28 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by JerseyGiant View Post
i have the dns configured. but strange.,. it pings 8.8.8.8 but not name resolution google.com
Then DNS is not working. How did you set it up? What does your network configuration look like?

Your error has nothing to do with yum or package management and has everything to do with domain name resolution. The yum errors you've been getting are quite clear on that: "Could not resolve host: mirrorlist.centos.org". I don't know how that could be misinterpreted to mean that yum is not installed, or that you don't have any packages installed.

Last edited by suicidaleggroll; 06-09-2016 at 02:33 PM.
 
1 members found this post helpful.
Old 06-09-2016, 02:53 PM   #13
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
when you put it like that.. you are right. i apologize.
 
Old 06-09-2016, 02:53 PM   #14
JerseyGiant
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
i am new at this and didn't understand.
 
Old 06-09-2016, 02:57 PM   #15
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
It is defiantly a resolver problem.

What does your /etc/resolv.conf file look like? Use [ code ] tags when posting output to keep it clean

What is returned when you run the following:

Code:
host mirrorlist.centos.org
host www.google.com
The above will just check if you are able to resolve anything and should look something like:

Code:
# host mirrorlist.centos.org
mirrorlist.centos.org has address 84.22.180.89
mirrorlist.centos.org has address 107.158.252.36
mirrorlist.centos.org has address 88.150.173.218
mirrorlist.centos.org has address 108.61.16.227
mirrorlist.centos.org has IPv6 address 2a01:c0:2:4:0:acff:fe1e:1e52

# host www.google.com
www.google.com has address 172.217.2.196
www.google.com has IPv6 address 2607:f8b0:4004:806::2004

Last edited by lazydog; 06-09-2016 at 02:59 PM.
 
  


Reply



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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
install software using yum ufmale Linux - Newbie 1 03-20-2009 06:32 PM
yum install software from dvd antoxa Fedora 1 06-25-2007 04:56 AM
Yum How To Install Software ariestruong Linux - Newbie 1 03-23-2006 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 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