Cannot find a valid baseurl for repo: core
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    Apr 2009
    Posts
    3

    Cannot find a valid baseurl for repo: core

    Hello Fedora Group

    I am not a sysadmin, new to fedora. Due to loss of job, stay home and preparing my Linux for Oracle Application.

    Hardware:

    p3, w/ 512MB ( This is the best i can do).
    Install the Fedora 6. All went ok.

    Network Environment:

    Home Network, four machines are connected via router, cable provider is COMCAST.

    Problem:

    During Oracle installation, message came to install a packadge using rpm.

    When attempted to install, got the error, Cannot find a valid baseurl for repo: core.

    Tried using YUM from the command line and same error.

    Lookup in the forum, found some threads, where it asked to delete the # signs from baseurl line in some of the files. I did that, but no luck.

    Now having said that, need to understand and apply the solution to pass the error message. My objective is to install the oracle application. However in order to do that i must resolve this "YUM" or packadge installation error, "Cannot find a valid baseurl for repo: core".

    Word of Caution:

    I am not well versed in the Linux administration. I really appreciate if some one has good notes that can drive me step by step.

    thanks

  2. #2
    Join Date
    Apr 2008
    Location
    Tewksbury, MA
    Posts
    80
    Any specific reason you are using Fedora 6? You are 4, soon to be 5, versions behind the current version. Fedora 6 is no longer supported/maintained/updated. Sorry to say, but I would download Fedora 10 and start from scratch.

  3. #3
    Join Date
    Jun 2006
    Posts
    7,544
    Hello munisw,

    Fedora Core 6 is now in the archive...So whatever that baseurl line in the core repo file has in it, I'm not surprised to hear that it is not valid. And the mirrors are long gone, too.

    I've often wondered if one could write a custom repo file for yum to update to the last versions of the packages in those archive folders for the obsolete Fedoras. I think it should be possible, but I'm not interested enough to dig out an old installation disk and install it to find out. But you might want to try it because you might have a good reason to be interested in Fedora Core 6. I liked it.

  4. #4
    Join Date
    Oct 2008
    Location
    London - England
    Posts
    140
    I am also on fedora 6 (for reasons I wont go into), and started experiencing this yum problem about a week ago.

    There was a similar post a few days ago (which for some reason I can't find at the minute) asking about using yum with fedora 6. From what I can remember, I don't think there is a way round the problem. Our version is now just too old.

    EDIT: Found it, although it doesn't really provide any answers

    http://forums.fedoraforum.org/showth...=valid+baseurl
    Last edited by php1ic; 22nd April 2009 at 05:57 PM. Reason: found other post with info

  5. #5
    Join Date
    Aug 2005
    Location
    Ann Arbor
    Age
    51
    Posts
    3,947
    with fedora 6 uninstall yum and build ALL programs from the source code .
    That is your only real option .
    OpenSUSE 13.2-64bit & Scientific Linux 6.6-64bit ( fedora 4 to 11) and 20 on KVM
    My Celestia Downloads

    h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10

  6. #6
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,765
    I'll throw in my two cents worth here. Yes, it's possible to use the archived FC6 repos with yum. Stoat has already pointed the way to the location of those archives. You'll need to edit the /etc/yum.repos.d/fedora.repo (core) /etc/yum.repos.d/fedora-updates.repo (updates) (I think those are correct but not sure as it's been too long since I used FC6) to use the following base urls:
    Code:
    http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/os/
    http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/
    Use those as the baseurl= (uncomment the line and comment out the mirrorlist= line). Adjust if you're using an arch other than i586 or i686. The original FC6 install DVD had a bug that installed the i586 kernel even on i686 capable cpu's, and 'uname -a' reported i686 installed when it was not.

    I like FC6. Fully updated, it was as rock solid stable as Fedora ever was. But for those wishing to stay and play with that long unsupported release, you will have many problems when trying to install newer software that has dependencies that the old FC6 repos cannot provide.

    I am still in F8, and because I play with updating software beyond what is provided in the now unsupported F8 repos, I find myself pulling in rpm packages from both the F9 and F10 repos to build rpm packages for F8 from src.rpm packages from F9 and F10 or building from other source code to accomplish this. I can't even imagine how difficult, or impossible, it would be were I still in FC6.

    Bottom line, imho, if you're using Fedora for something important, like launching a new job career or the like, don't cripple yourself with an old unsupported release that can and will only hold you back. If you're there just to 'play', and learn... have at it.

  7. #7
    Join Date
    Jun 2006
    Posts
    7,544
    Hello again everybody,

    This question about using yum to install or update packages in an obsolete version of Fedora gets asked often enough. People are usually told not to use obsolete versions of Fedora. Fair enough. They are usually told the repositories and mirrors are gone. True enough. Nevertheless, PabloTwo is correct. It can still be done with yum (at least up to the final package versions in the archive).

    The Steps

    I installed the default Fedora Core 6 from the first two ISO files. Next, I edited the three enabled repo files in the /etc/yum.repos.d folder...
    fedora-core.repo
    fedora-extras.repo
    fedora-updates.repo
    ...to uncomment and change the baseurl line to the url of the the archive and to comment out (with the # character) the mirrorlist line. Example of the enabled [core] section of the original fedora-core.repo file...
    Code:
    [core]
    name=Fedora Core $releasever - $basearch
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
    mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    Example of the change that I made to it...
    Code:
    [core]
    name=Fedora Core $releasever - $basearch
    baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    After that was done to all three repo files, I was able to install a package (gftp), and a group (XFCE), and update the entire system with yum update (342 packages at 535 MB). All went well and normally.

    Now the question, at least for me, has been answered once and for all. Besides, what else are those archives for?

    P.S.: For more contemporary package versions than the final Fedora versions in the archive, see PabloTwo's comments about the problems with that. And JohnVV's comment about compiling them from source.

  8. #8
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,765
    An excellent and concise guide Stoat. And in my earlier post, I completely overlooked the fedora-extras repo for FC6. How soon I forget.

  9. #9
    Join Date
    Jun 2006
    Location
    Paris, TX
    Posts
    24,107
    Neat stuff!

    Thanks, guys!

    Even though I'm in F10 now ... I still have fond memories of FC6. <....>

  10. #10
    Join Date
    Apr 2009
    Posts
    3
    Many thanks to all of you, specially, stoat and Pablo Two. I did tried the prescribed solution, and now stepping on a different error. Here what I have done for exapmle, fedora-core.repo.

    [core]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
    [core-debuginfo]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
    [core-source]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/source/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch

    Same changes made to the, fedora-update.repo and fedora-extras.repo.

    Now the error is, "Cannot open/read repomd.xml file for repository: core"

    I am sure this might be very irritating to some of you, apologize in advacne. My limitations are, loss of Job, cannot buy a new machine, not a Linux SYSADMIN, and had to install Oracle 9i. Cannot install later version of Oracle due to lack of horse power in the target machine. This is a p3 with 500MB memory.

    Any help is appreciated, although already benefited with some new information about fedora.

    If some one can explain of building the packadge from source, how will i do that, i have the CDs. (Steps Please)

    thanks again

  11. #11
    Join Date
    Jun 2006
    Posts
    7,544
    Quote Originally Posted by munisw

    I did tried the prescribed solution, and now stepping on a different error. Here what I have done for exapmle, fedora-core.repo.

    [core]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
    [core-debuginfo]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
    [core-source]
    baseurl=http://archive.fedoraproject.org/pub/fedora/linux/core/$releasever/source/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch

    Same changes made to the, fedora-update.repo and fedora-extras.repo.

    Now the error is, "Cannot open/read repomd.xml file for repository: core"
    Hello again munisw,

    Your baseurl line is not the same as the one I used. Look carefully at yours and then at the one I published in post #7. They're different. The word "archive" should not only be in the subdomain of the URL but also in the path section of it between "pub" and "fedora". It matters.

  12. #12
    Join Date
    Apr 2009
    Posts
    1

    Add repo for Extras

    Thnx Pablo for the urls.

    for Extras I changed my fedore-extras.repo as follows,

    [extras]
    name=Fedora Extras $releasever - $basearch
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
    baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/extras/6/i386/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&arch=$basearch
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
    gpgcheck=1

    Cheers,
    Harshana

  13. #13
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,717
    Nice job Stoat Excellent information on a question that is, as you said, asked often enough. Care to create a how-to on this subject? I'm sure we could use a sticky in the Guides and How-To's sections. I'd bet that many of us would agree that it would be awfully nice to be able to point members using older versions of Fedora to the guide.
    Glenn
    The Bassinator

  14. #14
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,717
    Just as an update for anyone still using older versions of Fedora. I've just installed Fedora Core 5 on an old machine. I've made the suggested changes to the repo files and am currently updating the system using yum. I'd be willing to bet that this method will work for Fedora Core 4 and earlier, Fedora 6, etc.
    Glenn
    The Bassinator

  15. #15
    Join Date
    Nov 2006
    Location
    Portsmouth. England
    Posts
    165
    Not been here in a while

    But needed to access the install/uninstall thing and could'nt get it to work
    And I knew the archive was there....


    Excellent solution.... worked perfectly for my antique F6 x_64 OS

    Boris

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Cannot find a valid baseurl for repo: core
    By anitha2324 in forum Using Fedora
    Replies: 12
    Last Post: 24th August 2007, 06:17 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •