[WBEL-devel] RPM problems

Charles Lacour clacour@clacour.com
Mon, 8 Dec 2003 21:24:09 -0600


This will probably turn out to be blindness/idiocy on my part, but I'm trying 
to install an RPM to a temporary directory to check it out, and it keeps 
blowing up on me.

I _thought_, reading the rpm man page, that one specified "--root <directory>" 
to have everything go to someplace other than the normal. I entered the 
following command:

$ rpm -vv --root /tmp/wb -i 
/loop2/RedHat/RPMS/redhat-logos-1.1.14.3-1.noarch.rpm

(That's actually all one line -- Kmail wrapped it.) And this is what I got:

------------------ Beginning of "rpm" output ----------------------------
D: ============== /loop2/RedHat/RPMS/redhat-logos-1.1.14.3-1.noarch.rpm
D: Expected size:       860233 = lead(96)+sigs(344)+pad(0)+data(859793)
D:   Actual size:       860233
D: opening  db environment /tmp/wb/tmp/wb/var/lib/rpm/Packages joinenv
D: opening  db index       /tmp/wb/tmp/wb/var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /tmp/wb/tmp/wb/var/lib/rpm/Packages
D: opening  db index       /tmp/wb/tmp/wb/var/lib/rpm/Pubkeys rdonly mode=0x0
warning: /loop2/RedHat/RPMS/redhat-logos-1.1.14.3-1.noarch.rpm: V3 DSA 
signature: NOKEY, key ID db42a60e
D:      added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ redhat-logos-1.1.14.3-1 noarch/linux 0x0
D: opening  db index       /tmp/wb/tmp/wb/var/lib/rpm/Depends create mode=0x0
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib 
provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib 
provides)
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Depends
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, 
depth)
D:     0    0    0    0    0 +redhat-logos-1.1.14.3-1
D: installing binary packages
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Pubkeys
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Packages
D: closed   db environment /tmp/wb/tmp/wb/var/lib/rpm/Packages
D: opening  db environment /tmp/wb/tmp/wb/var/lib/rpm/Packages joinenv
D: opening  db index       /tmp/wb/tmp/wb/var/lib/rpm/Packages create 
mode=0x42
D: mounted filesystems:
D:     i    dev bsize       bavail       iavail mount point
D:     0 0x0305  4096       692412      3092616 /
D:     1 0x0002  1024            0           -1 /proc
D:     2 0x0007  1024            0           -1 /proc/bus/usb
D:     3 0x0301  1024        32762        13998 /boot
D:     4 0x0342  4096      5088283      3728224 /backup
D:     5 0x0008  4096       128863       128862 /dev/shm
D:     6 0x0006  1024            0           -1 /dev/pts
D:     7 0x1601  4096      7038886      5102599 /bbc
D:     8 0x1602  4096       298011      1280253 /cdroms
D:     9 0x0700  2048            0           -1 /cdroms/rh9d1
D:    10 0x0701  2048            0           -1 /cdroms/rh9d2
D:    11 0x0702  2048            0           -1 /cdroms/rh9d3
D:    12 0x0703  2048            0           -1 /loop1
D:    13 0x0704  2048            0           -1 /loop2
D:    14 0x0705  2048            0           -1 /loop3
D:    15 0x0706  2048            0           -1 /loop4
D: sanity checking 1 elements
D: opening  db index       /tmp/wb/tmp/wb/var/lib/rpm/Name create mode=0x42
D: computing 66 file fingerprints
Preparing packages for installation...
D: computing file dispositions
D: opening  db index       /tmp/wb/var/lib/rpm/Basenames create mode=0x42
D: ========== +++ redhat-logos-1.1.14.3-1
D: Expected size:       860233 = lead(96)+sigs(344)+pad(0)+data(859793)
D:   Actual size:       860233
D:   install: redhat-logos-1.1.14.3-1 has 66 files, test = 0
redhat-logos-1.1.14.3-1
D: ========== Directories not explictly included in package:
D:          0 /boot/grub/
D:          1 /boot/
D:          2 /usr/share/
D:          7 /usr/share/doc/
D: ==========
D: undo      100644  1 (   0,   0)     11182 /boot/grub/splash.xpm.gz;3fd53db8
GZDIO:       1 reads,     8192 total bytes in 0.000 secs
error: unpacking of archive failed on file /boot/grub/splash.xpm.gz;3fd53db8: 
cpio: open failed - Permission denied
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Basenames
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Name
D: closed   db index       /tmp/wb/tmp/wb/var/lib/rpm/Packages
D: closed   db environment /tmp/wb/tmp/wb/var/lib/rpm/Packages
---------------- End of "rpm" output ------------------------------

Being a suspicious, paranoid type, I had made /tmp/wb owned by my ordinary id, 
"clacour", and ran the install command as that ID. As best I can tell, it's 
choking because it can't write to /boot/grub/splash.xpm.gz. It is NOT (as 
best I can see) trying to write to /tmp/wb/boot/grub/splash.xpm.gz.

It's definitely not lack of space /tmp is part of /, and it has about 2.7 GB.

I'm running this on RH 9.

Can anybody tell me either (with certainty) that rpm (version 4.2) is borken, 
or (better yet) what I'm doing wrong? 

Thanks,

Charles Lacour