Can't update because of read only file system

I tried running sudo zypper update, and it gave me this error:

Installation of emacs-info-27.2-358.13.noarch failed:
Error: Subprocess failed. Error: RPM failed: error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Read-only file system)

Running sudo btrf filesystem usage / gives me this output:

Overall:
    Device size:         468.45GiB
    Device allocated:         121.05GiB
    Device unallocated:         347.40GiB
    Device missing:             0.00B
    Used:             102.72GiB
    Free (estimated):         364.88GiB    (min: 364.88GiB)
    Free (statfs, df):         364.88GiB
    Data ratio:                  1.00
    Metadata ratio:              1.00
    Global reserve:         194.75MiB    (used: 0.00B)
    Multiple profiles:                no

Data,single: Size:119.01GiB, Used:101.53GiB (85.31%)
   /dev/nvme0n1p3     119.01GiB

Metadata,single: Size:2.01GiB, Used:1.20GiB (59.63%)
   /dev/nvme0n1p3       2.01GiB

System,single: Size:32.00MiB, Used:16.00KiB (0.05%)
   /dev/nvme0n1p3      32.00MiB

Unallocated:
   /dev/nvme0n1p3     347.40GiB

If anybody could help me fix the problem or understand what’s going on that would be great, thanks!

Hi and welcome to the Forum :slight_smile:
The only way to update Tumbleweed is via zypper dup, not zypper up…

Can you show your filesystem status and repositories as the latest emacs-info in Tumbleweed is version 27.2-1.2 so your pulling from a non standard repository…


mount | grep /dev/nvme0n1p3
zypper lr -d

Running the mount | grep /dev/nvme0n1p3 command gives this output:

/dev/nvme0n1p3 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=750,subvol=/@/.snapshots/309/snapshot)
/dev/nvme0n1p3 on /.snapshots type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/@/.snapshots)
/dev/nvme0n1p3 on /boot/grub2/i386-pc type btrfs (rw,relatime,ssd,space_cache,subvolid=265,subvol=/@/boot/grub2/i386-pc)
/dev/nvme0n1p3 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,ssd,space_cache,subvolid=264,subvol=/@/boot/grub2/x86_64-efi)
/dev/nvme0n1p3 on /opt type btrfs (rw,relatime,ssd,space_cache,subvolid=262,subvol=/@/opt)
/dev/nvme0n1p3 on /home type btrfs (rw,relatime,ssd,space_cache,subvolid=263,subvol=/@/home)
/dev/nvme0n1p3 on /root type btrfs (rw,relatime,ssd,space_cache,subvolid=261,subvol=/@/root)
/dev/nvme0n1p3 on /srv type btrfs (rw,relatime,ssd,space_cache,subvolid=260,subvol=/@/srv)
/dev/nvme0n1p3 on /tmp type btrfs (rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/tmp)
/dev/nvme0n1p3 on /usr/local type btrfs (rw,relatime,ssd,space_cache,subvolid=258,subvol=/@/usr/local)
/dev/nvme0n1p3 on /var type btrfs (rw,relatime,ssd,space_cache,subvolid=257,subvol=/@/var)


And the zypper lr -d gives this:

#  | Alias                                | Name                                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                           | Service
---+--------------------------------------+------------------------------------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------------------------------+--------
 1 | http-ftp.gwdg.de-95d98fd5            | Packman Repository                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Tumbleweed/                                | 
 2 | http-opensuse-guide.org-f9c78c2c     | libdvdcss repository                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/                                           | 
 3 | https-download.opensuse.org-30e77c22 | home:jscombs91                                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/jscombs91/openSUSE_Tumbleweed/               | 
 4 | https-download.opensuse.org-3bf2b4ac | home:sleep_walker:aggregate                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/sleep_walker:/aggregate/openSUSE_Tumbleweed/ | 
 5 | https-download.opensuse.org-59bbe637 | home:bobbie424242                                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/bobbie424242/openSUSE_Tumbleweed/            | 
 6 | https-download.opensuse.org-70cb5ab8 | home:zypper-mou:Termite                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/zypper-mou:/Termite/openSUSE_Tumbleweed/     | 
 7 | https-download.opensuse.org-7b543361 | home:rubo:pfetch                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/rubo:/pfetch/openSUSE_Tumbleweed/            | 
 8 | https-download.opensuse.org-bc685309 | openSUSE:Factory:NonFree                             | No      | ----      | ----    |   99     | NONE   | https://download.opensuse.org/repositories/openSUSE:/Factory:/NonFree/standard/               | 
 9 | https-download.opensuse.org-cf584fcd | openSUSE:Factory                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/openSUSE:/Factory/snapshot/                        | 
10 | https-download.opensuse.org-e945ce90 | openSUSE:Tumbleweed                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/                     | 
11 | packman                              | packman                                              | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/                          | 
12 | repo-debug                           | repo-debug                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/debug                                            | 
13 | repo-non-oss                         | non-oss                                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/non-oss                                          | 
14 | repo-oss                             | oss                                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/oss                                              | 
15 | repo-update                          | repo-update                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                               | 
16 | utilities                            | all the small tools for the shell (openSUSE_Factory) | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/utilities/openSUSE_Factory/                        | 


Thanks!

Hi
OK, so filesystem is ok, just the process lock…

So your running zypper dup as root user?

yeah, no matter if it’s sudo zypper dup or sudo zypper update, I get the same error:

Error: Subprocess failed. Error: RPM failed: error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Read-only file system)


I’m running it as a normal user, but with sudo, if that’s what your asking.

Provide full outptut of dmesg (upload to https://susepaste.org).

Here it is!
https://susepaste.org/27437071

There is no usual messages associated with filesystem going read-only. Could you show

sudo touch /test
sudo rm /test
ls -l /usr/lib/sysimage/rpm
ls -la /usr/lib/sysimage/rpm/
sudo touch /usr/lib/sysimage/rpm/test
sudo rm /usr/lib/sysimage/rpm/test

yep, here’s the output of all the commands:
https://susepaste.org/53994879