Bug 98975
Summary: | rpm failure : need help | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Van <k_tgiang> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED NOTABUG | QA Contact: | Mike McLean <mikem> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.0 | CC: | leonard-rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-04-19 19:02:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Van
2003-07-11 08:59:51 UTC
Yup, mixing and matching kernel/glibc/rpm leads to some painful surprises these days. Basically you need to decide whether you want NPTL/TLS/futexes. If you do want them (i.e. you're mostly RHL9), then you want versions and updates and rpm from RHL9. This translates to you want rpm-4.2. Otherwise (i.e. you're mostly RHL8.0) then you want to get packages/updates/rpm from RHL 8.0. This translates to rpm-4.1.1. So figure out whether you want 4.2 or 4.1.1 (they're the same code base, built differently). Download all the packages (don't forget popt) for either rpm-4.2 or rpm-4.1.1 from ftp://ftp.rpm.org/pub/rpm/dist into var tmp, and install manually by doing (as root) cd /var/tmp mkdir xxx cd xxx for i in ../{rpm,popt}-*.rpm; then /usr/lib/rpm/rpm2cpio.sh $i | cpio -dim done find . -type d -exec chmod 0755 {} \; tar cf - . | (cd /; tar xvf -) rm -f /var/lib/rpm/__db* rpm --rebuilddb -vv cd /var/tmp rpm -Uvh {rpm,popt}-*.rpm I followed what you suggested to switch to rpm4.2, but there are couple of problems on the way: for i in ../{rpm,popt}-*.rpm; then /usr/lib/rpm/rpm2cpio.sh $i | cpio -dim fails due to syntax error, which I am not familiar with. So, instead I tried : /usr/lib/rpm/rpm2cpio.sh ../{rpm,popt}-*.rpm $i | cpio -dim which turns out fine. Then, I follow the rest of the steps, but up to : rpm --rebuild -vv it gives me the same old error : "rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory". I notice there are new created dirs in the xxx dir too, but somehow it doesn't work. What should I do then? By the way, I am using <bash> if it helps. The reason I insist on rpm4.2 is that even though I upgraded to kernel- 2.4.20, java still causes runtime errors where the docs of java mention otherwise. So, I thought making everything compatible for kernel-2.4 would be helpful since I assume there must be changes in kernel-2.4.20's compilers. If you have any information about this, plz feed me :-) thanks. -van I managed to try couple of times, this time I follow the command in bash: for i in ../{rpm;popt}-*.rpm; do /usr/lib/rpm/rpm2cpio.sh $i | cpio -dim;done which works fine. But then, rpm --rebuilddb -vv ( or any rpm command ) gives the following error: "bash: /bin/rpm: Cannot execute binary file" any idea? (I forgot to reopen bug last time, so you might have 2 comments session). thanks. -van What do ls -al /bin/rpm and file /bin/rpm say? Seems like this issue is somewhat outside of the scope of the distribution (mixed versions) and the issues are expected. WONTFIX? NOTABUG? |