[Spacewalk-list] problems with installing updates on centos 4 and centos 5

Michiel van Es | Info.nl michiele at info.nl
Thu Jun 10 15:18:54 UTC 2010


Hello,

The last couple of months we got some problems with installing updates
on spacewalk nodes (CentOS 4 and CentOS 5).

The errors I get on the CentOS 4 machines (using a fresh installed
spacewalk 1.0 server!):

Failed: There was a package conflict error with the package set: RPM
package conflict error. The message was: Test install failed because of
package conflicts: The following packages were added to your selection
to satisfy dependencies: Name Version Release
--------------------------------------------------------------
beecrypt-devel 3.1.0 6 dialog 1.0.20040731 3 elfutils-devel 0.97.1 5
elfutils-libelf-devel 0.97.1 5 evolution28-cairo 1.2.4 6.el4
evolution28-glib2 2.12.3 6.el4 ghostscript 7.07 33.11.el4
libselinux-devel 1.19.1 7.4 netpbm 10.35.58

Failed: There was a package conflict error with the package set: RPM
package conflict error. The message was: Test install failed because of
package conflicts: The following packages were added to your selection
to satisfy dependencies: Name Version Release
--------------------------------------------------------------
elfutils-devel 0.97.1 5 package httpd-2.0.63-2.el4s1.centos.2 (which is
newer than httpd-2.0.52-41.ent.7.centos4) is already installed package
httpd-devel-2.0.63-2.el4s1.centos.2 (which is newer than
httpd-devel-2.0.52-41.ent.7.centos4) is already installed package
mod_ssl-2.0.63-2.el4s1.centos.2 (which is newer than
mod_ssl-2.0.52-41.ent.7.centos4) is already installed


when I run up2date -fu everything works fine on the centos 4 machines:

[root at mwv02 ~]# up2date -fu

Fetching Obsoletes list for channel: centos4...

Fetching Obsoletes list for channel: centos4-Base...

Fetching Obsoletes list for channel: centos4-Updates...

Fetching Obsoletes list for channel: centos4-extras...

Fetching Obsoletes list for channel: centos4-addons...

Name                                    Version        Rel
----------------------------------------------------------
initscripts                             7.93.35        1.centos4
  i386
iptables                                1.2.11         3.3.el4_8
  i386
kernel                                  2.6.9          89.0.25.EL
  i686
krb5-devel                              1.3.4          62.el4_8.2
  i386
krb5-libs                               1.3.4          62.el4_8.2
  i386
krb5-workstation                        1.3.4          62.el4_8.2
  i386
rsh                                     0.17           25.6.el4
  i386
tzdata                                  2010i          1.el4
  noarch


Testing package set / solving RPM inter-dependencies...
########################################
initscripts-7.93.35-1.cento ########################## Done.

iptables-1.2.11-3.3.el4_8.i ########################## Done.

kernel-2.6.9-89.0.25.EL.i68 ########################## Done.

krb5-devel-1.3.4-62.el4_8.2 ########################## Done.

krb5-libs-1.3.4-62.el4_8.2. ########################## Done.

krb5-workstation-1.3.4-62.e ########################## Done.

rsh-0.17-25.6.el4.i386.rpm: ########################## Done.

tzdata-2010i-1.el4.noarch.r ########################## Done.

Preparing              ########################################### [100%]

Installing...
    1:krb5-libs              ###########################################
[100%]
    2:krb5-devel             ###########################################
[100%]
    3:krb5-workstation       ###########################################
[100%]
    4:tzdata                 ###########################################
[100%]
    5:rsh                    ###########################################
[100%]
    6:initscripts            ###########################################
[100%]
    7:kernel                 ###########################################
[100%]
    8:iptables               ###########################################
[100%]



On the failing CentOS 5 machines:

Error while executing packages action: Transaction Check Error: package
glibc-2.5-49.i386 is already installed file /lib/ld-2.5.so from install
of glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libBrokenLocale-2.5.so from install of glibc-2.5-49.i386
conflicts with file from package glibc-2.5-49.i686 file
/lib/libSegFault.so from install of glibc-2.5-49.i386 conflicts with
file from package glibc-2.5-49.i686 file /lib/libanl-2.5.so from install
of glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libc-2.5.so from install of glibc-2.5-49.i386 conflicts with
file from package glibc-2.5-49.i686 file /lib/libcidn-2.5.so from
install of glibc-2.5-49.i386 conflicts with file from package
glibc-2.5-49.i686 file /lib/libcrypt-2.5.so from install of
glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libdl-2.5.so from install of glibc-2.5-49.i386 conflicts with
file from package glibc-2.5-49.i686 file /lib/libm-


Error while executing packages action: Transaction Check Error: package
openssl-0.9.8e-12.el5_4.6.i686 is already installed file
/lib/.libcrypto.so.0.9.8e.hmac from install of
openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from package
openssl-0.9.8e-12.el5_4.6.i386 file /lib/.libssl.so.0.9.8e.hmac from
install of openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from
package openssl-0.9.8e-12.el5_4.6.i386 file /lib/libcrypto.so.0.9.8e
from install of openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from
package openssl-0.9.8e-12.el5_4.6.i386 file /lib/libssl.so.0.9.8e from
install of openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from
package openssl-0.9.8e-12.el5_4.6.i386 file /usr/bin/openssl from
install of openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from
package openssl-0.9.8e-12.el5_4.6.i386 file
/usr/lib/openssl/engines/lib4758cca.so from install of
openssl-0.9.8e-12.el5_4.6.i686 conflicts with file from package
openssl-0.9.8e-12.el5_4.6.i386 file /usr/lib/openssl/engi


Command line yum -y update:
[root at anstw01 ~]# yum -y update
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
spacewalk-client                                         | 2.1 kB
00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package osad.noarch 0:5.9.29-1.el5 set to be updated
---> Package python-dmidecode.i386 0:3.10.8-4.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
  Package                                  Arch
  Version                              Repository
         Size
=============================================================================================================================================================
Updating:
  osad                                     noarch
  5.9.29-1.el5                         spacewalk-client
         93 k
  python-dmidecode                         i386
  3.10.8-4.el5                         centos5
         83 k

Transaction Summary
=============================================================================================================================================================
Install       0 Package(s)
Upgrade       2 Package(s)

Total size: 176 k
Total download size: 93 k
Downloading Packages:
osad-5.9.29-1.el5.noarch.rpm
                                                               |  93 kB
    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
   Updating       : osad

          1/4
warning: /etc/sysconfig/rhn/osad-auth.conf created as
/etc/sysconfig/rhn/osad-auth.conf.rpmnew
   Updating       : python-dmidecode

          2/4
   Cleanup        : osad

          3/4
   Cleanup        : python-dmidecode

          4/4

Updated:
   osad.noarch 0:5.9.29-1.el5
    python-dmidecode.i386 0:3.10.8-4.el5


Complete!
[root at anstw01 ~]#


Strange thing is that yum installs 2 packages and spacewalk wants to
install a little bit more:

This action's status is: Failed.
The client picked up this action on 06/10/10 5:06:43 PM CEST.
The client completed this action on 06/10/10 5:08:08 PM CEST.
Client execution returned "Error while executing packages action:
Transaction Check Error: package glibc-2.5-49.i386 is already installed
file /lib/ld-2.5.so from install of glibc-2.5-49.i386 conflicts with
file from package glibc-2.5-49.i686 file /lib/libBrokenLocale-2.5.so
from install of glibc-2.5-49.i386 conflicts with file from package
glibc-2.5-49.i686 file /lib/libSegFault.so from install of
glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libanl-2.5.so from install of glibc-2.5-49.i386 conflicts with
file from package glibc-2.5-49.i686 file /lib/libc-2.5.so from install
of glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libcidn-2.5.so from install of glibc-2.5-49.i386 conflicts
with file from package glibc-2.5-49.i686 file /lib/libcrypt-2.5.so from
install of glibc-2.5-49.i386 conflicts with file from package
glibc-2.5-49.i686 file /lib/libdl-2.5.so from install of
glibc-2.5-49.i386 conflicts with file from package glibc-2.5-49.i686
file /lib/libm-" (code -1)
Packages Scheduled:
system-config-lvm-1.1.5-4.el5
paps-0.6.6-19.el5
net-snmp-devel-5.3.2.2-9.el5:1
openssh-clients-4.3p2-41.el5
hmaccalc-0.9.6-3.el5
php-mysql-5.1.6-27.el5
libsepol-1.15.2-3.el5
httpd-devel-2.2.3-43.el5.centos
openldap-clients-2.3.43-12.el5
sos-1.7-9.49.el5
libsepol-devel-1.15.2-3.el5
strace-4.5.18-5.el5_4.4
krb5-devel-1.6.1-36.el5_4.1
audit-1.7.17-3.el5
sendmail-cf-8.13.8-8.el5
kernel-devel-2.6.18-194.3.1.el5
centos-release-notes-5.5-0
curl-7.15.5-9.el5
bind-9.3.6-4.P1.el5_4.2:30
parted-1.8.1-27.el5
glibc-common-2.5-49
iksemel-1.4-2.el5
xorg-x11-drv-vesa-1.3.0-8.2.el5
php-5.1.6-27.el5
checkpolicy-1.33.1-6.el5
xorg-x11-drv-evdev-1.0.0.5-5.el5:1
shadow-utils-4.0.17-15.el5:2
libXt-1.0.2-3.2.el5
libXi-1.0.1-4.el5_4
yp-tools-2.9-1.el5
php-gd-5.1.6-27.el5
pax-3.4-2.el5_4
gnutls-utils-1.4.1-3.el5_4.8
wxGTK-2.8.11-1.el5
readahead-1.3-8.el5:1
binutils-2.17.50.0.6-14.el5
wxGTK-devel-2.8.11-1.el5
selinux-policy-2.4.6-279.el5
openssl-perl-0.9.8e-12.el5_4.6
pcsc-lite-1.4.4-1.el5
libgcj-4.1.2-48.el5
nginx-0.6.39-4.el5
pcsc-lite-libs-1.4.4-1.el5
dhclient-3.0.5-23.el5:12
php-snmp-5.1.6-27.el5
dbus-devel-1.1.2-14.el5
python-dmidecode-3.10.8-4.el5
apr-util-devel-1.2.7-11.el5
device-mapper-1.02.39-1.el5
audit-libs-1.7.17-3.el5
net-snmp-libs-5.3.2.2-9.el5:1
cyrus-sasl-devel-2.1.22-5.el5_4.3
rhpxl-0.41.1-9.el5
net-tools-1.60-81.el5
mesa-libGLU-6.5.1-7.8.el5
cpio-2.6-23.el5_4.1
php-common-5.1.6-27.el5
xulrunner-1.9.0.18-1.el5_4
policycoreutils-1.33.12-14.8.el5
nss-tools-3.12.6-1.el5.centos
less-436-2.el5
tcsh-6.14-17.el5
pango-1.14.9-8.el5.centos
php-ldap-5.1.6-27.el5
hwdata-0.213.18-1.el5.1
php-pgsql-5.1.6-27.el5
openssh-server-4.3p2-41.el5
gcc-4.1.2-48.el5
gnutls-1.4.1-3.el5_4.8
lvm2-2.02.56-8.el5_5.1
mdadm-2.6.9-3.el5
kpartx-0.4.7-34.el5
NetworkManager-0.7.0-10.el5:1
openldap-devel-2.3.43-12.el5
httpd-2.2.3-43.el5.centos
acl-2.2.39-6.el5
cyrus-sasl-plain-2.1.22-5.el5_4.3
cups-libs-1.3.7-18.el5:1
squid-2.6.STABLE21-6.el5:7
dbus-libs-1.1.2-14.el5
filesystem-2.4.0-3.el5
pciutils-2.2.3-8.el5_4
iptstate-1.4-2.el5
krb5-libs-1.6.1-36.el5_4.1
dmidecode-2.10-3.el5:1
libhugetlbfs-1.3-7.el5
wpa_supplicant-0.5.10-9.el5:1
dbus-1.1.2-14.el5
pirut-1.3.28-17.el5.centos
vconfig-1.9-3
system-config-securitylevel-1.6.29.1-5.el5
gail-1.9.2-3.el5_4
numactl-0.9.8-11.el5
dhcpv6-client-1.0.10-18.el5
samba-client-3.0.33-3.28.el5:0
openssl-devel-0.9.8e-12.el5_4.6
avahi-glib-0.6.16-7.el5
hal-0.5.8.1-59.el5
yum-fastestmirror-1.1.16-14.el5.centos.1
xorg-x11-server-Xorg-1.1.1-48.76.el5_5.1
nss-3.12.6-1.el5.centos
kexec-tools-1.102pre-96.el5_5.1
procps-3.2.7-16.el5
mod_ssl-2.2.3-43.el5.centos:1
yum-3.2.22-26.el5.centos
libaio-0.3.106-5
bind-libs-9.3.6-4.P1.el5_4.2:30
mkinitrd-5.1.19.6-61.el5_5.1
net-snmp-5.3.2.2-9.el5:1
pam_krb5-2.2.14-15
gnutls-devel-1.4.1-3.el5_4.8
libevent-1.4.13-1
wireshark-gnome-1.0.11-1.el5_5.5
apr-util-1.2.7-11.el5
net-snmp-perl-5.3.2.2-9.el5:1
cyrus-sasl-2.1.22-5.el5_4.3
samba-3.0.33-3.28.el5:0
selinux-policy-targeted-2.4.6-279.el5
firstboot-tui-1.4.27.8-1.el5.centos
tcpdump-3.9.4-15.el5:14
lm_sensors-2.10.7-9.el5
device-mapper-event-1.02.39-1.el5
dmraid-events-1.0.0.rc13-63.el5
cyrus-sasl-lib-2.1.22-5.el5_4.3
libacl-2.2.39-6.el5
nss-devel-3.12.6-1.el5.centos
kernel-headers-2.6.18-194.3.1.el5
wireshark-1.0.11-1.el5_5.5
php-pdo-5.1.6-27.el5
openoffice.org-langpack-sl_SI-3.1.1-19.5.el5:1
php-cli-5.1.6-27.el5
openssh-4.3p2-41.el5
coolkey-1.1.0-14.el5
mesa-libGL-6.5.1-7.8.el5
php-devel-5.1.6-27.el5
coreutils-5.97-23.el5_4.2
openoffice.org-core-3.1.1-19.5.el5:1
tar-1.15.1-30.el5:2
curl-devel-7.15.5-9.el5
microcode_ctl-1.17-1.50.el5:1
NetworkManager-glib-0.7.0-10.el5:1
libpcap-0.9.4-15.el5:14
openssl-0.9.8e-12.el5_4.6
php-bcmath-5.1.6-27.el5
glibc-headers-2.5-49
krb5-workstation-1.6.1-36.el5_4.1
sysklogd-1.4.1-46.el5
iksemel-devel-1.4-2.el5
libaio-devel-0.3.106-5
util-linux-2.13-0.52.el5_4.1
pam-0.99.6.2-6.el5_4.1
module-init-tools-3.3-0.pre3.1.60.el5
crash-4.1.2-4.el5.centos
lm_sensors-devel-2.10.7-9.el5
system-config-securitylevel-tui-1.6.29.1-5.el5
nspr-devel-4.8.4-1.el5_4
bind-utils-9.3.6-4.P1.el5_4.2:30
ethtool-6-4.el5
avahi-compat-libdns_sd-0.6.16-7.el5
chkconfig-1.3.30.2-2.el5
bind-chroot-9.3.6-4.P1.el5_4.2:30
openldap-2.3.43-12.el5
avahi-0.6.16-7.el5
iproute-2.6.18-11.el5
automake-1.9.6-2.3.el5
ksh-20100202-1.el5
firefox-3.0.18-1.el5.centos
dmraid-1.0.0.rc13-63.el5
OpenIPMI-2.0.16-7.el5
xorg-x11-server-Xnest-1.1.1-48.76.el5_5.1
centos-release-5-5.el5.centos:10
tzdata-2010i-1.el5
glibc-2.5-49
device-mapper-multipath-0.4.7-34.el5
kernel-2.6.18-194.3.1.el5
ntsysv-1.3.30.2-2.el5
logwatch-7.3-8.el5
firstboot-1.4.27.8-1.el5.centos
cups-1.3.7-18.el5:1
OpenIPMI-libs-2.0.16-7.el5
cpp-4.1.2-48.el5
libstdc++-devel-4.1.2-48.el5
nspr-4.8.4-1.el5_4
nss_ldap-253-25.el5
mesa-libGL-devel-6.5.1-7.8.el5
at-3.1.8-84.el5
kudzu-1.2.57.1.24-1.el5.centos
audit-libs-python-1.7.17-3.el5
autofs-5.0.1-0.rc2.143.el5:1
gnome-vfs2-2.16.2-6.el5
cpuspeed-1.2.1-9.el5:1
libgcc-4.1.2-48.el5
nss_db-2.2-35.4.el5_5
samba-common-3.0.33-3.28.el5:0
gzip-1.3.5-11.el5.centos.1
dosfstools-2.11-9.el5
nash-5.1.19.6-61.el5_5.1
sendmail-8.13.8-8.el5
mysql-5.0.77-4.el5_4.2
metacity-2.16.0-15.el5
glibc-devel-2.5-49
libXrandr-1.1.1-3.3
sudo-1.7.2p1-6.el5_5
libstdc++-4.1.2-48.el5
newt-0.52.2-15.el5
mysql-server-5.0.77-4.el5_4.2
nfs-utils-1.0.9-44.el5:1
nscd-2.5-49
gcc-c++-4.1.2-48.el5
man-pages-2.39-15.el5_4
net-snmp-utils-5.3.2.2-9.el5:1



I am running the following scripts on the clients to make sure the
packages are correctly checked on the spacewalk server:

0 0 * * * /sbin/service osad restart 1>/dev/null 2>/var/log/osad_restart.log
0 1 * * * /sbin/rhn-profile-sync 1>/dev/null 2>/var/log/rhn_profile_sync.log

On the server I am updating the repositories with:

/root/scripts/update_repos.sh:

#!/bin/sh
#
# This script updates the spacewalk channels with it repositories
#
# MvE - 0.1
#########################################################################
echo "starting updating the repos at `date`" > /var/log/update_repos.log
#
### CentOS 5 - i386
#
spacewalk-repo-sync -c centos5 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/os/i386/ --type=yum
--label base
spacewalk-repo-sync -c centos5 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/updates/i386/ --type=yum
--label updates
spacewalk-repo-sync -c centos5 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/addons/i386/ --type=yum
--label addons
spacewalk-repo-sync -c centos5 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/extras/i386/ --type=yum
--label extras
spacewalk-repo-sync -c test_centos5_i386 --url
http://dev.centos.org/centos/5/testing/i386/ --type=yum --label testing
#
### CentOS 5 - x86_64
#
spacewalk-repo-sync -c centos5_x86_64 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/os/x86_64/ --type=yum
--label base
spacewalk-repo-sync -c centos5_x86_64 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/updates/x86_64/
--type=yum --label updates
spacewalk-repo-sync -c centos5_x86_64 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/addons/x86_64/
--type=yum --label addons
spacewalk-repo-sync -c centos5_x86_64 --url
http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5/extras/x86_64/
--type=yum --label extras
spacewalk-repo-sync -c test_centos5_x86_64 --url
http://dev.centos.org/centos/5/testing/x86_64/ --type=yum --label testing
#
### Epelrepo CentOS 5 - i386
#
spacewalk-repo-sync -c epel_centos5 --url
http://ftp.nluug.nl/pub/os/Linux/distr/fedora-epel/5/i386/ --type=yum
--label epel
#
### Epelrepo CentOS 5 - x86_64
#
spacewalk-repo-sync -c epel_centos5_x86_64 --url
http://ftp.nluug.nl/pub/os/Linux/distr/fedora-epel/5/x86_64/ --type=yum
--label epel
#
### Remi collet repo for phph 5.2 or 5.3 and mysql 5.1
#
spacewalk-repo-sync -c remi_i386 --url
http://rpms.famillecollet.com/enterprise/5/remi/i386/ --type=yum --label
remi
spacewalk-repo-sync -c remi_x86_64 --url
http://rpms.famillecollet.com/enterprise/5/remi/x86_64/ --type=yum
--label remi



Why are yum and spacewalk totaly out of sync? Even if I am running a
nightly job to update the package profile?
It looks like it is trying to reinstall centos 5.5 and its updates again..

If I need to provide some more information I am more then happy to 
provide some logfiles :)

Tjhanks in advance for any help.

-- 
Kind regards,

Michiel




More information about the Spacewalk-list mailing list