Koozali.org: home of the SME Server

Yum Update Problem

Offline billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Yum Update Problem
« 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Yum Update Problem
« Reply #1 on: March 16, 2007, 11:21:08 AM »
Quote from: "billi"
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:
    Code: [Select]
    db yum_repositories show | more
  • If there are duplicates weed them by the following command:
    Code: [Select]
    db yum_repositories delete reponame
  • After you have weeded all duplicates or none have been found issue the command to regenerate the configuration file:
    Code: [Select]
    expand-template /etc/yum.confNow check the configuration file to see if there are duplicates for instance using nano or pico:
    Code: [Select]
    pico /etc/yum.conf
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Yum Update Problem
« Reply #2 on: March 16, 2007, 12:15:06 PM »
Quote from: "billi"

How can I clean up the repository list so yum will work again.
thanks


Did you do anything to yum manually ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Yum Update Problem
« Reply #3 on: March 17, 2007, 04:20:35 PM »
Thanks for the Suggestions Cactus - I will give that a try,

Offline billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Yum Update Problem
« Reply #4 on: March 21, 2007, 06:51:56 AM »
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

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum Update Problem
« Reply #5 on: March 21, 2007, 06:56:49 AM »
Did he say delete them all ?

Try
Code: [Select]
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.
Regards,
William

IF I give advise.. It's only if it was me....

Offline billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Yum Update Problem
« Reply #6 on: April 01, 2007, 09:18:07 PM »
Thanks William_syd
You solution worked perfectly.
The system will now reach the repository and is updating.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Yum Update Problem
« Reply #7 on: April 01, 2007, 10:57:57 PM »
Quote from: "william_syd"
Did he say delete them all ?
Nope:
Quote from: "cactus"
...If there are duplicates weed them...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum Update Problem
« Reply #8 on: April 02, 2007, 09:05:33 AM »
Quote from: "cactus"
Quote from: "william_syd"
Did he say delete them all ?
Nope:
Quote from: "cactus"
...If there are duplicates weed them...


I know you didn't.
Regards,
William

IF I give advise.. It's only if it was me....