Rpm-ostree fails update when running %post scripts

I’ve been running into the following error when running rpm-ostree update on F34 Silverblue. It looks similar to the issue users were running into with libsolv a few months ago, but I’m using a newer version of rpm-ostree. Is there a workaround for this? Alternatively, is there a way to disable the %post scripts for the given package? It’s not something that I expect to need to update, and if it is I’ll probably have to do it manually.

$ sudo rpm-ostree update
2 metadata, 0 content objects fetched; 788 B transferred in 1 seconds; 0 bytes content written
Checking out tree 14a30ea... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2021-02-23T00:49:00Z solvables: 4
rpm-md repo 'updates' (cached); generated: 2021-10-10T23:30:23Z solvables: 28153
rpm-md repo 'fedora' (cached); generated: 2021-04-23T10:47:57Z solvables: 63586
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2021-10-05T12:30:58Z solvables: 168
rpm-md repo 'rpmfusion-free' (cached); generated: 2021-04-25T18:10:08Z solvables: 516
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2021-10-05T13:10:40Z solvables: 56
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2021-04-25T18:36:02Z solvables: 213
rpm-md repo 'updates-archive' (cached); generated: 2021-10-07T19:28:13Z solvables: 36901
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
error: Running %post for redhat-internal-cert-install: bwrap(/bin/sh): Child process stopped by signal 0; run `journalctl -t 'rpm-ostree(redhat-internal-cert-install.post)'` for more information

journalctl output:

$ journalctl -t 'rpm-ostree(redhat-internal-cert-install.post)'
-- Journal begins at Tue 2021-08-31 11:10:55 EDT, ends at Mon 2021-10-11 12:46:12 EDT. --
-- No entries --

rpm-ostree version:

$ rpm-ostree --version
rpm-ostree:
 Version: '2021.7'
 Git: 42de93d1051765dd2973445cb566395f95ed5412
 Features:
  - compose
  - rust
  - fedora-integration

You can workaround that by noting what packages you have overlayed, then doing a reset, updating and then re-overlaying them. I would recommend extracting the configuration and certs from this package and installing them manually in /etc (that’s what I personally do as they won’t get updated with the RPM anyway).

1 Like

That worked, thank you

1 Like