[GH-ISSUE #1593] Fedora 39 Install Failure on NVIDIA Repo #881

Closed
opened 2026-04-12 10:32:52 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @carlowisse on GitHub (Dec 19, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1593

I am trying to install Ollama on Fedora 39, but the install script fails on the following:

>>> Installing ollama to /usr/local/bin...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
>>> Installing NVIDIA repository...
Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo
Status code: 404 for https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo (IP: 152.199.39.144)
Error: Configuration of repo failed
Originally created by @carlowisse on GitHub (Dec 19, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1593 I am trying to install Ollama on Fedora 39, but the install script fails on the following: ``` >>> Installing ollama to /usr/local/bin... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... >>> Installing NVIDIA repository... Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo Status code: 404 for https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo (IP: 152.199.39.144) Error: Configuration of repo failed ```
Author
Owner

@carlowisse commented on GitHub (Dec 19, 2023):

I did some digging, and this is because cuda-toolkit only goes up to fedora37. I have since manually installed the tools and Ollama. So far things are running smoothly. Below is a script that should get others started if they are on Fedora39.

#!/bin/bash

### OLLAMA ###
curl -L https://ollama.ai/download/ollama-linux-amd64 -o /usr/bin/ollama
chmod +x /usr/bin/ollama

useradd -r -s /bin/false -m -d /usr/share/ollama ollama

SERVICE_CONTENT="[Unit]
Description=Ollama Service
After=network-online.target

[Service]
ExecStart=/usr/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3

[Install]
WantedBy=default.target"

echo "$SERVICE_CONTENT" | tee /etc/systemd/system/ollama.service > /dev/null

systemctl daemon-reload
systemctl enable ollama

### CUDA TOOLS ###
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
dnf clean all
dnf -y install cuda-toolkit-12-3
<!-- gh-comment-id:1862092424 --> @carlowisse commented on GitHub (Dec 19, 2023): I did some digging, and this is because cuda-toolkit only goes up to fedora37. I have since manually installed the tools and Ollama. So far things are running smoothly. Below is a script that should get others started if they are on Fedora39. ``` #!/bin/bash ### OLLAMA ### curl -L https://ollama.ai/download/ollama-linux-amd64 -o /usr/bin/ollama chmod +x /usr/bin/ollama useradd -r -s /bin/false -m -d /usr/share/ollama ollama SERVICE_CONTENT="[Unit] Description=Ollama Service After=network-online.target [Service] ExecStart=/usr/bin/ollama serve User=ollama Group=ollama Restart=always RestartSec=3 [Install] WantedBy=default.target" echo "$SERVICE_CONTENT" | tee /etc/systemd/system/ollama.service > /dev/null systemctl daemon-reload systemctl enable ollama ### CUDA TOOLS ### dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo dnf clean all dnf -y install cuda-toolkit-12-3 ```
Author
Owner

@technovangelist commented on GitHub (Dec 19, 2023):

I think @carlowisse answered your issue. We are dependent on Nvidia's Cuda Toolkit. I will go ahead and close this now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.

<!-- gh-comment-id:1863302907 --> @technovangelist commented on GitHub (Dec 19, 2023): I think @carlowisse answered your issue. We are dependent on Nvidia's Cuda Toolkit. I will go ahead and close this now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.
Author
Owner

@bladerunnerwalrus commented on GitHub (May 6, 2024):

A while ago I run the above script as is on Fedora 40. It worked, but I faced this after each sudo dnf upgrade:

Problem 1: package nvidia-driver-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System
  - package nvidia-driver-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System
  - package kmod-nvidia-6.8.7-300.fc40.x86_64-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed
  - cannot install the best update candidate for package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64
  - problem with installed package kmod-nvidia-6.8.7-300.fc40.x86_64-3:550.78-1.fc40.x86_64
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
 Problem 2: package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-glcore.so.550.78()(64bit), but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-tls.so.550.78()(64bit), but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires xorg-x11-drv-nvidia-libs(x86-64) = 3:550.78-1.fc40, but none of the providers can be installed
  - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System
  - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System
  - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package kmod-nvidia-6.8.8-300.fc40.x86_64-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed
  - cannot install the best update candidate for package xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.i686
  - problem with installed package kmod-nvidia-6.8.8-300.fc40.x86_64-3:550.78-1.fc40.x86_64
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
 Problem 3: package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-glcore.so.550.78()(64bit), but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-tls.so.550.78()(64bit), but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires xorg-x11-drv-nvidia-libs(x86-64) = 3:550.78-1.fc40, but none of the providers can be installed
  - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System
  - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System
  - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package akmod-nvidia-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed
  - cannot install the best update candidate for package xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64
  - cannot install the best update candidate for package akmod-nvidia-3:550.78-1.fc40.x86_64
  - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering

Since then I've reinstalled Fedora and now I'm curious whether rerunning the script above with

dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo

and

dnf -y install cuda-toolkit-12-4

(which seem to be the latest as of today) would be safe (I do not want to reinstall the OS again)? I'm on a dual-GPU laptop (1050 Ti), but set Nvidia as primary.

<!-- gh-comment-id:2097097780 --> @bladerunnerwalrus commented on GitHub (May 6, 2024): A while ago I run the above script as is on Fedora 40. It worked, but I faced this after each `sudo dnf upgrade`: ``` Problem 1: package nvidia-driver-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System - package nvidia-driver-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System - package kmod-nvidia-6.8.7-300.fc40.x86_64-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed - cannot install the best update candidate for package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 - problem with installed package kmod-nvidia-6.8.7-300.fc40.x86_64-3:550.78-1.fc40.x86_64 - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering Problem 2: package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-glcore.so.550.78()(64bit), but none of the providers can be installed - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-tls.so.550.78()(64bit), but none of the providers can be installed - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires xorg-x11-drv-nvidia-libs(x86-64) = 3:550.78-1.fc40, but none of the providers can be installed - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver - package nvidia-driver-libs-3:545.23.08-1.fc37.i686 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver - package kmod-nvidia-6.8.8-300.fc40.x86_64-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed - cannot install the best update candidate for package xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.i686 - problem with installed package kmod-nvidia-6.8.8-300.fc40.x86_64-3:550.78-1.fc40.x86_64 - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering Problem 3: package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-glcore.so.550.78()(64bit), but none of the providers can be installed - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires libnvidia-tls.so.550.78()(64bit), but none of the providers can be installed - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from @System requires xorg-x11-drv-nvidia-libs(x86-64) = 3:550.78-1.fc40, but none of the providers can be installed - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from @System - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 conflicts with xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver - package nvidia-driver-libs-3:545.23.08-1.fc37.x86_64 from cuda-fedora37-x86_64 obsoletes xorg-x11-drv-nvidia-libs provided by xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver - package akmod-nvidia-3:550.78-1.fc40.x86_64 from @System requires nvidia-kmod-common >= 3:550.78, but none of the providers can be installed - cannot install the best update candidate for package xorg-x11-drv-nvidia-libs-3:550.78-1.fc40.x86_64 - cannot install the best update candidate for package akmod-nvidia-3:550.78-1.fc40.x86_64 - package xorg-x11-drv-nvidia-3:550.78-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering ``` Since then I've reinstalled Fedora and now I'm curious whether rerunning the script above with ``` dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo ``` and ``` dnf -y install cuda-toolkit-12-4 ``` (which seem to be the latest as of today) would be safe (I do not want to reinstall the OS again)? I'm on a dual-GPU laptop (1050 Ti), but set Nvidia as primary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#881