Bug 210945 - yum update gives error: unpacking of archive failed on file /home: cpio: chown
yum update gives error: unpacking of archive failed on file /home: cpio: chown
Product: Fedora
Classification: Fedora
Component: filesystem (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Depends On:
  Show dependency treegraph
Reported: 2006-10-16 13:25 EDT by Nurdin Premji
Modified: 2015-03-04 20:17 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-15 00:08:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nurdin Premji 2006-10-16 13:25:58 EDT
Description of problem:
Doing a yum update gives the error

Running Transaction
  Updating  : filesystem                   ######################### [1/2] 
error: unpacking of archive failed on file /home: cpio: chown

Updated: filesystem.i386 0:2.4.0-1

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

How reproducible:
every time

Steps to Reproduce:
1. do a yum update
Actual results:

Get error message, doing another update tries to update the filesystem package
again. Even though it says completed

Expected results:
No error, package actually installed instead of saying it is installed.

Additional info:
Comment 1 Phil Knirsch 2006-10-17 05:51:56 EDT
That looks like a corrupted or truncated binary rpm package for filesystem.

Please verify if the size and data of that rpm is correct.


Read ya, Phil
Comment 2 Nurdin Premji 2006-10-17 10:26:42 EDT
How do I do this?
Comment 3 Phil Knirsch 2007-05-24 11:06:46 EDT
Typically a rpm -qpVa foo.rpm works to list any problems.

Does this still happen?

Read ya, Phil

PS: Might have been a broken tree at that day as well.
Comment 4 Tim Niemueller 2008-03-18 09:04:46 EDT
This happens our our machines as well. We have /home mounted via NFS from our
central file server. I can upgrade the package if I unmount /home beforehand.
Afterwards I can mount it again.

This happens at least on F8 and rawhide.
Comment 5 Phil Knirsch 2008-03-27 09:54:29 EDT
Ah, i think i finally know where the problem comes from:

NFS is probably mounted RW but without the no_root_squash option. This will lead
to rpm failing when trying to "install" /home with proper permissions and
user/group, see the cpio: chown error message.

So this is basically a configuration problem where rpm and/or the package
filesystem can't do much about.

Read ya, Phil
Comment 6 Tim Niemueller 2008-03-28 05:17:08 EDT
It's mounted with no_root_squash indeed. A way that the cpio error does not fail
the installation would already be helpful, like giving a warning but not
stopping the installation.
Comment 7 Phil Knirsch 2008-03-28 11:48:42 EDT
Not sure if thats already possible at all with RPM as it generally wants to
install every file properly, including user/group and permissions and gets
rather unhappy if it can't for some reason.

I'm CC'ing Panu Matilainen on this bug now as he's our RPM expert and
maintainer, maybe he has an idea.

Read ya, Phil
Comment 8 Panu Matilainen 2008-03-31 03:35:45 EDT
You can tell rpm about NFS paths with %_netsharedpath macro, something like this
should avoid the issue:
echo "%_netsharedpath /home" >> /etc/rpm/macros
Comment 9 Bug Zapper 2008-05-13 22:25:15 EDT
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Comment 10 Jon Stanley 2008-05-15 00:08:02 EDT
Closing NOTABUG - This is expected behavior, and Panu provided a workaround a
few months back.

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