Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > The Community Lounge > Programming

Programming A place to discuss programming and development

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-03-25, 01:03 AM CST
vherva Offline
Registered User
 
Join Date: Nov 2003
Posts: 6
glibc rpm upgrade FUBAR

This is a longish story, and I'm not sure where I should report this bug... Anyway,
I was upgrading my Fedora Core Development installation with yum command

yum --exclude=xorg\* --exclude=anaconda --exclude=gdm --exclude=kdebase --exclude=kde\* --exclude=chkfontpath --exclude=XFree86\* --exclude=epiphany --exclude=gkrellm --exclude=rpmdb-fedora update

in preparation to move from XFree86 to x-org. At the time, I only had Fedora Devel base path in my yum.conf. yum downloaded the rpms slowly, but hell broke loose when rpm begun installing the first packages. Basically, glibc-common and
glibc didn't install properly:

glibc-common 100 % done 4/208
error: unpacking of archive failed on file /usr/lib/locale/zh_CN/LC_PAPER: cpio link exists
warning: /etc/ld.so.conf created as /etc/ld.so.conf.rpmnew

glibc 100 % done 5/208
error: unpacking of archive failed on file /lib/ld-2.3.3.so: cpio: open

and after that, most of the rpm installs were fubar, because rpm could not execute
anything due to missing ls-linux.so.2:

pango 100 % done 7/208
error: %post(pango-1.4.0-1) scriptlet failed, exit status 255

I had left yum running by itself (as the upgrade took about 5 hours), so it
kept on going these fubared installs for about 100 rpm's before it mis-upgraded python
and sigbus'ed:

zsh: bus error yum --exclude=xorg\* --exclude=anaconda --exclude=gdm --excl

I found out that /lib/ld-linux.so.2, /lib/ld-2.2.3.so and /lib/tls/libc.so.6 were
missing. Through various LD_LIBRARY_PATH, LD_PRELOAD, "/backup/lib/ld-linux.so.2 /bin/cp ..." and ash.static hacks I was able to restore so much glibc libraries that I could try
to reinstall the rpm's.

I verified the glibc rpm signatures, and md5 sums were ok. Installing glibc-utils-2.3.3-18, glibc-headers-2.3.3-18, glibc-2.3.3-18, glibc-devel-2.3.3-18, glibc-common-2.3.3-18 didn't prove easy, though. I got the same errors and lost the libraries again. The same story when trying to the previous glibc-2.3.3-16.

This is using rpm-4.3-0.22 and rpm-4.3-0.20 (it was upgraded in the process.) I reinstalled
rpm-4.3-0.22 with rpm -Uvh --force before retrying.)

Basically it, appeared that rpm had become completely unable to handle cases where it should replace a file with a link, replace a running binary/library, or anything non-trivial. After I did rm -rf /usr/lib/locale and some other offending files, I was able to install
glibc*. However, the same problems continued when I reinstalled the misinstalled rpm's:

python 100 % done 18/208
error: unpacking of archive failed on file /usr/bin/python: cpio: link
gcc-c++ 100 % done 82/208
error: unpacking of archive failed on file /usr/bin/c++: cpio: link
e2fsprogs-devel 100 % done 69/208
error: unpacking of archive failed on file /usr/share/man/man3/uuid_generate.3.gz
emacs 100 % done 96/208
error: unpacking of archive failed on file /usr/bin/emacs: cpio: link

and reinstalling SysVinit complained that /sbin/init textfile was busy. Well, duh!

(Sorry for the possibly inexact error messages, the rxvt where I cut'n'pasted these from
was a bit garbled.)

So, all in all, I'm not sure if this is a bug in the rpm packages, rpm itself, yum, or perhaps in cpio. I would suspect rpm. But is quite serious.
Reply With Quote
  #2  
Old 2004-03-25, 04:16 AM CST
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 31
Posts: 1,019
Is this Test1 or rawhide? What repositories are you using?
__________________
http://blog.suretecsystems.com
Reply With Quote
  #3  
Old 2004-03-25, 05:13 AM CST
vherva Offline
Registered User
 
Join Date: Nov 2003
Posts: 6
Rawhide (aka development).

I only had these development mirrors in yum.conf at the time:

[development]
name=Fedora Core $releasever - Development Tree
failovermethod=priority
baseurl=ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/core/development/i386/
ftp://ftp.chl.chalmers.se/pub/fedora...elopment/i386/
http://download.fedora.redhat.com/pu...elopment/i386/

Occasionally, I've installed some Livna and Freshrpms stuff, but not this time. (I wanted to keep the upgrade clean as I was aiming for XFree86 -> x-org transition.)
Reply With Quote
  #4  
Old 2004-03-25, 05:17 AM CST
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 31
Posts: 1,019
Just a quick thought. Do you have plenty of space in /var/tmp and /tmp / etc.?
__________________
http://blog.suretecsystems.com
Reply With Quote
  #5  
Old 2004-03-25, 05:59 AM CST
vherva Offline
Registered User
 
Join Date: Nov 2003
Posts: 6
About 2.2G free on rootfs (/var, /tmp, /lib, /usr all reside there).
Reply With Quote
  #6  
Old 2004-03-26, 03:24 AM CST
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 31
Posts: 1,019
I'm not sure then.
__________________
http://blog.suretecsystems.com
Reply With Quote
  #7  
Old 2004-03-26, 04:05 AM CST
vherva Offline
Registered User
 
Join Date: Nov 2003
Posts: 6
Where should I report this?

I opened up a bugzilla entry for rpm
(http://bugzilla.redhat.com/bugzilla/....cgi?id=119122), but no-one seems interested. I'm not even sure if this was an rpm bug.
Reply With Quote
  #8  
Old 2004-03-26, 04:41 AM CST
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 31
Posts: 1,019
You've done the right thing. Just keep an eye on bugzilla.
__________________
http://blog.suretecsystems.com
Reply With Quote
Reply

Tags
fubar, glibc, rpm, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 Upgrade :glibc not found Error rajnish Installation Help 1 2008-12-27 01:48 AM CST
yum update glibc conflict after FC3->FC4 upgrade AaronHarwood Installation Help 0 2006-03-12 06:47 AM CST
"yum install glibc-devel" = Error: glibc-common conflicts with glibc < 2.3.6 nat101l Software 22 2005-11-10 11:16 AM CST
upgrade glibc pagla_ghoda Software 1 2005-09-14 02:43 PM CDT
Glibc upgrade causing program crashes Kevin gmane.linux.redhat.fedora.general 1 2005-02-02 03:43 PM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 05:14 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Languages translations made by vBET