Find the answer to your Linux question:
Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 34
Hi guys i need some help i am running a centos 5.2 in a virtual machine i cant seem to get yum to update can someone help me error below. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25

    Yum does not want to update

    Hi guys i need some help i am running a centos 5.2 in a virtual machine

    i cant seem to get yum to update can someone help me error below.

    could not retrieve repository metadata (reposnd.xml) for repository: base.
    Please verify its path and try again.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Post the contents of base repository file. Its 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
    Jan 2009
    Posts
    25
    CentOS-Base.repo CentOS-Media.repo

    thats what i found

    this is in the directory yum.repos.d

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Post the contents of both files here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    Hi please give me some time i am trying to copy the screen data from the Linux in the virtual machine to my windows desktop which as i am experiencing is quite a task.

  6. #6
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    Hi i finally got the output needed

    _________

    [root@fnb-22bdcde5839 etc]# cd yum.repos
    -bash: cd: yum.repos: No such file or directory
    [root@fnb-22bdcde5839 etc]# cd yum.repos.d
    [root@fnb-22bdcde5839 yum.repos.d]# ls
    CentOS-Base.repo CentOS-Media.repo
    [root@fnb-22bdcde5839 yum.repos.d]# cat CentOS-Base.repo
    # 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-5 - Base
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
    #baseurl=http://mirror.centos.org/centos/5/os/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #released updates
    [updates]
    name=CentOS-5 - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
    #baseurl=http://mirror.centos.org/centos/5/updates/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-5 - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
    #baseurl=http://mirror.centos.org/centos/5/addons/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #additional packages that may be useful
    [extras]
    name=CentOS-5 - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
    #baseurl=http://mirror.centos.org/centos/5/extras/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-5 - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/5/centosplus/i386/
    gpgcheck=1
    enabled=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    [root@fnb-22bdcde5839 yum.repos.d]#
    __________________________________________________ ________________
    [root@fnb-22bdcde5839 yum.repos.d]# cat CentOS-Media.repo
    # 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-5 - Media
    baseurl=file:///media/CentOS/
    file:///media/cdrom/
    file:///media/cdrecorder/
    gpgcheck=1
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    [root@fnb-22bdcde5839 yum.repos.d]#

  7. #7
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    hi can anyone help with my query.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Remove # sign before baseurl lines under base, updates, Extras and Plus.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    Hi i have removed the hash signs before baseurl

    i am not sure which lines you are reffering to can you give me a example of what it should look like also should i nano both the files?

  10. #10
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    hi sorry for my blond moment i have deleted the lines under the ones you said i should but i still get cannot retrieve repositoru meta data (respond.xml) for repository: base please verify its path and try again.

Page 1 of 4 1 2 3 4 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
  •  
...