# zypper update fails

**URL:** <https://forums.suse.com/t/zypper-update-fails/27100>\
**Category:** SLES Updates\
**Created:** [June 2, 2015, 6:01pm UTC](https://forums.suse.com/t/zypper-update-fails/27100 "2015-06-02T18:01:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikenash](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mikenash](https://forums.suse.com/u/mikenash)\
**Post date:** [June 2, 2015, 6:01pm UTC](https://forums.suse.com/t/zypper-update-fails/27100/1 "2015-06-02T18:01:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 2, 2015, 6:11pm UTC](https://forums.suse.com/t/zypper-update-fails/27100/2 "2015-06-02T18:11:51Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![mikenash](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mikenash](https://forums.suse.com/u/mikenash)\
**Post date:** [June 2, 2015, 8:59pm UTC](https://forums.suse.com/t/zypper-update-fails/27100/3 "2015-06-02T20:59:58Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![mikenash](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mikenash](https://forums.suse.com/u/mikenash)\
**Post date:** [June 2, 2015, 11:21pm UTC](https://forums.suse.com/t/zypper-update-fails/27100/4 "2015-06-02T23:21:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 2, 2015, 11:43pm UTC](https://forums.suse.com/t/zypper-update-fails/27100/5 "2015-06-02T23:43:14Z")

</div>

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

```auto
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…

---

<div class="post-metadata">

**Author:** ![mikenash](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mikenash](https://forums.suse.com/u/mikenash)\
**Post date:** [June 3, 2015, 12:13am UTC](https://forums.suse.com/t/zypper-update-fails/27100/6 "2015-06-03T00:13:31Z")

</div>

Thanks everyone!! I was able to resolve this issue. 😃  
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%]

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 3, 2015, 12:45am UTC](https://forums.suse.com/t/zypper-update-fails/27100/7 "2015-06-03T00:45:28Z")

</div>

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…
