Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I got following mesage: Loading "installonlyn" plugin Setting up Install Process Setting up repositories extras 100% -------------------- 2.1 kb updates 100%---------------------1.9 kb base 100%---------------------1.1 kb mirror.centos.org/centos/5/addons/i386/repodata/repomd.xml:[/url] [Errno 12] Timeout: <urlopen ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2012
    Posts
    25

    Help with "yum install rpm-build"


    I got following mesage:

    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    extras 100% -------------------- 2.1 kb
    updates 100%---------------------1.9 kb
    base 100%---------------------1.1 kb
    mirror.centos.org/centos/5/addons/i386/repodata/repomd.xml:[/url] [Errno 12] Timeout: <urlopen error timed out>
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: addons

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,558
    First, try "yum clean all", then retry the install. If you still get the same problem, it may be that the repository mirror and alternate mirror are off-line. That can happen when they are in the process of updating packages in the repos. Usually the condition is resolved in a short while.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Posts
    25
    Thanks for reply, I did the clean, but now I get the following message:

    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    extras 100% -------------------- 2.1 kb
    updates 100%---------------------1.9 kb
    base 100%---------------------1.1 kb
    addons 100%---------------------951 b
    file:///var/tmp/compilerpackages/repodata/repomd.xml: [Errno 5] OSError: [Errno2]
    No such file or directory: '/var/tmp/compilerpackages/repodata/repomd.xml'
    Trying other mirror .
    Error: Cannot open/read repomd.xml file for repository: compiler

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    Did you make changes to the repo config?
    It seems, s/o configured yum to look for a repo in /var/tmp/compilerpackages

    Please post the output of the following command in CODE tags (Use the # icon).
    Code:
    cat /etc/yum.conf /etc/yum.repos.d/*.repo
    You must always face the curtain with a bow.

  5. #5
    Just Joined! nelop's Avatar
    Join Date
    Feb 2012
    Location
    Bakewell Derbyshire
    Posts
    8
    hmmm , i would have a look at your repo files in /etc/yum.repos.d/ .Go through and check that each of the repo's URL's work and are for the correct OS etc.

  6. #6
    Just Joined!
    Join Date
    Feb 2012
    Posts
    25
    Here is the result (a bit long):
    hppt=http (system does not allow urls)

    Code:
    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    metadata_expire=1800
    
    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d
    #
    # 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=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=hppt://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    
    #released updates 
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=hppt://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=hppt://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=hppt://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=hppt://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=hppt://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=hppt://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=hppt://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    # 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=c4-media [command]
    #  
    # or for ONLY the media repo, do this:
    #
    #  yum --disablerepo=\* --enablerepo=c4-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-beta
    [compiler]
    
    name=This is our first repository file
    baseurl=file:///var/tmp/compilerpackages/
    enabled=1

  7. #7
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    Seems, that "compiler" repo is not yet production ready.

    As rpmbuild is aprt of the default repos, you can set
    - enabled=0 in the [compiler] section
    and then try again to
    yum install rpm-build
    You must always face the curtain with a bow.

  8. #8
    Just Joined!
    Join Date
    Feb 2012
    Posts
    25
    I cant edit "cat /etc/yum.conf /etc/yum.repos.d/*.repo" with vi editor, can you show me the way ?

  9. #9
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    I am a bit surprised, because s/o on your side presumably added this in the first place.

    But anyway.
    One of .repo the files in /etc/yum.repos.d/ contains that compiler repo.
    You can find the filename with
    Code:
    grep compiler /etc/yum.repos.d/*
    Once you have the filename, open it with vi.
    You must always face the curtain with a bow.

  10. #10
    Just Joined!
    Join Date
    Feb 2012
    Posts
    25
    Thanks a lot, it worked very well, the following directories were installed on /usr/src/redhat: BUILD, RPMS, SOURCES SPECS, SRPMS, however I am trying to create the "mockbuild user" with "useradd mockbuild" command but I dont get anything.

    Do you know a book to learn the very basics about linux, right now I am studing whit FOUNDATION OF CENTOS LINUX but I think this book does not cover all the basics about linux

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
  •