zypper update fails

I am running SLSE11- Linux linux16 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 s390x s390x s390x GNU/Liinux

zypper update fails with the following message.

Retrieving package filesystem-11.1-3.5.3.s390x (1/932), 50.0 K (0 B unpacked)
Installing: filesystem-11.1-3.5.3 [error]
Installation of filesystem-11.1-3.5.3 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /mnt: cpio: chown failed - Read-only file system

Abort, retry, ignore? [A/r/i]: a
Problem occured during or after installation or removal of packages:
Installation aborted by user

Please see the above error message for a hint.

Having a read-only filesystem isn’t going to work if you’re patching. Why
is your filesystem currently set as read-only? If you did not mean to do
that (likely you would not do that before doing an upgrade, as that would
be silly) then your filesystem may be changing to read-only because the
kernel is detecting a problem.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

I check the mount and see that it is mounted rw!
mount | grep /mnt
linux100:/pub/data/suse/s11sp3dvd1 on /mnt type nfs (rw,addr=9.42.118.196,nfsvers=3,proto=tcp,mountproto=udp)

I decide to ignore the message and continue the update. Everything else went well.
All other packages did not have a problem.
Then I tried to update the package that had the error. Same problem.
rpm -Uvh /mnt/suse/s390x/filesystem-11.1-3.5.3.s390x.rpm
Preparing… ########################################### [100%]
1:filesystem ########################################### [100%]
error: unpacking of archive failed on file /mnt: cpio: chown failed - Read-only file system

Did you try touching a file in that directory as well, preferably as ‘root’?

touch /mnt/test-`date +%s`

If you get an error back, maybe that helps. If not, are there any other
filesystems mounted readonly? nfs has a concept of “squashing” root
privileges to avoid Bad Things ™ from happening, though I’d expect a
regular permissions error instead of a mount error in that case.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Thanks everyone!! I was able to resolve this issue. :smiley:
The package filesystem-11.1-3.5.3.s390x.rpm is to set all the permissions for the directories. Since I mounted the repository on /mnt it would not set the permissions. I created a new directory and mounted the repository there. I was then able to update this package.
rpm -Uvh /repro/suse/s390x/filesystem-11.1-3.5.3.s390x.rpm
Preparing… ########################################### [100%]
1:filesystem ########################################### [100%]

Ah, makes sense. Thank-you for posting back your results.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…