Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Drifting on March 27, 2007, 10:32:15 PM

Title: Did a quick search on here, error with Yum update
Post by: Drifting 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
Title: Did a quick search on here, error with Yum update
Post by: bpivk 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.
Title: Re: Did a quick search on here, error with Yum update
Post by: TrevorB 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