rpm-ostree
rpm-ostree copied to clipboard
(rpmfusion) Nvidia driver fails with error: Running %post for akmod-nvidia
1. Links to other posts of this issue
Initial discussion with @travier and @jbirch-atlassian on Fedora Silverblue Github issue #286 suggested a combination of contributing systems couldn't be ruled out, and that some exploration between them would likely be needed.
Therefore I'm reposting the issue on the following issue/bug trackers:
- Fedora Silverblue Github issue #286 (original issue post)
- Rpm-Ostree Github issue #3706
- Rpmfusion Bugzilla 6317
2. Contents
-
Links to other posts of this issue
-
Contents
-
Description of the issue
-
To Reproduce
-
Expected behavior
-
Screenshots / Terminal Output
- Fresh Fedora 36 Silverblue install with updates done
- Install a layered package, eg; htop
- Check rpm-ostree status
- Remove HTOP again
- Add rpmfusion repositories (successful)
- Attempt Nvidia driver install (Fails with Error)
- Output of journalctl -t 'rpm-ostree(akmod-nvidia.post)'
- Run our dissable-threads.sh script
- Attempt Nvidia driver install second time (success)
- Reboot and check status
- Try to install HTOP again; without running the disable-threads.sh script (Fails with error)
- Output from journalctl -t 'rpm-ostree(akmod-nvidia.post)'
- Try to install HTOP again; AFTER running the disable-threads.sh script (succeeds)
- Check rpm-ostree status
-
OS version: (Host System Details)
-
Would you like to work on this issue?
3. Description of issue
I have two workstations with Fedora 36 Silverblue. One of them has a 6 core, 12 thread Intel cpu, and the other, a 16 core 32 thread AMD cpu. Both use Nvidia graphics cards.
On the 16 core machine only, while attempting to rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
drivers, and on all subsequence uses of rpm-ostree install
with any other package, the install fails with an error. Before attempting to install nvidia drivers, other packages installed with rpm-ostree install package
succeed without errors.
I can work around the error (and stop it from showing) by using a short bash script to disable some of the CPU cores on the 16 core computer. Imust run the script before every use of rpm-ostree install
. The error never occurs when carrying out the same steps on the 6 core computer. The only difference being, that computer has an older graphics card, and so must rpm-ostree install akmod-nvidia-470xx xorg-x11-drv-nvidia-470xx-cuda
instead.
4. To Reproduce
Please describe the steps needed to reproduce the bug:
- Use a 16 Core CPU (mine is a 16 core AMD Threadripper 1950x, GPU is a GTX 1080 Ti). Try other high core count CPUs if a 16 isn't available.
- Fresh install of Fedora 36 Silverblue.
- Install all available updates
rpm-ostree update
- Try installing a layered package with
rpm-ostree install htop
(htop as an example) - Note the install should finish without issue. You will be prompted to reboot with
systemctl reboot
. - Add rpm-fusion repository
sudo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
. Detailed instructions at https://rpmfusion.org/Configuration - Install Nvidia drivers
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
- Notice the install ends with an error message (see screenshots section for full terminal output and subsequent journal output of this error)
error: Running %post for akmod-nvidia: bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(akmod-nvidia.post)'` for more information
- Try disabling some CPU cores with the following script. I found the script over at Fedora Discussion from a Silverblue 31 issue. https://discussion.fedoraproject.org/t/fedora-silverblue-31-installing-nvidia-drivers-fails/14160
#!/bin/sh
do_enable="$1"
cpu_from="$2"
cpu_to="$3"
flag=0
if [ "$do_enable" = true ]; then
flag=1
elif [ ! "$do_enable" = false ]; then
echo "do_enable must be bool. It's value is $do_enable."
exit 1
fi
for ((i="$cpu_from"; i<="$cpu_to"; i++)); do
echo "$flag" > /sys/devices/system/cpu/cpu"$i"/online
done
- Paste the script into a shell file called
disable-threads.sh
and make it executablechmod +x disable-threads.sh
. - Run the script from the terminal. For a 32 thread CPU, you can switch off all but 8 threads by running with the following arguments
sudo ./dissable-threads.sh false 9 31
. (confirm in System Monitor Resources tab) - Repeat the attempt to install with
rpm-ostree install package
and it should complete without the error. - Don't forget (assuming your nvidia install was successful) to run the final command from rpmfusion to load the correct kernel
sudo rpm-ostree kargs --append=rd.driver.blacklist=nouveau --append=modprobe.blacklist=nouveau --append=nvidia-drm.modeset=1
- Reboot to complete the installation and all your threads should be active again.
5. Expected behavior
No error should interrupt the nvidia driver install on the 16 core computer. All subsequent uses of rpm-ostree install package
should also not fail with the same error. The behaviour of the 16 core computer should match the 6 core computer, where the error never appears.
6. Screenshots / Terminal Output
6.1 Fresh Fedora 36 Silverblue install with updates done
[user@fedora ~]$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
Commit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
6.2 Install a layered package, eg; htop
[user@fedora ~]$ rpm-ostree install htop
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Will download: 1 package (184.3 kB)
Downloading from 'updates'... done
Importing packages... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Added:
htop-3.2.0-1.fc36.x86_64
Changes queued for next boot. Run "systemctl reboot" to start a reboot
6.3 Check rpm-ostree status
first; systemctl reboot
State: idle
Deployments:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: htop
fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
Commit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
6.4 Remove HTOP again
rpm-ostree uninstall htop
reboot and check it's gone:
[user@fedora ~]$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
Commit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: htop
Htop successfully removed.
6.5 Add rpmfusion repositories (successful)
Downloading https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-36.noarch.rpm...done
Downloading https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-36.noarch.rpm...done
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Added:
rpmfusion-free-release-36-1.noarch
rpmfusion-nonfree-release-36-1.noarch
Changes queued for next boot. Run "systemctl reboot" to start a reboot
6.6 Attempt Nvidia driver install (Fails with Error)
[user@fedora ~]$ sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
[sudo] password for sam:
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Updating metadata for 'rpmfusion-free-updates'... done
Updating metadata for 'rpmfusion-free'... done
Updating metadata for 'rpmfusion-nonfree-updates'... done
Updating metadata for 'rpmfusion-nonfree'... done
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'rpmfusion-free-updates'; generated: 2022-05-18T15:49:28Z solvables: 10
rpm-md repo 'rpmfusion-free'; generated: 2022-05-04T04:48:11Z solvables: 506
rpm-md repo 'rpmfusion-nonfree-updates'; generated: 2022-05-18T16:10:50Z solvables: 2
rpm-md repo 'rpmfusion-nonfree'; generated: 2022-05-04T05:11:55Z solvables: 225
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Will download: 149 packages (389.5 MB)
Downloading from 'updates'... done
Downloading from 'fedora'... done
Downloading from 'rpmfusion-nonfree'... done
Importing packages... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
error: Running %post for akmod-nvidia: bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(akmod-nvidia.post)'` for more information
6.7 Output of journalctl -t 'rpm-ostree(akmod-nvidia.post)'
[user@fedora ~]$ journalctl -t 'rpm-ostree(akmod-nvidia.post)'
May 22 00:49:20 fedora rpm-ostree(akmod-nvidia.post)[3795]: Building /usr/src/akmods/nvidia-kmod-510.68.02-1.fc36.src.rpm for kernel 5.17.8-300.fc36.x86_64
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: { echo ; echo '/tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5.17.8-300.f>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: make[1]: *** [Makefile:1841: /tmp/akmodsbuild.A8nzpiPo/BUILD/nvidia-kmod-510.68.02/_kmod_build_5>
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: make[1]: Leaving directory '/usr/src/kernels/5.17.8-300.fc36.x86_64'
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: make: *** [Makefile:82: modules] Error 2
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: error: Bad exit status from /var/tmp/rpm-tmp.J15NC9 (%build)
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: RPM build errors:
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: Unable to open sqlite database /usr/share/rpm/rpmdb.sqlite: unable to open database file
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: cannot open Packages index using sqlite - Operation not permitted (1)
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: cannot open Packages database in /usr/share/rpm
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: user mockbuild does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: group mock does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: user mockbuild does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: group mock does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: user mockbuild does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: group mock does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: user mockbuild does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: group mock does not exist - using root
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: Unable to open sqlite database /usr/share/rpm/rpmdb.sqlite: unable to open database file
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: cannot open Packages index using sqlite - Operation not permitted (1)
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: cannot open Packages database in /usr/share/rpm
May 22 00:49:44 fedora rpm-ostree(akmod-nvidia.post)[19865]: Bad exit status from /var/tmp/rpm-tmp.J15NC9 (%build)
6.8 Run our dissable-threads.sh script
sudo ./dissable-threads.sh false 9 31
6.9 Attempt Nvidia driver install second time (success)
[user@fedora ~]$ sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2022-05-18T15:49:28Z solvables: 10
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-05-04T04:48:11Z solvables: 506
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2022-05-18T16:10:50Z solvables: 2
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-05-04T05:11:55Z solvables: 225
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Freed: 45.9 MB (pkgcache branches: 0)
Added:
akmod-nvidia-3:510.68.02-1.fc36.x86_64
akmods-0.5.7-8.fc36.noarch
annobin-docs-10.71-1.fc36.noarch
annobin-plugin-gcc-10.71-1.fc36.x86_64
ansible-srpm-macros-1-5.fc36.noarch
binutils-2.37-27.fc36.x86_64
binutils-gold-2.37-27.fc36.x86_64
bison-3.8.2-2.fc36.x86_64
debugedit-5.0-3.fc36.x86_64
dwz-0.14-2.fc35.x86_64
ed-1.14.2-12.fc36.x86_64
efi-srpm-macros-5-5.fc36.noarch
egl-gbm-1.1.0-2.fc36.x86_64
egl-wayland-1.1.9-4.fc36.x86_64
elfutils-0.187-4.fc36.x86_64
elfutils-libelf-devel-0.187-4.fc36.x86_64
fakeroot-1.28-2.fc36.x86_64
fakeroot-libs-1.28-2.fc36.x86_64
flex-2.6.4-10.fc36.x86_64
fonts-srpm-macros-1:2.0.5-7.fc36.noarch
fpc-srpm-macros-1.3-5.fc36.noarch
gc-8.0.6-2.fc36.x86_64
gcc-12.1.1-1.fc36.x86_64
gcc-plugin-annobin-12.1.1-1.fc36.x86_64
gdb-minimal-12.1-1.fc36.x86_64
ghc-srpm-macros-1.5.0-6.fc36.noarch
glibc-devel-2.35-6.fc36.x86_64
glibc-headers-x86-2.35-6.fc36.noarch
gnat-srpm-macros-4-15.fc36.noarch
go-srpm-macros-3.0.15-1.fc36.noarch
guile22-2.2.7-5.fc36.x86_64
http-parser-2.9.4-6.fc36.x86_64
info-6.8-3.fc36.x86_64
kernel-devel-5.17.8-300.fc36.x86_64
kernel-devel-matched-5.17.8-300.fc36.x86_64
kernel-headers-5.17.6-300.fc36.x86_64
kernel-srpm-macros-1.0-14.fc36.noarch
kmodtool-1.1-3.fc36.noarch
koji-1.28.1-1.fc36.noarch
libcomps-0.1.18-2.fc36.x86_64
libgit2-1.3.0-2.fc36.x86_64
libssh2-1.10.0-4.fc36.x86_64
libvdpau-1.5-1.fc36.x86_64
libxcrypt-devel-4.4.28-1.fc36.x86_64
lua-srpm-macros-1-6.fc36.noarch
m4-1.4.19-3.fc36.x86_64
make-1:4.3-7.fc36.x86_64
nim-srpm-macros-3-6.fc36.noarch
nvidia-persistenced-3:510.68.02-1.fc36.x86_64
nvidia-settings-3:510.68.02-1.fc36.x86_64
ocaml-srpm-macros-6-6.fc36.noarch
ocl-icd-2.3.1-1.fc36.x86_64
openblas-srpm-macros-2-11.fc36.noarch
opencl-filesystem-1.0-15.fc36.noarch
openssl-1:3.0.2-5.fc36.x86_64
openssl-devel-1:3.0.2-5.fc36.x86_64
package-notes-srpm-macros-0.4-14.fc36.noarch
patch-2.7.6-16.fc36.x86_64
perl-AutoLoader-5.74-486.fc36.noarch
perl-B-1.82-486.fc36.x86_64
perl-Carp-1.52-479.fc36.noarch
perl-Class-Struct-0.66-486.fc36.noarch
perl-Data-Dumper-2.183-3.fc36.x86_64
perl-Digest-1.20-2.fc36.noarch
perl-Digest-MD5-2.58-479.fc36.x86_64
perl-DynaLoader-1.50-486.fc36.x86_64
perl-Encode-4:3.17-485.fc36.x86_64
perl-Errno-1.33-486.fc36.x86_64
perl-Exporter-5.76-480.fc36.noarch
perl-Fcntl-1.14-486.fc36.x86_64
perl-File-Basename-2.85-486.fc36.noarch
perl-File-Path-2.18-479.fc36.noarch
perl-File-Temp-1:0.231.100-479.fc36.noarch
perl-File-stat-1.09-486.fc36.noarch
perl-FileHandle-2.03-486.fc36.noarch
perl-Getopt-Long-1:2.52-479.fc36.noarch
perl-Getopt-Std-1.13-486.fc36.noarch
perl-HTTP-Tiny-0.080-2.fc36.noarch
perl-IO-1.46-486.fc36.x86_64
perl-IO-Socket-IP-0.41-480.fc36.noarch
perl-IO-Socket-SSL-2.074-2.fc36.noarch
perl-IPC-Open3-1.21-486.fc36.noarch
perl-MIME-Base64-3.16-479.fc36.x86_64
perl-Mozilla-CA-20211001-2.fc36.noarch
perl-NDBM_File-1.15-486.fc36.x86_64
perl-Net-SSLeay-1.92-2.fc36.x86_64
perl-POSIX-1.97-486.fc36.x86_64
perl-PathTools-3.80-479.fc36.x86_64
perl-Pod-Escapes-1:1.07-479.fc36.noarch
perl-Pod-Perldoc-3.28.01-480.fc36.noarch
perl-Pod-Simple-1:3.43-3.fc36.noarch
perl-Pod-Usage-4:2.01-479.fc36.noarch
perl-Scalar-List-Utils-5:1.62-464.fc36.x86_64
perl-SelectSaver-1.02-486.fc36.noarch
perl-Socket-4:2.033-1.fc36.x86_64
perl-Storable-1:3.25-2.fc36.x86_64
perl-Symbol-1.09-486.fc36.noarch
perl-Term-ANSIColor-5.01-480.fc36.noarch
perl-Term-Cap-1.17-479.fc36.noarch
perl-Text-ParseWords-3.31-1.fc36.noarch
perl-Text-Tabs+Wrap-2021.0814-2.fc36.noarch
perl-Time-Local-2:1.300-479.fc36.noarch
perl-URI-5.10-1.fc36.noarch
perl-base-2.27-486.fc36.noarch
perl-constant-1.33-480.fc36.noarch
perl-if-0.60.900-486.fc36.noarch
perl-interpreter-4:5.34.1-486.fc36.x86_64
perl-libnet-3.13-480.fc36.noarch
perl-libs-4:5.34.1-486.fc36.x86_64
perl-mro-1.25-486.fc36.x86_64
perl-overload-1.33-486.fc36.noarch
perl-overloading-0.02-486.fc36.noarch
perl-parent-1:0.238-479.fc36.noarch
perl-podlators-1:4.14-479.fc36.noarch
perl-srpm-macros-1-43.fc36.noarch
perl-subs-1.04-486.fc36.noarch
perl-vars-1.05-486.fc36.noarch
python-srpm-macros-3.10-17.fc36.noarch
python3-argcomplete-2.0.0-2.fc36.noarch
python3-babel-2.9.1-5.fc36.noarch
python3-cffi-1.15.0-5.fc36.x86_64
python3-dateutil-1:2.8.1-8.fc36.noarch
python3-decorator-5.1.1-2.fc36.noarch
python3-gssapi-1.7.2-2.fc36.x86_64
python3-koji-1.28.1-1.fc36.noarch
python3-libcomps-0.1.18-2.fc36.x86_64
python3-ply-3.11-15.fc36.noarch
python3-progressbar2-3.53.2-4.fc36.noarch
python3-pycparser-2.20-6.fc36.noarch
python3-pygit2-1.7.1-3.fc36.x86_64
python3-pytz-2022.1-1.fc36.noarch
python3-requests-gssapi-1.2.3-4.fc36.noarch
python3-rpmautospec-0.2.6-1.fc36.noarch
python3-utils-2.5.6-5.fc36.noarch
qt5-srpm-macros-5.15.3-1.fc36.noarch
redhat-rpm-config-219-1.fc36.noarch
rpm-build-4.17.0-10.fc36.x86_64
rpmautospec-rpm-macros-0.2.6-1.fc36.noarch
rpmdevtools-9.6-1.fc36.noarch
rust-srpm-macros-21-1.fc36.noarch
systemd-rpm-macros-250.3-8.fc36.noarch
xorg-x11-drv-nvidia-3:510.68.02-1.fc36.x86_64
xorg-x11-drv-nvidia-cuda-3:510.68.02-1.fc36.x86_64
xorg-x11-drv-nvidia-cuda-libs-3:510.68.02-1.fc36.x86_64
xorg-x11-drv-nvidia-kmodsrc-3:510.68.02-1.fc36.x86_64
xorg-x11-drv-nvidia-libs-3:510.68.02-1.fc36.x86_64
xorg-x11-drv-nvidia-power-3:510.68.02-1.fc36.x86_64
zlib-devel-1.2.11-31.fc36.x86_64
zstd-1.5.2-1.fc36.x86_64
Changes queued for next boot. Run "systemctl reboot" to start a reboot
6.10 Reboot and check status
systemctl reboot
[user@fedora ~]$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: akmod-nvidia xorg-x11-drv-nvidia-cuda
LocalPackages: rpmfusion-free-release-36-1.noarch rpmfusion-nonfree-release-36-1.noarch
fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LocalPackages: rpmfusion-free-release-36-1.noarch rpmfusion-nonfree-release-36-1.noarch
6.11 Try to install HTOP again; without running the disable-threads.sh script (Fails with error)
[user@fedora ~]$ rpm-ostree install htop
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2022-05-18T15:49:28Z solvables: 10
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-05-04T04:48:11Z solvables: 506
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2022-05-18T16:10:50Z solvables: 2
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-05-04T05:11:55Z solvables: 225
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Will download: 1 package (184.3 kB)
Downloading from 'updates'... done
Importing packages... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
error: Running %post for akmod-nvidia: bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(akmod-nvidia.post)'` for more information
6.12 Output from journalctl -t 'rpm-ostree(akmod-nvidia.post)'
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: RPM build errors:
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: Unable to open sqlite database /usr/share/rpm/rpmdb.sqlite: unable to open database file
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: cannot open Packages index using sqlite - Operation not permitted (1)
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: cannot open Packages database in /usr/share/rpm
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: user mockbuild does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: group mock does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: user mockbuild does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: group mock does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: user mockbuild does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: group mock does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: user mockbuild does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: group mock does not exist - using root
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: Unable to open sqlite database /usr/share/rpm/rpmdb.sqlite: unable to open database file
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: cannot open Packages index using sqlite - Operation not permitted (1)
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: cannot open Packages database in /usr/share/rpm
May 22 00:59:05 fedora rpm-ostree(akmod-nvidia.post)[31690]: Bad exit status from /var/tmp/rpm-tmp.NcNSDa (%build)
May 22 01:00:07 fedora rpm-ostree(akmod-nvidia.post)[32056]: Building /usr/src/akmods/nvidia-kmod-510.68.02-1.fc36.src.rpm for kernel 5.17.8-300.fc36.x86_64
May 22 01:01:44 fedora rpm-ostree(akmod-nvidia.post)[32062]: /tmp/akmods-post.9wQT4n7J/results/kmod-nvidia-5.17.8-300.fc36.x86_64-510.68.02-1.fc36.x86_64.rpm
May 22 01:01:58 fedora rpm-ostree(akmod-nvidia.post)[38899]: /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/twofish-x86_64.ko.xz needs "twofish_setkey": /lib/modules/5.17.8-300.fc36.x86_64/kernel/crypto/twofish_common.>
May 22 01:01:58 fedora rpm-ostree(akmod-nvidia.post)[38899]: /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/twofish-x86_64-3way.ko.xz needs "twofish_dec_blk": /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/>
May 22 01:01:58 fedora rpm-ostree(akmod-nvidia.post)[38899]: /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/twofish-x86_64-3way.ko.xz needs "twofish_setkey": /lib/modules/5.17.8-300.fc36.x86_64/kernel/crypto/twofish_co>
May 22 01:01:58 fedora rpm-ostree(akmod-nvidia.post)[38899]: /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/twofish-avx-x86_64.ko.xz needs "twofish_dec_blk": /lib/modules/5.17.8-300.fc36.x86_64/kernel/arch/x86/crypto/t>
lines 1-74/8539 1%
Journlctl Log continues for approximately 8500 lines listing similar output; `/lib/modules/...kernel...needs... "something": /lib/modules/...
At this point, I have saved a copy of all the log items journalctl -t 'rpm-ostree(akmod-nvidia.post)' > journalctl.txt
.
6.13 Try to install HTOP again; AFTER running the disable-threads.sh script (succeeds)
sudo disable-threads.sh false 9 31
[user@fedora silverblue-houdini-toolbox]$ rpm-ostree install htop
Checking out tree 3d384f5... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree phracek-PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-05-16T00:18:23Z solvables: 1129
rpm-md repo 'updates' (cached); generated: 2022-05-21T01:01:09Z solvables: 9741
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2022-05-18T15:49:28Z solvables: 10
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-05-04T04:48:11Z solvables: 506
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2022-05-18T16:10:50Z solvables: 2
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-05-04T05:11:55Z solvables: 225
rpm-md repo 'phracek-PyCharm' (cached); generated: 2022-05-13T04:23:58Z solvables: 5
rpm-md repo 'google-chrome' (cached); generated: 2022-05-19T17:44:58Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2022-05-13T09:29:28Z solvables: 29
rpm-md repo 'rpmfusion-nonfree-steam' (cached); generated: 2022-02-13T17:48:12Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2022-05-21T02:57:21Z solvables: 8932
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Added:
htop-3.2.0-1.fc36.x86_64
Changes queued for next boot. Run "systemctl reboot" to start a reboot
6.14 Check rpm-ostree status
[user@fedora ~]$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: akmod-nvidia htop xorg-x11-drv-nvidia-cuda
LocalPackages: rpmfusion-free-release-36-1.noarch
rpmfusion-nonfree-release-36-1.noarch
fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: akmod-nvidia xorg-x11-drv-nvidia-cuda
LocalPackages: rpmfusion-free-release-36-1.noarch
rpmfusion-nonfree-release-36-1.noarch
7. OS version: (Host System Details)
[user@fedora ~]$ rpm-ostree status -b
State: idle
BootedDeployment:
● fedora:fedora/36/x86_64/silverblue
Version: 36.20220521.0 (2022-05-21T00:42:36Z)
BaseCommit: 3d384f53a1a46d53a06e9eccc3f52a7a0587cb8147b397298559a59f113a1fed
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: akmod-nvidia code google-chrome-stable kmod-nvidia mozilla-openh264 steam xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda
LocalPackages: rpmfusion-free-release-36-1.noarch rpmfusion-nonfree-release-36-1.noarch
8. Would you like to work on this issue?
No, I don't have the skillset.
I mentioned this in more detail over in https://github.com/fedora-silverblue/issue-tracker/issues/286#issuecomment-1163972288, but I don't believe the fix mentioned by @ivanvorstanenko is related to this bug report, and I don't believe this ticket should be closed.
i get a similar situation as described in 6.11, except i don't have to run the disable_threads script. just running the install command again after the initial failure proceeds with the install. so i have to run the install command twice for everything. luckily i don't use the ostree installer often.