Unable to install nvida 390 driver on coreos because of gcc pakage

I have an old laptop I use as a server (fedora coreos), it has an nvidia gpu (GTK 760M) and i’m trying to install the nvidia 390 driver from rpmfusion.

im useing ucore-nvidia based on the folowing butane file.

variant: fcos
version: 1.4.0
passwd:
  users:
    - name: core
      ssh_authorized_keys:
        - [blank for security reasons]
      password_hash: [same as above]
storage:
  directories:
    - path: /etc/ucore-autorebase
      mode: 0754

  files:
    - path: /etc/hostname
      overwrite: true
      contents:
        inline: strix-server
    - path: /etc/vconsole.conf
      overwrite: true
      contents:
        inline: KEYMAP=be

  links:
    - path: /etc/localtime
      target: ../usr/share/zoneinfo/Europe/Brussels
systemd:
  units:
    - name: ucore-unsigned-autorebase.service
      enabled: true
      contents: |
        [Unit]
        Description=uCore autorebase to unsigned OCI and reboot
        ConditionPathExists=!/etc/ucore-autorebase/unverified
        ConditionPathExists=!/etc/ucore-autorebase/signed
        After=network-online.target
        Wants=network-online.target

        [Service]
        Type=oneshot
        StandardOutput=journal+console
        ExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-unverified-registry:ghcr.io/ublue-os/ucore:stable-nvidia
        ExecStart=/usr/bin/touch /etc/ucore-autorebase/unverified
        ExecStart=/usr/bin/systemctl disable ucore-unsigned-autorebase.service
        ExecStart=/usr/bin/systemctl reboot

        [Install]
        WantedBy=multi-user.target

    - name: ucore-signed-autorebase.service
      enabled: true
      contents: |
        [Unit]
        Description=uCore autorebase to signed OCI and reboot
        ConditionPathExists=/etc/ucore-autorebase/unverified
        ConditionPathExists=!/etc/ucore-autorebase/verified
        After=network-online.target
        Wants=network-online.target

        [Service]
        Type=oneshot
        StandardOutput=journal+console
        ExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-image-signed:docker://ghcr.io/ublue-os/ucore:stable-nvidia
        ExecStart=/usr/bin/touch /etc/ucore-autorebase/signed
        ExecStart=/usr/bin/systemctl disable ucore-signed-autorebase.service
        ExecStart=/usr/bin/systemctl reboot

        [Install]
        WantedBy=multi-user.target

It installed succesfully, but as i knew the nvidia 550 driver dous not suport my gpu i need the 390 one.
I installed rpmfusion nonfree and tried installing the akmod-nvidia-390xx and it gives the folowing error:

Checking out tree 111d93f... done
Enabled rpm-md repositories: fedora-nvidia updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree tailscale-stable copr:copr.fedorainfracloud.org:ublue-os:ucore updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-nvidia' (cached); generated: 2024-04-27T12:34:34Z solvables: 135
rpm-md repo 'updates' (cached); generated: 2024-05-17T01:03:53Z solvables: 13772
rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-05-16T20:58:05Z solvables: 81
rpm-md repo 'rpmfusion-free' (cached); generated: 2024-04-20T12:11:51Z solvables: 422
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-05-16T21:18:42Z solvables: 55
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2024-04-20T12:18:23Z solvables: 194
rpm-md repo 'tailscale-stable' (cached); generated: 2024-05-16T18:56:42Z solvables: 101
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:ucore' (cached); generated: 2024-04-01T03:49:38Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2024-05-17T01:23:05Z solvables: 12493
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: package akmods-0.5.8-8.fc40.noarch from fedora requires gcc, but none of the providers can be installed
  - package gcc-14.0.1-0.15.fc40.x86_64 from fedora requires libgomp = 14.0.1-0.15.fc40, but none of the providers can be installed
  - package gcc-14.1.1-1.fc40.x86_64 from updates requires libgcc >= 14.1.1-1.fc40, but none of the providers can be installed
  - package gcc-14.1.1-1.fc40.x86_64 from updates-archive requires libgcc >= 14.1.1-1.fc40, but none of the providers can be installed
  - libgomp-14.0.1-0.15.fc40.i686 from fedora  does not belong to a distupgrade repository
  - libgcc-14.1.1-1.fc40.i686 from updates  does not belong to a distupgrade repository
  - cannot install both libgomp-14.0.1-0.15.fc40.x86_64 from fedora and libgomp-14.1.1-1.fc40.x86_64 from @System
  - cannot install both libgcc-14.1.1-1.fc40.x86_64 from updates and libgcc-14.0.1-0.15.fc40.x86_64 from @System
  - cannot install both libgcc-14.1.1-1.fc40.x86_64 from updates-archive and libgcc-14.0.1-0.15.fc40.x86_64 from @System
  - package akmod-nvidia-390xx-3:390.157-9.fc40.x86_64 from rpmfusion-nonfree-updates requires akmods, but none of the providers can be installed
  - conflicting requests

How do i fix this error?
some system information, its an old gigabite laptop with no screen:

GPU: GeForce GTX 760M
CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz (4 threads)
RAM: 16GB

Im new to immutable systems and rpm-ostree not to linux, keep this in mind please.

Probably the same as Cannot upgrade to 40 base image - #2 by dustymabe

Either try to use testing or try again around next Tuesday when the next stable release will be out.

1 Like

According to nvidia that gpu should be supported by the 470xx driver so you might try that instead of the 390xx driver.

2 Likes

Ive seen this, the nvidia driver page recommends the 390xx driver.
When i look at compatible gpus on the 470xx driver i dont see 700M series.
But il still try

My mistake.
Nvidia shows the GTX 760 as supported by the 470 driver but the GTX 760M as supported by the 419 driver. I was looking at the wrong data. The 390xx driver may be the proper one.

I did a rebase with the folowing command to testing.
sudo rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ublue-os/ucore:testing-nvidia

it still gave the same error:

Checking out tree 4cde812... done
Enabled rpm-md repositories: fedora-nvidia updates-testing fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree tailscale-stable copr:copr.fedorainfracloud.org:ublue-os:ucore updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-nvidia' (cached); generated: 2024-04-27T12:34:34Z solvables: 135
rpm-md repo 'updates-testing' (cached); generated: 2024-05-19T02:57:13Z solvables: 12931
rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-05-16T20:58:05Z solvables: 81
rpm-md repo 'rpmfusion-free' (cached); generated: 2024-04-20T12:11:51Z solvables: 422
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-05-16T21:18:42Z solvables: 55
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2024-04-20T12:18:23Z solvables: 194
rpm-md repo 'tailscale-stable' (cached); generated: 2024-05-16T21:03:35Z solvables: 101
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:ucore' (cached); generated: 2024-04-01T03:49:38Z solvables: 2
rpm-md repo 'updates-archive' (cached); generated: 2024-05-18T01:30:45Z solvables: 12645
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: package akmods-0.5.8-8.fc40.noarch from fedora requires gcc, but none of the providers can be installed
  - package gcc-14.0.1-0.15.fc40.x86_64 from updates-testing requires libgomp = 14.0.1-0.15.fc40, but none of the providers can be installed
  - package gcc-14.0.1-0.15.fc40.x86_64 from fedora requires libgomp = 14.0.1-0.15.fc40, but none of the providers can be installed
  - libgomp-14.0.1-0.15.fc40.i686 from fedora  does not belong to a distupgrade repository
  - libgomp-14.0.1-0.15.fc40.i686 from updates-testing  does not belong to a distupgrade repository
  - package gcc-14.1.1-1.fc40.x86_64 from updates-archive requires libgcc >= 14.1.1-1.fc40, but none of the providers can be installed
  - cannot install both libgomp-14.0.1-0.15.fc40.x86_64 from updates-testing and libgomp-14.1.1-1.fc40.x86_64 from @System
  - cannot install both libgomp-14.0.1-0.15.fc40.x86_64 from fedora and libgomp-14.1.1-1.fc40.x86_64 from @System
  - cannot install both libgcc-14.1.1-1.fc40.x86_64 from updates-archive and libgcc-14.0.1-0.15.fc40.x86_64 from @System
  - package akmod-nvidia-390xx-3:390.157-9.fc40.x86_64 from rpmfusion-nonfree-updates requires akmods, but none of the providers can be installed
  - conflicting requests

trying to install libgomp gives the folowing error:

error: "libgomp" is already provided by: libgomp-14.1.1-1.fc40.x86_64. Use --allow-inactive to explicitly require it.

Maybe this helps?

Sorry. The ublue artifacts aren’t something I’m super familiar with. I can only speak to the actual fedora:fedora/<arch>/coreos/testing released artifacts.

I do not know what you mean with artifacts, I did some googleing and maybe these things help.

  • the pakages can be found on the ucore github
  • reposetories enabed on my system
    • fedora
    • updates-testing
    • fedora-nvidia
    • rpm-fusion-stable

the enabled rpm-md line reads:

Enabled rpm-md repositories: fedora-nvidia updates-testing fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree tailscale-stable copr:copr.fedorainfracloud.org:ublue-os:ucore updates-archive

And is it just me or is the pacage requesting an older version of libgomp?
cannot install both libgomp-14.0.1-0.15.fc40.x86_64 from updates-testing and libgomp-14.1.1-1.fc40.x86_64 from @System

I mean that the right place to open issues against ucore is Issues · ublue-os/ucore · GitHub

2 Likes