Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: billi on March 16, 2007, 09:05:40 AM
-
When trying to do an update using yum in Ver 7.0
I get thes errors and it does not work
WARNING: Additional commands may be required after running yum
==============================================================
Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Update Process
Setting up repositories
not using ftp, http, or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
================================================================
No new rpms were installed. No additional commands are required.
How can I clean up the repository list so yum will work again.
thanks
-
How can I clean up the repository list so yum will work again.
thanks
- Get shell access (either direct at the terminal or using SSH) as root.
- Check the yum_repositories db entries for duplicates:
db yum_repositories show | more
- If there are duplicates weed them by the following command:
db yum_repositories delete reponame
- After you have weeded all duplicates or none have been found issue the command to regenerate the configuration file:
expand-template /etc/yum.conf
Now check the configuration file to see if there are duplicates for instance using nano or pico:pico /etc/yum.conf
-
How can I clean up the repository list so yum will work again.
thanks
Did you do anything to yum manually ?
-
Thanks for the Suggestions Cactus - I will give that a try,
-
Well I tried what Cactus suggested -which seemed to make perfect sense.
I removed all the repositories and then ran the template expand.
No repositorys came back.
Tried bringing in a template from another current version of SME 7.1.2
and tried the expand again. No luck.
Any one have any suggestion on how to build the whole repository thing from scratch?
I don't think it is system bug but some ham fisted thing I have done.
Thanks
-
Did he say delete them all ?
Try
rm /home/e-smith/db/yum_repositories # Take a copy if you need one
signal-event post-upgrade
signal-event reboot
The above came from the project lead when I was testing some repositories.
-
Thanks William_syd
You solution worked perfectly.
The system will now reach the repository and is updating.
-
Did he say delete them all ?
Nope:...If there are duplicates weed them...
-
Did he say delete them all ?
Nope:...If there are duplicates weed them...
I know you didn't.