1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Yum problem? Can't update anything?

Discussion in 'Site & Server Administration' started by obay, Aug 3, 2014.

  1. #1
    Hi!

    On one of my node I am having a problem with Yum, it's not updating at all - and I can't figure out why? I've disabled iptables and yet still doing want to do anything?

    [root@spanky ~]# yum update
    Loaded plugins: fastestmirror, security
    Determining fastest mirrors
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
    Eg. $releasever is not a valid release or hasnt been released yet/
    removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
    Error: Cannot find a valid baseurl for repo: base
    [root@spanky ~]#
    
    Code (markup):
    Thanks.
     
    obay, Aug 3, 2014 IP
  2. zacharooni

    zacharooni Active Member

    Messages:
    315
    Likes Received:
    14
    Best Answers:
    2
    Trophy Points:
    70
    #2
    Run "yum clean all", then show us the output of:

    cat /etc/yum.repos.d/*.repo
     
    zacharooni, Aug 3, 2014 IP
  3. jeffatrackaid

    jeffatrackaid Active Member

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    50
    #3
    If your problem continues, please try running
    rpm --rebuilddb
    This will rebuild the RPM database which can become corrupted.
     
    jeffatrackaid, Aug 5, 2014 IP
  4. Sugavanas

    Sugavanas Active Member

    Messages:
    520
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    95
    Articles:
    2
    #4
    Try this,
    su -
    yum clean all
    rpm --rebuilddb
    yum update
    Code (markup):
    If it doesn't works then,

    su -
    rpm --rebuilddb
    yum clean all
    yum update
    Code (markup):
    Once done, copy paste the whole update process from terminal if error occurs ;)
     
    Sugavanas, Aug 5, 2014 IP
  5. obay

    obay Well-Known Member

    Messages:
    2,367
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Hi, thanks for the help, the hard drive was slowly failing. been a long week but now we have fixed issue.
     
    obay, Aug 7, 2014 IP