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 Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #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:
    75
    #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 Well-Known Member

    Messages:
    690
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    170
    #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 Notable Member

    Messages:
    2,458
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    205
    #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