Bug 102215 - rpm program cannot execute
Summary: rpm program cannot execute
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-12 17:01 UTC by Need Real Name
Modified: 2007-04-18 16:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-08-20 20:29:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2003-08-12 17:01:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
When starting "rpm" after an update to the glibc packages, it would
not run anymore, saying "Speicherzugriffsfehler" (german), which means
"memory access error". Some functions of the rpm program work, however,
for example "rpm -qa". But rpm install/update/erase won't run.

The package updates (using RedHat Update Agent), probably causing the error, are
- glibc-2.3.2-27.9
- glibc-common-2.3.2-27.9
- glibc-devel-2.3.2-4.80.6

The former installed versions were
glibc-2.2.93-5
glibc-common-2.2.93-5
glibc-devel-2.2.93-5

Is there are way to reinstall the rpm package ? Or another repair
alternative ?



Version-Release number of selected component (if applicable):
rpm-4.1-1.06

How reproducible:
Always

Steps to Reproduce:
1.type in at prompt: rpm [CR]
2.
3.
    

Actual Results:  the error message described above.

Expected Results:  listing of the rpm help text

Additional info:

Comment 1 Jeff Johnson 2003-08-20 20:29:48 UTC
Sure you can reinstall rpm manually, as long as you have functional
od/gzip/cpio.

Assuming rpm packages downloaded into /var/tmp, do the following as root:
    mkdir -p /var/tmp/xxx
    cd /var/tmp/xxx
    for i in ../*.rpm; do
        /usr/lib/rpm/rpm2cpio.sh $i | cpio -dim
    done
    find . -type d -exec chmod 0755 {} \;
    tar cf - . | (cd /; tar xvf -)

You might try /bin/rpm first, as the executable is statically linked
in rpm-4.1.x (not true anymore, NPTL and TLS make static linking
too expensive to distribute a statically linked binary, static
link must be redone each and every time glibc changes.)

Comment 2 Jeff Johnson 2003-08-20 20:30:39 UTC
Oh yes, you might try
    rm -f /var/lib/rpm/__db*
to remove stale locks.


Note You need to log in before you can comment on or make changes to this bug.