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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
08-29-2006, 07:22 PM
|
#1
|
|
Member
Registered: May 2006
Posts: 77
Rep:
|
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?
|
|
|
|
08-30-2006, 03:53 AM
|
#2
|
|
Member
Registered: Dec 2005
Location: North germany
Distribution: Linux Mint
Posts: 45
Rep:
|
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
|
|
|
|
08-30-2006, 05:46 PM
|
#3
|
|
Member
Registered: May 2006
Posts: 77
Original Poster
Rep:
|
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?
|
|
|
|
08-30-2006, 06:04 PM
|
#4
|
|
Member
Registered: May 2006
Posts: 77
Original Poster
Rep:
|
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.
|
|
|
|
10-25-2006, 07:44 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2005
Posts: 8
Rep:
|
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.
|
|
|
|
10-25-2006, 11:17 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2006
Location: Cork City Ireland
Posts: 9
Rep:
|
I'm getting this error with FC 4. Which file did you
edit to uncomment baseurl ?
Thanks Dekc
|
|
|
|
10-25-2006, 02:16 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2006
Posts: 1
Rep:
|
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.
|
|
|
|
10-25-2006, 02:48 PM
|
#8
|
|
LQ Newbie
Registered: Oct 2006
Location: India
Distribution: Fedora 10
Posts: 8
Rep:
|
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.
|
|
|
|
|
10-25-2006, 08:49 PM
|
#9
|
|
LQ Newbie
Registered: Sep 2006
Location: Miami, FL
Distribution: Fedora Core
Posts: 2
Rep:
|
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 08:51 PM.
|
|
|
|
10-25-2006, 08:59 PM
|
#10
|
|
Member
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912
Rep:
|
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.
|
|
|
|
05-13-2007, 11:10 AM
|
#11
|
|
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:
|
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!
|
|
|
|
05-18-2007, 03:12 AM
|
#12
|
|
LQ Newbie
Registered: May 2007
Posts: 4
Rep:
|
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
|
|
|
|
05-22-2007, 11:17 PM
|
#13
|
|
LQ Newbie
Registered: May 2007
Posts: 20
Rep:
|
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 
|
|
|
|
05-30-2007, 10:35 AM
|
#14
|
|
LQ Newbie
Registered: May 2007
Posts: 1
Rep:
|
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
|
|
|
|
07-09-2007, 10:52 AM
|
#15
|
|
LQ Newbie
Registered: Jul 2007
Posts: 1
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|