Koozali.org: home of the SME Server

Updating not working? (Resolved)

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #15 on: March 05, 2007, 02:24:16 AM »
Ran...

yum --enablerepo=* install netpbm

from the command line and it borked as above but then ran it from servman
and all went well.

Not sure if it is a bug or needed to have testing enabled.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #16 on: March 05, 2007, 08:03:34 AM »
Quote from: "imcintyre"
William:

Is this all one command/one line of code?

Quote
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Thx in advance

Ian


The backslash is used to wrap lines and is handy to keep things neat.

Just cut and paste the whole lot into a terminal window.

If you go back through your console history you will see how it was converted to one line.
Regards,
William

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

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #17 on: March 05, 2007, 08:27:32 AM »
This works

yum --enablerepo=base install netpbm

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #18 on: March 05, 2007, 08:30:53 AM »
Quote from: "electroman00"
This works

yum --enablerepo=base install netpbm


You can search all your repositories and then decide which one to get it from.. if you have a choice.

Code: [Select]
yum whatprovides netpbm --enablerepo=*

Lots of options with yum.
Regards,
William

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

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #19 on: March 05, 2007, 08:38:36 AM »
10-4 William

yum --enablerepo=* install netpbm

Works on 7.1 but not on 7.1.1

Humm...starting to look like a bug in 7.1.1

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #20 on: March 05, 2007, 12:06:37 PM »
William;

See error at end, this still seems screwed up.

Ran this:
Quote
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Results were:
Quote


IMc - some deletions for brevity
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libghttp to pack into transaction set.
libghttp-1.0.9-10.99_2.el 100% |=========================| 4.5 kB    00:00
---> Package libghttp.i386 1:1.0.9-10.99_2.el4.at set to be updated
---> Downloading header for perl-Digest-SHA to pack into transaction set.
perl-Digest-SHA-5.44-1.el 100% |=========================| 3.9 kB    00:00
---> Package perl-Digest-SHA.i386 0:5.44-1.el4.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 DCC                     i386       1.3.50-16.el4.at  smeupdates        1.3 M
 aspell                  i386       12:0.60.3-7.1.el4.sme  smeupdates   1.0 M
 aspell-de               i386       50:0.50-11.2.2.el4.sme  smeupdates  3.5 M
 aspell-en               i386       50:6.0-2.1.el4.sme  smeupdates      1.5 M

IMc - some deletions for brevity
                                                                           
 pam_abl                 i386       0.2.3-2.el4.sme  smeupdates         22 k
 perl-Compress-Zlib      i386       1.42-1.el4.rf    smeos             152 k
 perl-Digest-SHA         i386       5.44-1.el4.rf    smeupdates         78 k
 perl-HTTP-GHTTP         i386       1.07-4.el4.at    smeupdates         30 k
 perl-Mail-DKIM          noarch     0.22-1.el4.sme   smeupdates         70 k
 pv                      i386       0.9.6-1.el4.rf   smeupdates         49 k

Transaction Summary
=============================================================================
Install     11 Package(s)
Update      62 Package(s)
Remove       0 Package(s)
Total download size: 57 M
Is this ok [y/N]: y
Downloading Packages:
(1/73): e-smith-backup-1. 100% |=========================|  67 kB    00:00
(2/73): e-smith-ldap-4.12 100% |=========================|  50 kB    00:00

IMc - some deletions for brevity

(73/73): aspell-en-6.0-2. 100% |=========================| 1.5 MB    00:11
Running Transaction Test
Finished Transaction Test


Transaction Check Error:   package kernel-2.6.9-42.0.10.EL (which is newer than
kernel-2.6.9-42.0.8.EL) is already installed package kernel-smp-2.6.9-42.0.10.EL
(which is newer than kernel-smp-2.6.9-42.0.8.EL) is already installed
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@server /]#

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #21 on: March 05, 2007, 12:26:41 PM »
Bit hard to explain via forums but here goes..

What version kernel modules do you have ?

Code: [Select]
rpm -qa kmod*

I'll assume there _42.0.8.EL

Which version kernel are you running?

Code: [Select]
uname -r

I'll assume it's 2.6.9-42.0.10.EL

I'll also assume it's a production machine so we will downgrade the kernel.

If you can sit in front of the machine, reboot it and select a 2.6.9-42.0.8.EL kernel at boot time.

Or edit /boot/grub/grub.conf and change the 'default' line to be your required kernel. The list of kernels start at 0 and count down the list. Save your edits and reboot.

Repeat the above commands and make sure your kmods equal your kernel.

Now, remove the 'newer' kernels.

Code: [Select]
yum remove kernel-2.6.9-42.0.10.EL
yum remove kernel-smp-2.6.9-42.0.10.EL


If it wants to remove anything else come back here with a list.

Now try the update process again.
Regards,
William

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

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #22 on: March 05, 2007, 01:05:03 PM »
Thx for quick response. It's a "production" machine I use at home. I'm about to go to work so I will do this evening.

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #23 on: March 06, 2007, 03:26:35 AM »
William:

Quote
Code: rpm -qa kmod*


Result:
Quote
[root@server /]# rpm -qa kmod*
kmod-appletalk-smp-1.0-1.2.6.9_42.0.3.EL
kmod-slip-1.0-1.2.6.9_42.0.3.EL
kmod-slip-smp-1.0-1.2.6.9_42.0.3.EL
kmod-ppp-smp-1.0.2-1.2.6.9_42.0.3.EL
kmod-ppp-1.0.2-1.2.6.9_42.0.3.EL
kmod-appletalk-1.0-1.2.6.9_42.0.3.EL


Quote
Code: uname -r


Result:
Quote
[root@server /]# uname -r
2.6.9-42.0.10.ELsmp


Following your idea of editing grub.conf:
Quote
login as: root
root@192.168.7.1's password:
Last login: Mon Mar  5 20:41:59 2007 from pc-00050.mydomain.ca
[root@myserver ~]# cd ..
[root@myserver /]# cd /boot/grub/

[root@myserver grub]# pico grub.conf
   UW PICO(tm) 4.10                                                      File: grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/main/root
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title SME Server (2.6.9-42.0.10.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.10.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.10.EL.img
title SME Server (2.6.9-42.0.10.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.10.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.10.ELsmp.img
title CentOS (2.6.9-42.0.3.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS (2.6.9-42.0.3.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.3.ELsmp.img
title CentOS (2.6.9-34.0.2.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.0.2.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-34.0.2.EL.img
title CentOS (2.6.9-34.0.2.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.0.2.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-34.0.2.ELsmp.img
title SME Server (2.6.9-34.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-34.ELsmp.img

^G Get Help               ^O WriteOut               ^R Read File              ^Y Prev Pg                ^K Cut Text               ^C Cur Pos
^X Exit                   ^J Justify                ^W Where is               ^V Next Pg                ^U UnCut Text             ^T To Spell


I should change detail = 3, however seeing that the prefix changed from SME Server to Centos made me uncertain about changing.

Is this right? Thx in advance for your help.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #24 on: March 06, 2007, 06:50:06 AM »
Yes. Default = 3

Don't worry about the change of title. The developers don't alter the kernels between SME and CentOS.

In fact, with the 7.1.2 update now available, try updating per my original post again prior to making any changes.
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
Regards,
William

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

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #25 on: March 06, 2007, 12:30:32 PM »
William;

I followed your "previous" instructions and got the following:

Quote
root@server ~]# uname -r
2.6.9-42.0.10.ELsmp

[root@server ~]# rpm -qa kmod*
kmod-ppp-smp-1.0.2-1.2.6.9_42.0.10.EL
kmod-appletalk-1.0-1.2.6.9_42.0.10.EL
kmod-slip-smp-1.0-1.2.6.9_42.0.10.EL
kmod-slip-1.0-1.2.6.9_42.0.10.EL
kmod-ppp-1.0.2-1.2.6.9_42.0.10.EL
kmod-appletalk-smp-1.0-1.2.6.9_42.0.10.EL
[root@server ~]#


and from the SME Server panel;

Quote
SME Server 7.1.2
Copyright 1999-2006 Mitel Corporation
All rights reserved.
Copyright 2006 SME Server, Inc.


It appears as though everything is consistent. Thx for you help and patience

Ian