Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CentOS 5.11 with repo Vault

Discussion in 'Workarounds and Optimization' started by webstyler, Jun 9, 2017.

Tags:
  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    439
    Likes Received:
    0
    Trophy Points:
    166
    Hello

    I try to set server for use CentOS Vault but not work

    My CentOS-Base.repo:
    Code:
    # CentOS-Base.repo
    #
    # 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
    baseurl=Index of /5.11/os/x86_64
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    enabled=1
    
    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    baseurl=Index of /5.11/updates/x86_64
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    enabled=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=Index of /5.11/extras/x86_64
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    enabled=1
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    baseurl=Index of /5.11/centosplus/x86_64
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    enabled=0
    
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    baseurl=Index of /5.11/contrib/x86_64
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    enabled=1
    
    
    --------
    
    When I try to install app get this:

    Code:
    xx
    xx
    
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
    [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
    Error: Cannot find a valid baseurl for repo: rpmforge
    
    
    --
    
    Any suggest ?

    Thanks
     
    #1 webstyler, Jun 9, 2017
    Last edited by a moderator: Jun 9, 2017
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,488
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    The support for CentOS is official not available and repos are moved to vault now. Below URL is the place where you will find the repositories and you have to adjust your baseurl into the repo on your server..
    Index of /
     
  3. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    439
    Likes Received:
    0
    Trophy Points:
    166
    As write I know this ..

    I asked how to set and why my settings not work

    Thanks
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,488
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    -> I also told you that you have add proper URL in the Repo that you have created.. What is this in the baseurl? Make sure that you use a proper baseurl that actually does contain packages.. Test it once again.
     
  5. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    439
    Likes Received:
    0
    Trophy Points:
    166
    example
    Code:
    baseurl=http://vault.centos.org/5.11/os/x86_64/
    
    where index of is "vault.centos.org" with http
     
    #5 webstyler, Jun 13, 2017
    Last edited by a moderator: Jun 13, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like the CentOS-Base.repo file referenced in your original post doesn't match what's referenced on the following thread:

    CentOS, CloudLinux RHEL 5 - End of Life Notice

    Could you update that repo file to match what's listed on the above thread and let us know if that helps?

    Thank you.
     
  7. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    439
    Likes Received:
    0
    Trophy Points:
    166
    same error

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
    [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page