Fails to complete akmod-nvidia build during update

Unable to complete an regular upgrade. Have nvidia drivers installed and have been working fine previously, but now it nvida fails to build in rpm-ostree “post scripts”.

Issue started after Feb 8th update. In the past when I have seen nvidia build errors, I wait a couple days for other dependencies to update, and then proceed without issue. However, this time is different considering the dependencies required appear to be already installed. So, I am not immediately sure what the issue is.

$ sudo rpm-ostree upgrade

note: automatic updates (stage) are enabled
2 metadata, 0 content objects fetched; 788 B transferred in 1 seconds; 0 bytes content written
Checking out tree ef45a1f... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora rpmfusion-nonfree-nvidia-driver updates-archive
Updating metadata for 'fedora-cisco-openh264'... done
rpm-md repo 'fedora-cisco-openh264'; generated: 2020-08-25T19:10:34Z
Updating metadata for 'updates'... done
rpm-md repo 'updates'; generated: 2021-02-22T00:55:10Z
Updating metadata for 'fedora'... done
rpm-md repo 'fedora'; generated: 2020-10-19T23:27:19Z
Updating metadata for 'rpmfusion-nonfree-nvidia-driver'... done
rpm-md repo 'rpmfusion-nonfree-nvidia-driver'; generated: 2021-02-11T16:17:16Z
Updating metadata for 'updates-archive'... done
rpm-md repo 'updates-archive'; generated: 2021-02-19T01:43:02Z
Importing rpm-md... done
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
error: Running %post for akmod-nvidia: Executing bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(akmod-nvidia.post)'` for more information

journalctl -t ‘rpm-ostree(akmod-nvidia.post)’ output…

...
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12084]: Building /usr/src/akmods/nvidia-kmod-460.39-1.fc33.src.rpm for kernel 5.10.16-200.fc33.x86_64
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: Found bdb Packages database while attempting sqlite backend: using bdb backend.
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x15: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x17: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x18: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x19: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1a: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1b: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1c: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1d: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1e: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x1f: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x20: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x21: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x22: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x23: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x24: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x25: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x26: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x27: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: rpmdb: BDB2053 Freeing read locks for locker 0x28: 2177/140066650498624
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: user mockbuild does not exist - using root
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: group mock does not exist - using root
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: user mockbuild does not exist - using root
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: warning: group mock does not exist - using root
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: Installing /usr/src/akmods/nvidia-kmod-460.39-1.fc33.src.rpm
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: Building target platforms: x86_64
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: Building for target x86_64
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: setting SOURCE_DATE_EPOCH=1611619200
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]: error: Failed build dependencies:
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]:         /usr/bin/kmodtool is needed by nvidia-kmod-3:460.39-1.fc33.x86_64
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]:         gcc is needed by nvidia-kmod-3:460.39-1.fc33.x86_64
Feb 24 07:51:56 ble1-lx rpm-ostree(akmod-nvidia.post)[12143]:         xorg-x11-drv-nvidia-kmodsrc >= 3:460.39-1 is needed by nvidia-kmod-3:460.39-1.fc33.x86_64

Dependencies are already installed…

$ rpm -qa | grep xorg-x11-drv-nvidia-kmodsrc
xorg-x11-drv-nvidia-kmodsrc-460.39-1.fc33.x86_64

$ rpm -qa | grep gcc
libgcc-10.2.1-9.fc33.x86_64
gcc-10.2.1-9.fc33.x86_64

$ rpm -qa | grep kmodtool
kmodtool-1-41.fc33.noarch

Other info…

$ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
● ostree://fedora:fedora/33/x86_64/silverblue
                   Version: 33.20210208.0 (2021-02-08T00:58:46Z)
                BaseCommit: 655b20930843360a5945a2711d...
              GPGSignature: Valid signature by 963A2BEB02009608FE...
           LayeredPackages: fedora-workstation-repositories kmod-nvidia oddjob oddjob-mkhomedir samba-common-tools xorg-x11-drv-nvidia

...

If I cant find what the “real” problem is, I suspect Ill just uninstall nvidia, do the upgrade, and reinstall nvidia. But it would be nice to understand the issue.

You don’t require sudo privileges to upgrade/update rpm-ostree, I never use sudo with it. Although, that doesn’t answer your question really, and the only nvidia card I have around is so old nvidia doesn’t have drivers for it the last time I checked, so sorry I can’t test this.

Yup, i usually don’t use sudo either. But I had attempted with sudo “just incase” during the troubleshooting workflow, and left that in my output to make it clear that I was an admin-level user on this machine. :+1:

Regarding the issue…
I ended up resetting layers, did upgrade, and re-added layered packages. It was pretty quick and painless, but it would be nice to understand what was the underlying issue if anyone is else is familiar with it.

resolved by now

2 Likes