Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello all, I am stuck on a problem. I cannot update a new CentOS 5.3 server via yum whenever I try to update the system it gives me this error. ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34

    [SOLVED] yum update error

    Hello all,

    I am stuck on a problem. I cannot update a new CentOS 5.3 server via yum whenever I try to update the system it gives me this error.

    Code:
    # yum update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
    [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
    Error: Cannot find a valid baseurl for repo: base
    I have checked my resolv.conf file and my e0 connection and I am able to ping by name and nslookup is able to find any web address.

    Does anyone have a solution or can anyone point me to a solution?

    Any help would be greatly appreciated by this dumb noob...

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Error: Cannot find a valid baseurl for repo: base
    Mirror list url is working fine but something is wrong with baseurl only. Post the contents of CentOS repo file. Check in the /etc/yum.repos.d folder.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    35

    update yum trouth a proxy

    Are you behind a proxy . if yes ,
    check this link how to update with yum trouth a proxy
    LINK

  4. #4
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34
    The contents of /etc/yum.repos.d are

    CenOS-Base.repo and CentOS-Media.repo

    CentOS-Base.repo is

    Code:
    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the 
    # remarked out baseurl= line instead.
    #
    #
    
    #[base]
    #name=CentOS-$releasever - Base
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #released updates 
    [updates]
    #name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #packages used/produced in the build but not released
    [addons]
    #name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #additional packages that may be useful
    [extras]
    #name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    #name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #contrib - packages by Centos Users
    [contrib]
    #name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    and CentOS-Media.repo

    Code:
    # CentOS-Media.repo
    #
    # This repo is used to mount the default locations for a CDROM / DVD on
    #  CentOS-5.  You can use this repo and yum to install items directly off the
    #  DVD ISO that we release.
    #
    # To use this repo, put in your DVD and use it with the other repos too:
    #  yum --enablerepo=c5-media [command]
    #  
    # or for ONLY the media repo, do this:
    #
    #  yum --disablerepo=\* --enablerepo=c5-media [command]
     
    [c5-media]
    name=CentOS-$releasever - Media
    baseurl=file:///media/CentOS/
            file:///media/cdrom/
            file:///media/cdrecorder/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    Last edited by jrt77; 04-28-2009 at 02:48 PM. Reason: Adding additional information

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34
    Fantaman,

    Thanks for the link, I'll check it out. Much appreciated.

    J

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    #[base]
    #name=CentOS-$releasever - Base
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    Remove # sign before base, name and mirrorlist lines.

    Code:
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34
    I just removed uncommented base, name and mirrorlist and now I am getting this error

    "Cannot retrieve repository metadata (repomd.xml) for repository base. Please verify its path and try again."

    ??????

    I am at a complete loss as to what is happening with this system.

  8. #8
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34
    Where can I edit the location for the repomd.xml file? Does anyone have a solution for this issue? Should I just use another distro?

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Are you behind proxy? Check System - Preferences - Network Proxy and set correct values.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Apr 2008
    Location
    Chicago, IL
    Posts
    34
    Moved the server to a different switch in the DMZ and it is now working properly. Thanks for the help. I really appreciate it.

    J

Page 1 of 2 1 2 LastLast

Posting Permissions

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