Koozali.org: home of the SME Server

Did a quick search on here, error with Yum update

Offline Drifting

  • *****
  • 431
  • +0/-0
Did a quick search on here, error with Yum update
« on: March 27, 2007, 10:32:15 PM »
[root@vcrm contribs]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: contrib
Error: Cannot find a valid baseurl for repo: contrib

Have I missed something obvious here? Did a quick search through the forums without much luck, any pointers would be great.

Thanks
Infamy, Infamy, they all have it in for me!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Did a quick search on here, error with Yum update
« Reply #1 on: March 27, 2007, 11:00:46 PM »
Try:
Code: [Select]
/usr/bin/yum clean all
/usr/bin/yum update
signal-event post-upgrade; signal-event reboot


Or go to server manager and check what repos you enabled.
"It should just work" if it doesn't report it. Thanks!

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Did a quick search on here, error with Yum update
« Reply #2 on: March 28, 2007, 10:01:29 AM »
Quote from: "Drifting"
Cannot find a valid baseurl for repo: contrib
Error: Cannot find a valid baseurl for repo: contrib

It doesn't like what you have configured for the repository contrib

To find out what you have defined do a
Code: [Select]
db yum_repositories show contrib
BTW, contrib is normally defined as a centos contibutions repository and shouldn't be enabled by default.
Sugegsted approach is to have it disabled by default and add --enablerepo=contrib to the yum line any time you wish to load something from that repository, eg
Code: [Select]
yum --enablerepo=contrib install <package>
You can disable this repository via
Code: [Select]
db yum_repositories setprop contrib status disabled
Trevor B
PS. as stated in the other post, you can view which repositories you have enabled via the server-manager panel for yum