filesystem package installs fails with "/usr/local: cpio: chown failed - Operation not permitted".

Solution Verified - Updated -

Issue

Yum and rpm install command fails for package "filesystem"

Error: /usr/local: cpio: chown failed - Operation not permitted.

[root@gridsrv ~]# yum update
Loaded plugins: downloadonly, rhnplugin, security
Skipping security plugin, no data
filesystem-2.4.0-3.el5.i386.rpm                                                                | 1.0 MB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating      : filesystem                                                                                      1/2
Error unpacking rpm package filesystem-2.4.0-3.el5.i386
error: unpacking of archive failed on file /usr/local: cpio: chown

Failed:
  filesystem.i386 0:2.4.0-3.el5

Complete!







[root@gridsrv
 tmp]# rpm -Uvvvh filesystem-2.4.0-3.el5.i386.rpm 
D: ============== 
filesystem-2.4.0-3.el5.i386.rpm 
D: Expected size:      1038019 = 
lead(96)+sigs(344)+pad(0)+data(1037579) 
D:   Actual size:     
 1038019 
D: opening  db environment /var/lib/rpm/Packages joinenv 
D:
 opening  db index       /var/lib/rpm/Packages rdonly mode=0x0 
D: 
locked   db index       /var/lib/rpm/Packages 
D: opening  db index  
     /var/lib/rpm/Pubkeys rdonly mode=0x0 
D:  read h#     733 Header
 sanity check: OK 
D: ========== DSA pubkey id 53268101 37017186 
(h#733) 
D: filesystem-2.4.0-3.el5.i386.rpm: Header V3 DSA signature:
 OK, key ID 37017186 
D: opening  db index       /var/lib/rpm/Name 
rdonly mode=0x0 
D:  read h#       2 Header V3 DSA signature: OK, key
 ID 37017186 
D:      added binary package [0] 
D: found 0 source 
and 1 binary packages 
D: ========== +++ filesystem-2.4.0-3.el5 
i386/linux 0x0 
D: opening  db index       /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:
  Requires: rpmlib(VersionedDependencies) <= 3.0.3-1      YES (rpmlib
 provides) 
D: opening  db index       /var/lib/rpm/Providename 
rdonly mode=0x0 
D:  read h#     801 Header V3 DSA signature: OK, key
 ID 37017186 
D:  Requires: setup >= 2.5.4-1                      
        YES (db provides) 
D: opening  db index       
/var/lib/rpm/Conflictname rdonly mode=0x0 
D: ========== --- 
filesystem-2.4.0-2 i386/linux 0x0 
D: opening  db index       
/var/lib/rpm/Requirename rdonly mode=0x0 
D:  read h#       3 Header 
V3 DSA signature: OK, key ID 37017186 
D:  Requires: filesystem      
                              YES (added provide) 
D:  read h#     
323 Header V3 DSA signature: OK, key ID 37017186 
D:  Requires: 
filesystem >= 2.2.4-1                         YES (added provide) 
D:
  read h#     350 Header V3 DSA signature: OK, key ID 37017186 
D: 
 Requires: filesystem >= 2.1.4-1                         YES (added 
provide) 
D:  read h#     430 Header V3 DSA signature: OK, key ID 
37017186 
D:  Requires: filesystem >= 2.0.1                        
   YES (added provide) 
D:  read h#    1379 Header V3 DSA signature: 
OK, key ID 37017186 
D:  Requires: filesystem >= 2.1.0            
               YES (added provide) 
D: closed   db index       
/var/lib/rpm/Depends 
D: ========== recording tsort relations 
D: 
========== tsorting packages (order, #predecessors, #succesors, tree, 
depth, breadth) 
D:     0    0    0    1    1    0   
-filesystem-2.4.0-2.i386 
D: ========== successors only (0 bytes) 
D:
     1    0    0    0    1    1   +filesystem-2.4.0-3.el5.i386 
D: 
installing binary packages 
D: closed   db index       
/var/lib/rpm/Pubkeys 
D: closed   db index       
/var/lib/rpm/Conflictname 
D: closed   db index       
/var/lib/rpm/Providename 
D: closed   db index       
/var/lib/rpm/Requirename 
D: closed   db index       
/var/lib/rpm/Name 
D: closed   db index       /var/lib/rpm/Packages 
D:
 closed   db environment /var/lib/rpm/Packages 
D: opening  db 
environment /var/lib/rpm/Packages joinenv 
D: opening  db index      
 /var/lib/rpm/Packages create mode=0x42 
D: mounted filesystems: 
D:
     i        dev    bsize       bavail       iavail mount point 
D:  
   0 0x00000801     4096      1418844      2236986 / 
D:     1 
0x00000003     4096            0           -1 /proc 
D:     2 
0x00000000     4096            0           -1 /sys 
D:     3 
0x0000000c     4096            0           -1 /dev/pts 
D:     4 
0x00000802     4096       412299       523612 /var 
D:     5 
0x00000013     4096       129388       129387 /dev/shm 
D:     6 
0x00000014     4096            0           -1 /proc/sys/fs/binfmt_misc 
D:
     7 0x00000015     4096            0           -1 
/var/lib/nfs/rpc_pipefs 
D:     8 0x00000021    65536     12282240    
 25269876 /all/gridware 
D:     9 0x00000022    65536       938358    
 16903023 /usr/local 
D: sanity checking 2 elements 
D: opening 
 db index       /var/lib/rpm/Name create mode=0x42 
D:  read h#      
 2 Header V3 DSA signature: OK, key ID 37017186 
D: running 
pre-transaction scripts 
D: computing 15336 file fingerprints 
Preparing...
                D: computing file dispositions 
D: opening  db index  
     /var/lib/rpm/Basenames create mode=0x42 
D:  read h#     211 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     212 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     337 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     341 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     350 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     372 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     596 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     597 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     633 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     650 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     683 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     691 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     869 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     886 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     939 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#     952 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1021 
Header SHA1 digest: OK (f9e9bedaf16a4dc4b3c692b2fb477e946b6eb2e7) 
D:
  read h#    1050 Header SHA1 digest: OK 
(9dcaecdaa4de70e9519e131679738c4d816ee302) 
D:  read h#    1124 
Header SHA1 digest: OK (66106d837c8a8ac297e7059906be1915254d18b2) 
D:
  read h#    1125 Header SHA1 digest: OK 
(8eba39c2121a3093483380b142effced272ba41c) 
D:  read h#    1126 
Header SHA1 digest: OK (32e9491f2e2aea56c15fb2a96f1bd39520a5b870) 
D:
  read h#    1128 Header SHA1 digest: OK 
(82ac7cdfe2a6b05adb424b8c014ddfa30cf42585) 
D:  read h#    1152 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1166 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1204 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1205 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1212 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1325 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1339 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1361 
Header V3 DSA signature: OK, key ID 37017186 
D:  read h#    1378 
Header V3 DSA signature: OK, key ID 37017186 
###########################################
 [100%] 
D: ========== +++ filesystem-2.4.0-3.el5 i386-linux 0x0 
D:
 Expected size:      1038019 = lead(96)+sigs(344)+pad(0)+data(1037579) 
D:
   Actual size:      1038019 
D: filesystem-2.4.0-3.el5: Header V3 
DSA signature: OK, key ID 37017186 
D:   install: 
filesystem-2.4.0-3.el5 has 14109 files, test = 0 
D: opening  db 
index       /var/lib/rpm/Triggername create mode=0x42 

1:filesystem             D: ========== Directories not explicitly 
included in package: 
D:          0 / 
D: ========== 
D: fini  
    040755 20 (   0,   0)         0 / 
D: fini      040755  2 (   0,  
 0)         0 /bin 
D: fini      040755  2 (   0,   0)         0 
/boot 
D: fini      040755  2 (   0,   0)         0 /dev 
D: fini  
    040755  8 (   0,   0)         0 /etc 
D: fini      040755  5 (   
0,   0)         0 /etc/X11 
D: fini      040755  2 (   0,   0)        
 0 /etc/X11/applnk 
D: fini      040755  2 (   0,   0)         0 
/etc/X11/serverconfig 
D: fini      040755  2 (   0,   0)         0 
/etc/X11/sysconfig 
D: fini      040755  2 (   0,   0)         0 
/etc/opt 
D: fini      040755  2 (   0,   0)         0 /etc/pki 
D:
 fini      040755  2 (   0,   0)         0 /etc/skel 
D: fini     
 040755  2 (   0,   0)         0 /etc/sysconfig 
D: fini      040755 
 2 (   0,   0)         0 /etc/xinetd.d 
D: fini      040755  2 (   0,
   0)         0 /home 
D: fini      040755  3 (   0,   0)         0 
/lib 
D: fini      040755  2 (   0,   0)         0 /lib/modules 
D:
 fini      040755  2 (   0,   0)         0 /media 
D: fini     
 040755  4 (   0,   0)         0 /mnt 
D: fini      040755  2 (   0,  
 0)         0 /opt 
D: fini      040555  2 (   0,   0)         0 
/proc 
D: fini      040750  2 (   0,   0)         0 /root 
D: fini
      040755  2 (   0,   0)         0 /sbin 
D: fini      040755  2 (
   0,   0)         0 /selinux 
D: fini      040755  2 (   0,   0)    
     0 /srv 
D: fini      040755  2 (   0,   0)         0 /sys 
D:
 fini      041777  2 (   0,   0)         0 /tmp 
D: fini      040755 
12 (   0,   0)         0 /usr 
D: fini      040755  2 (   0,   0)    
     0 /usr/bin 
D: fini      040755  2 (   0,   0)         0 
/usr/etc 
D: fini      040755  2 (   0,   0)         0 /usr/games 
D:
 fini      040755  2 (   0,   0)         0 /usr/include 
D: fini     
 040755  8 (   0,   0)         0 /usr/lib 
D: fini      040755  2 (  
 0,   0)         0 /usr/lib/X11 
D: fini      040755  2 (   0,   0)  
       0 /usr/lib/games 
D: fini      040755  2 (   0,   0)         0
 /usr/lib/gcc-lib 
D: fini      040755  2 (   0,   0)         0 
/usr/lib/locale 
D: fini      040755  2 (   0,   0)         0 
/usr/lib/sse2 
D: fini      040755  2 (   0,   0)         0 
/usr/lib/tls 
D: fini      040755  2 (   0,   0)         0 
/usr/libexec 
D: fini      040755 11 (   0,   0)         0 /usr/local

GZDIO:       1 reads,     8192 total bytes in 0.000132 secs 
###########################################
 [100%] 
error: unpacking of archive failed on file /usr/local: cpio: chown failed - Operation not permitted 
D: ========== --- 
filesystem-2.4.0-2 i386-linux 0x0 
D: running post-transaction 
scripts 
D: closed   db index       /var/lib/rpm/Triggername 
D: 
closed   db index       /var/lib/rpm/Basenames 
D: closed   db index  
     /var/lib/rpm/Name 
D: closed   db index       
/var/lib/rpm/Packages 
D: closed   db environment 
/var/lib/rpm/Packages 
D: May free Score board((nil)) 

Environment

Red Hat Enterprise Linux 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content