Koozali.org: home of the SME Server

Yum update problem

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Yum update problem
« on: March 21, 2007, 09:31:11 PM »
After messing with Yum, when I tried upgrading it gives me an error:
Code: [Select]
[root@sme ~]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00    
updates                   100% |=========================|  951 B    00:00    
base                      100% |=========================| 1.1 kB    00:00    
smeos                     100% |=========================|  951 B    00:00    
smeupdates                100% |=========================|  951 B    00:00    
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
/sbin/e-smith/yum: line 9: 14401 Terminated              /usr/bin/yum "$@"


Anyone have a solution for this?
I tried removing the db as another post suggest:
/home/e-smith/db/yum_repositories
with no luck!

Offline shell

  • ****
  • 117
  • +0/-0
Yum update problem
« Reply #1 on: March 22, 2007, 03:50:04 AM »
there is the option - yum clean

you need to put one of the options below after:
headers, packages, cache, metadata or all

for example:

yum clean headers

haven't used this myself, but maybe starting with the yum clean metadata as this is the point your yum update fails

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum update problem
« Reply #2 on: March 22, 2007, 11:23:53 AM »
Go all the way with
Code: [Select]
yum clean all
however it looks like sme 'modified' yum is failing.
So try
Code: [Select]
rpm -Uvh http://mirror.contribs.org/smeserver/releases/7/smeupdates/i386/RPMS/smeserver-yum-1.2.0-27.el4.sme.noarch.rpm

or try

Code: [Select]
/usr/bin/yum clean all
/usr/bin/yum update
signal-event post-upgrade; signal-event reboot
Regards,
William

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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Yum update problem
« Reply #3 on: March 22, 2007, 04:39:13 PM »
:(
I tried it all:
Quote

Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
/sbin/e-smith/yum: line 9: 22574 Killed                  /usr/bin/yum "$@"
================================================================
No new rpms were installed. No additional commands are required.
================================================================

the local files seem to be the problem!
The last lines from the log:
Quote
40000000460240b20a95ffc4 yum list available status 15
@40000000460240db0b5734b4 Error: No Groups on which to run command
@40000000460240db0d0b8bd4 yum grouplist available status 256
@40000000460240de007db1bc Error: No Groups on which to run command
@40000000460240de022bfa14 yum grouplist installed status 256
@4000000046024769111cfd34 yum list updates status 15
@400000004602478f17f47fec Error: No Groups on which to run command
@400000004602478f19c7e82c yum grouplist updates status 256

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Yum update problem
« Reply #4 on: March 22, 2007, 11:17:28 PM »
Quote from: "stuntshell"
After messing with Yum


What exactly did you do ?
Regards,
William

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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Yum update problem
« Reply #5 on: March 23, 2007, 12:40:24 AM »
Quote from: "william_syd"

What exactly did you do ?

I followed this tutorial: http://forums.contribs.org/index.php?topic=35111.0

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum update problem
« Reply #6 on: March 23, 2007, 12:49:07 AM »
What did you do about this line (which looks wrong)?
Code: [Select]
vi /etc/e-smith/templates/yum.conf/21gnome216
Regards,
William

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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Yum update problem
« Reply #7 on: March 24, 2007, 03:14:59 PM »
I did noticed the mistake and corrected it:
vi /etc/e-smith/templates/etc/yum.conf/21gnome216

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum update problem
« Reply #8 on: March 24, 2007, 11:37:40 PM »
Quote from: "stuntshell"
I did noticed the mistake and corrected it:
vi /etc/e-smith/templates/etc/yum.conf/21gnome216


I mean did you delete it before trying the above steps?
Regards,
William

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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Yum update problem
« Reply #9 on: March 25, 2007, 12:41:56 AM »
Yes, besides the above commands will clear it all.
I'm about to try copying the configuration files from a good system to mine and see what happens.

Thanks,

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Yum update problem
« Reply #10 on: March 25, 2007, 01:11:33 AM »
Quote from: "stuntshell"
besides the above commands will clear it all.


Which command in particular?

I created the file
Code: [Select]
pico -w /etc/e-smith/templates/etc/yum.conf/21gnome216
Pasted in
Code: [Select]
[lpt-desktop]
name=Enterprise Linux $releasever - $basearch - LPT Desktop 3.6 para Enterprise Linux 4
baseurl=http://bruto.sys-net.it/lpt
gpgkey=http://www.linuxparatodos.net/lpt/LPT-RPM-KEY
gpgcheck=1
enabled=1

and did
Code: [Select]
expand-template /etc/yum.conf
yum update then failed due to that repo.

I did the commands from previous post and nothing removed that repo.

I then
Code: [Select]
rm -f /etc/e-smith/templates/etc/yum.conf/21gnome216
Code: [Select]
expand-template /etc/yum.conf
Code: [Select]
yum clean all
and things were back to normal.

In addition, what did you do about this..
Quote
enable groups for the contos repo in /etc/yum.conf
Regards,
William

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