LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-29-2006, 08:22 PM   #1
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Rep: Reputation: 15
Yum error: Cannot find a valid baseurl for repo:


I'm getting an error running yum on my Fedora 4 system.

Here's what I type:
sudo yum check-update

This returns:
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
Error: Cannot find a valid baseurl for repo: updates-released

I have a system running Fedora 5 on the same network with identical DNS entries in resolv.conf and very similar files in yum.repos.d, and yum works just fine on it. This is a machine that was formerly on a different network (different IP, different subnet, etc) with presumably different DNS servers, so I'm betting there's some sort of configuration change that I'm forgetting to do?

Formerly everything was done via static IP, and the new network uses DHCP. I attempted to switch to DHCP, get the new address, and then lock that address down as a static address since addresses don't change often on this network. I'm having no problems accessing this machine through SSH, but I cannot access the web from it without knowing the IP address of the site in question. This makes me think there's something wrong with my DNS configuration, but I don't know what to change about it. Anybody have any advice?
 
Old 08-30-2006, 04:53 AM   #2
LiNuXkOlOnIe
Member
 
Registered: Dec 2005
Location: North germany
Distribution: Linux Mint
Posts: 45

Rep: Reputation: 16
Post

Hi, i am using Fedora since Fedora 2 Core and this problem
i had often. Try some yum clean all.
If you need the downloaded packages the go to /var/log/cache/yum. But there only there if you have
configured it.

So we come to the next point. Configuration is in /etc/yum.repos.d. Every repository-file is ended with an
.repo. So you can check there too.

Sometimes if my connection is overloaded with downloading files
and i try an yum update i have this problem too.

The other thing is you can use the gui-version yumex too.

I hope i could help.

cu
 
Old 08-30-2006, 06:46 PM   #3
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Original Poster
Rep: Reputation: 15
Hi,

I'm thinking this isn't actually a yum problem. Everything's cleaned, and in addition to yum having this same error finding the repository, I can't load webpages, I can't use wget without an IP address, etc. What I can't figure out is why this is, since as far as I can tell it's using the same DNS servers as other functioning computers?
 
Old 08-30-2006, 07:04 PM   #4
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Original Poster
Rep: Reputation: 15
I think I've figured it out. So, what I did was start with DHCP then switch back to static. I just read that switching between the two can affect DNS information, so I ran dhclient and everything works now. Not sure why this had to be the case, but just in case anybody ever encounters this strange set of circumstances, that's the problem.
 
Old 10-25-2006, 08:44 AM   #5
igoruch
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
I did have the same error recently with my FC5 after latest update. The problem was that yum could not find a mirror and baseurl was commented - so I did uncomment it and it worked for me.
 
Old 10-25-2006, 12:17 PM   #6
deardoom
LQ Newbie
 
Registered: Mar 2006
Location: Cork City Ireland
Posts: 9

Rep: Reputation: 0
I'm getting this error with FC 4. Which file did you
edit to uncomment baseurl ?

Thanks Dekc
 
Old 10-25-2006, 03:16 PM   #7
0x44
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Ran into this issue this morning with some FC4 boxes.

Some files in /etc/yum.repos.d/ had commented baseurls as igoruch remarked. Run yum, uncomment baseurl in file described in yum's error message, repeat. This got my boxes working.
 
Old 10-25-2006, 03:48 PM   #8
phoenix_hacker
LQ Newbie
 
Registered: Oct 2006
Location: India
Distribution: Fedora 10
Posts: 8

Rep: Reputation: 0
Question

Oh! Please tell me how to uncomment it! Thanx in advance!!
Quote:
Originally Posted by igoruch
I did have the same error recently with my FC5 after latest update. The problem was that yum could not find a mirror and baseurl was commented - so I did uncomment it and it worked for me.
 
Old 10-25-2006, 09:49 PM   #9
UMTopSpinC7
LQ Newbie
 
Registered: Sep 2006
Location: Miami, FL
Distribution: Fedora Core
Posts: 2

Rep: Reputation: 0
Just delete the # in front of the line that has base-url in it. I just had the same problem too and uncommenting fixes it. You might have to uncomment the line in multiple .repo files... i know i did.

Last edited by UMTopSpinC7; 10-25-2006 at 09:51 PM.
 
Old 10-25-2006, 09:59 PM   #10
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 32
Quote:
Originally Posted by UMTopSpinC7
Just delete the # in front of the line that has base-url in it. I just had the same problem too and uncommenting fixes it. You might have to uncomment the line in multiple .repo files... i know i did.
The problem is still there. Looks like the main issue is that the Fedora Core site (http://fedora.redhat.com) is down at the moment, and the mirrorlist is right there. Once the site is back up, yum should work again.
 
Old 05-13-2007, 12:10 PM   #11
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
YUM update - no base url found - Fedora Core 6

I had the same problem with Fedora Core 6. All of the config files regarding /etc/yum.repos.d/* has the baseurl line commented out. Why the heck would the system change this - I did not change anything. Just kind of curious why the system would do it on its own or if it was user affected?

Thanks!
 
Old 05-18-2007, 04:12 AM   #12
akilenc
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
YUM update - no base url found - Fedora Core 6

I had the same problem,

I followed the posting by "LiNuXkOlOnIe".

Everything works now. Not sure why this had to be the case, but it is gone.

Akilen
 
Old 05-23-2007, 12:17 AM   #13
animeshsaxena
LQ Newbie
 
Registered: May 2007
Posts: 20

Rep: Reputation: 0
cd /etc/yum.repos.d.



then


you'll need to remove '#' from the beginning of the baseurl line.

i faced the same problem and somehow this small changed fixed the issue.

Hope this helps
 
Old 05-30-2007, 11:35 AM   #14
JSUN
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
I work for a big corporation and came across this problem with Fedora Core 5/6.

From these posts, I removed the '#' from the *.repo files in /etc/yum.repos.d/, but still was experiencing the connection error.

Like some of the others, I could not access the internet - and found that there was a proxy that I needed in this corporation - but still yum was not working - "cannot find a valid baseurl for repo" whether I was working with the command line or the GUI interface in gnome.

But finally found that there were two other items that I needed:
1) In Network Configuration -> DNS -> DNS search path: I added other server names: dns, dhcp, wins, eda
2) Network Proxy Preferences -> Manual proxy configuration -> cache1.domainname, Port 80 (at least in my corporation).

All of a sudden it began to work - and yum is a whole heck of a lot better then installing each of the packages I needed for DekiWiki seperately.

ARGH! But better now ... JSUN
 
Old 07-09-2007, 11:52 AM   #15
demirsha
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
Hello. I had the same problem.
To resolv it I proceded like this:
- I changed all "enabled" parameters from 1 to 0 in all files from /etc/yum.repos.d (when needed)

Obs: No more internet usage
I didn't delete any #

Don't ask me why, I did it and it worked.
 
  


Reply

Tags
dns


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
yum error: Cannot find a valid baseurl for repo: core WOP1337 Linux - Software 10 09-04-2010 09:06 PM
Cannot find a valid baseurl for repo: core navy319510 Linux - Software 2 08-03-2006 06:33 AM
yumex-"Cannot find a valid baseurl for repo: base" corelover Fedora 1 04-08-2005 04:10 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration