PDA

View Full Version : zypper update fails



mikenash
02-Jun-2015, 16:01
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.

ab
02-Jun-2015, 16:11
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...

mikenash
02-Jun-2015, 18:59
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,mountpro to=udp)

mikenash
02-Jun-2015, 21:21
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

ab
02-Jun-2015, 21:43
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 (tm) 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...

mikenash
02-Jun-2015, 22:13
Thanks everyone!! I was able to resolve this issue. :D
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%]

ab
02-Jun-2015, 22:45
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...