How am I supposed to deal with this error?
# rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm Preparing... ########################################### [100%] 1:filesystem ########################################### [100%] error: unpacking of archive failed on file /home: cpio: chown failed - Operation not permitted # rpm -q filesystem package filesystem is not installed # ls -dlL /home drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home
/home mounted from NFS server.
Of course, I could unmount /home to install this. But I have many machines like this one and /home can't always be unmounted when we do updates. I personally feel it's a bug in filesystem package. rpm shouldn't blow up like that because of this issue.
-akop
Akop Pogosian wrote:
How am I supposed to deal with this error?
# rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm Preparing... ########################################### [100%] 1:filesystem ########################################### [100%] error: unpacking of archive failed on file /home: cpio: chown failed - Operation not permitted # rpm -q filesystem package filesystem is not installed # ls -dlL /home drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home
/home mounted from NFS server.
You need to allow root acess to the NFS share (ie, export with the no_root_squash option).
Or don't NFS mount /home.
-- Rex
On 11/4/05, Rex Dieter rdieter@math.unl.edu wrote:
Akop Pogosian wrote:
How am I supposed to deal with this error?
# rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm Preparing... ########################################### [100%] 1:filesystem ########################################### [100%] error: unpacking of archive failed on file /home: cpio: chown failed - Operation not permitted # rpm -q filesystem package filesystem is not installed # ls -dlL /home drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home
/home mounted from NFS server.
You need to allow root acess to the NFS share (ie, export with the no_root_squash option).
Or don't NFS mount /home.
Actually, what I believe will give him the desired behavior is to add to /etc/rpm/macros (create it if its not there):
# A colon separated list of paths where files should *not* be installed. # Usually, these are network file system mount points. # %_netsharedpath /home
As the comment from /usr/lib/rpm/macros suggests other paths can be added. This will cause rpm to not delive files that are in these directories with no error, and ass the macro name implies, this feature was designed for this very purpose.
Cheers...james
On Fri, Nov 04, 2005 at 09:08:06AM -0500, James Olin Oden wrote:
On 11/4/05, Rex Dieter rdieter@math.unl.edu wrote:
Akop Pogosian wrote:
How am I supposed to deal with this error?
# rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm Preparing... ########################################### [100%] 1:filesystem ########################################### [100%] error: unpacking of archive failed on file /home: cpio: chown failed - Operation not permitted # rpm -q filesystem package filesystem is not installed # ls -dlL /home drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home
/home mounted from NFS server.
You need to allow root acess to the NFS share (ie, export with the no_root_squash option).
Or don't NFS mount /home.
Actually, what I believe will give him the desired behavior is to add to /etc/rpm/macros (create it if its not there):
# A colon separated list of paths where files should *not* be installed. # Usually, these are network file system mount points. # %_netsharedpath /home
As the comment from /usr/lib/rpm/macros suggests other paths can be added. This will cause rpm to not delive files that are in these directories with no error, and ass the macro name implies, this feature was designed for this very purpose.
This sounds like the feature I need, so I put /home and /usr/local in that file. But now my /home and /usr/local symbolic links, which point to NFS-mounted /misc/home and /opt/local, are removed when I convert an RHEL 3 system into CentOS. The conversion involves the upgrade of the "filesystem" package which has CentOS specific version. I traced this problem down to it. I don't know if that's an intended behavior or just a bug. Why would rpm remove paths I just told it to leave alone?
-akop
<snip>
# Usually, these are network file system mount points. # %_netsharedpath /home
As the comment from /usr/lib/rpm/macros suggests other paths can be added. This will cause rpm to not delive files that are in these directories with no error, and ass the macro name implies, this feature was designed for this very purpose.
This sounds like the feature I need, so I put /home and /usr/local in that file. But now my /home and /usr/local symbolic links, which point to NFS-mounted /misc/home and /opt/local, are removed when I convert an RHEL 3 system into CentOS. The conversion involves the upgrade of the "filesystem" package which has CentOS specific version. I traced this problem down to it. I don't know if that's an intended behavior or just a bug. Why would rpm remove paths I just told it to leave alone?
Sounds like you found a bug. Right a bugzilla report, on Monday I can talk to Jeff about it, but if you right the report now you will probably get some attention from Jeff Johnson or Paul Nasrat before the weekend is over. Also, should be able to locate Jeff and Paul at irc.freenode.net on #rpm. Jeff is doing activer work on the latest release of RPM so if he thinks its a bug you might get a fix in it very soon.
Cheers...james