Find the answer to your Linux question:
Results 1 to 3 of 3
I am trying to set up a new yum server on VmWare VM on my machine..... I am done with createrepo in 'Server' (i.e I have created repository successfully) ......but ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    3

    Issue with yum server

    I am trying to set up a new yum server on VmWare VM on my machine.....
    I am done with createrepo in 'Server' (i.e I have created repository successfully)
    ......but somehow I am not able to install any package and the confusing thing is this the error message it gives pertains to cluster repository ...though I am intreseted only for 'Server' repository.

    Any suggestions would be a great help to me .
    Pasted below is error message that I get:
    -----------------------

    [root#server repodata]# yum install dovecot*
    Loading "security" plugin
    Loading "installonlyn" plugin
    Loading "rhnplugin" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Setting up repositories
    cluster 100% |=========================| 0 B 00:00
    file:///home/dump/Cluster/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for cluster: Damaged repomd.xml file
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: cluster
    --------------------------

    My repo file is :
    --------------

    [root#server repodata]# cat /etc/yum.repos.d/nks.repo
    [server]
    name=yum client nks
    baseurl=///home/nitesh/CD_contents/mnt/Server
    gpgcheck=0
    enabled=1
    ------------------

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    You need to add file: to your baseurl line, e.g.:
    Code:
    baseurl=file:///home/nitesh/CD_contents/mnt/Server
    You appear to have another repo config file that contains the path /home/dump/Cluster/ as a baseurl. Look for it like this:

    Code:
    grep /home/dump/Cluster /etc/yum.repos.d/*.repo
    To get a list of all currently enabled yum repos, do:
    Code:
    yum repolist

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    3
    Hi atreyu,

    The baseurl I wrote was correct [I had pasted the below o/p without the "file: " prefix by mistake in last post ] but yes your 3rd suggestion worked and there was one more .repo file already lying in /etc/yum.repos.d/ ..........it was the template file that comes by default in OS installation.
    Once I renamed that file ,my server seems to be working.

    Thanks a lot for your suggestion.

Posting Permissions

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