CentOS Bug Tracker
CentOS Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001202CentOS-4yumpublic2006-02-06 16:532013-03-22 17:44
Reporterchicks 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.2 - x86_64 
Target VersionFixed in Version 
Summary0001202: duplicates in rpm database
DescriptionOn some of my CentOS 4 installs there end up being a significant number of duplicate rpms. I'm not the only person to have run into this trouble:

http://www.linode.com/forums/archive/o_t/t_1898/centos4_installations_rpm_database_corruption.html [^]

Following the advice in that link I've gone through and cleaned things up on an x86 box. I'm having similar problems on an AMD64 box as documented below.
Additional Information# rpm -qa | sed 's/\([A-Za-z0-9]\)-[0-9].*$/\1/' | sort | uniq -d
alchemist
alsa-lib
apr
arts
aspell
atk
audiofile
audit-libs
beecrypt
bind-libs
blas
bluez-libs
boost
bzip2-libs
cdparanoia-libs-alpha9.8
compat-db
compat-libstdc++-33
cracklib
cracklib-dicts
cups
cups-libs
curl
cyrus-sasl
cyrus-sasl-md5
cyrus-sasl-plain
db4
dbus
dbus-glib
device-mapper
distcache
e2fsprogs
elfutils
elfutils-libelf
esound
evolution-data-server
expat
flac
fontconfig
fonts-xorg
freeglut
freetype
gail
gamin
GConf2
gd
gdbm
gdk-pixbuf
ghostscript
gimp-print
glib
glib2
glibc
gmp
gnome-keyring
gnome-vfs2
gnutls
gpdf
gphoto2
gpm
gstreamer
gtk+-1.2.10
gtk2
gtk2-engines
gtk-engines
gtkhtml2
gtksourceview
gtkspell
guile
hal
hesiod
imlib
kdebase
kdemultimedia
kernel
kernel-devel
krb5-libs
krbafs
lapack
libacl
libao
libart_lgpl
libattr
libavc1394
libbonobo
libcap
libcroco
libdbi
libdv
libexif
libf2c
libgcc
libgcj
libgcrypt
libglade2
libgnome
libgnomecanvas
libgnomecups
libgnomeprint22
libgnomeprintui22
libgpg-error
libgtop2
libIDL
libidn
libieee1284
libjpeg
libmng
libmusicbrainz
libogg
libpcap
libpng
libpng10
libraw1394
libselinux
libsepol
libsoup
libstdc++-3.4.4
libtermcap
libtheora
libtiff
libtool
libtool-libs
libungif
libusb
libuser
libvorbis
libwmf
libwnck
libwvstreams
libxklavier
libxml2
libxslt
lm_sensors
lockdev
mikmod
mozilla-nspr
mozilla-nss
mysql
mysqlclient10
ncurses
neon
netpbm
net-snmp-libs
newt
nss_db
nss_ldap
octave
Omni
openh323
openjade
openldap
openmotif
openssl
ORBit2
pam
pam_ccreds
pam_krb5
pam_passwdqc
pam_smb
pango
pcre
pilot-link
popt
postgresql-libs
pwlib
qt
readline
redhat-artwork
redhat-lsb
samba-common
sane-backends
scrollkeeper
SDL
slang
speex
startup-notification
tcl
tcp_wrappers
tetex-afm
tetex-dvips
tetex-fonts
tetex-latex
tk
udev
unixODBC
utempter
VFlib2
vte
w3c-libwww
Xaw3d
xmlsec1
xmlsec1-openssl
xorg-x11-deprecated-libs
xorg-x11-libs
xorg-x11-Mesa-libGL
xorg-x11-Mesa-libGLU
zlib

# grep zlib /var/log/rpmpkgs
zlib-1.2.1.2-1.2.i386.rpm
zlib-1.2.1.2-1.2.x86_64.rpm
zlib-devel-1.2.1.2-1.2.x86_64.rpm

# grep pcre /var/log/rpmpkgs
pcre-4.5-3.2.RHEL4.i386.rpm
pcre-4.5-3.2.RHEL4.x86_64.rpm

# grep font /var/log/rpmpkgs
bitmap-fonts-0.3-4.noarch.rpm
bitstream-vera-fonts-1.10-4.noarch.rpm
chkfontpath-1.10.0-2.x86_64.rpm
fontconfig-2.2.3-7.i386.rpm
fontconfig-2.2.3-7.x86_64.rpm
fontconfig-devel-2.2.3-7.x86_64.rpm
fonts-xorg-100dpi-6.8.1.1-1.EL.1.noarch.rpm
fonts-xorg-75dpi-6.8.1.1-1.EL.1.noarch.rpm
fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm
ghostscript-fonts-5.50-13.noarch.rpm
tetex-fonts-2.0.2-22.EL4.4.x86_64.rpm
tetex-fonts-2.0.2-22.EL4.7.x86_64.rpm
urw-fonts-2.2-6.1.noarch.rpm
xorg-x11-font-utils-6.8.2-1.EL.13.20.x86_64.rpm
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003141)
kbsingh@karan.org (administrator)
2006-02-06 17:00

This is caused due to a user interrupted yum update in most cases. Can you confirm how this problem occured ?
(0003151)
chicks (reporter)
2006-02-07 13:38

Its possible I interrupted yum, but I'm not sure.
(0003159)
chicks (reporter)
2006-02-08 14:54

I've managed to clean most of the mess up, except for this curiosity:

[root@dot log]# rpm -V libselinux-1.19.1-7.i386 device-mapper-1.01.04-1.0.RHEL4.i386
S.5....T. /usr/sbin/avcstat
S.5....T. /usr/sbin/getenforce
S.5....T. /usr/sbin/getsebool
S.5....T. /usr/sbin/selinuxenabled
S.5....T. /usr/sbin/setenforce
S.5....T. /usr/sbin/setsebool
S.5....T. /usr/sbin/togglesebool
.......T. d /usr/share/man/man8/avcstat.8.gz
.......T. d /usr/share/man/man8/booleans.8.gz
.......T. d /usr/share/man/man8/getenforce.8.gz
.......T. d /usr/share/man/man8/getsebool.8.gz
.......T. d /usr/share/man/man8/selinux.8.gz
.......T. d /usr/share/man/man8/selinuxenabled.8.gz
.......T. d /usr/share/man/man8/setenforce.8.gz
.......T. d /usr/share/man/man8/setsebool.8.gz
.......T. d /usr/share/man/man8/togglesebool.8.gz
S.5....T. /sbin/dmsetup
S.5....T. /sbin/dmsetup.static
.......T. /usr/include/libdevmapper.h
.......T. d /usr/share/man/man8/dmsetup.8.gz
[root@dot log]# rpm -V libselinux-1.19.1-7.x86_64 device-mapper-1.01.04-1.0.RHEL4.x86_64
[root@dot log]# rpm -V dmraid
[root@dot log]# rpm -e --justdb libselinux-1.19.1-7.i386 device-mapper-1.01.04-1.0.RHEL4.i386
error: Failed dependencies:
        libdevmapper.so.1.01 is needed by (installed) dmraid-1.0.0.rc8-1_RHEL4_U2.i386
        libdevmapper.so.1.01(Base) is needed by (installed) dmraid-1.0.0.rc8-1_RHEL4_U2.i386

Should I just blow dmraid away since it is dependant on things that aren't working? Why isn't there an x86_64 version of dmraid?
(0003160)
chicks (reporter)
2006-02-08 14:55

Upon a little more reflection I'm pretty sure I interrupted yum on the boxes in question.
(0003171)
kbsingh@karan.org (administrator)
2006-02-09 17:00

in a situation where you find more the required number of versions installed ( eg, more than 2 copies of the same package for the same arch ), the recommended way to work around is to erase the pkg ( rpm -e ) with the newer version, and then yum update back to the newer version.

in such a case it MIGHT be possible to ignore dependancies, since you are going to replace the package right away. ( but be carefull, eg. dont take away python - or you wont be able to run yum anymore etc ).

its always a good idea to backup te /var/lib/rpm/Packages file. before and after the cleanup.
(0016820)
tigalch (developer)
2013-03-22 17:44

CentOS4 is EOL

- Issue History
Date Modified Username Field Change
2006-02-06 16:53 chicks New Issue
2006-02-06 16:53 chicks Status new => assigned
2006-02-06 17:00 kbsingh@karan.org Note Added: 0003141
2006-02-06 17:01 kbsingh@karan.org Status assigned => feedback
2006-02-07 13:38 chicks Note Added: 0003151
2006-02-08 14:54 chicks Note Added: 0003159
2006-02-08 14:55 chicks Note Added: 0003160
2006-02-09 17:00 kbsingh@karan.org Note Added: 0003171
2013-03-22 17:44 tigalch Note Added: 0016820
2013-03-22 17:44 tigalch Status feedback => closed
2013-03-22 17:44 tigalch Resolution open => fixed


Copyright © 2000 - 2016 MantisBT Team
Powered by Mantis Bugtracker