[GH-ISSUE #7869] Installation not working on Fedora 41 Linux #5034

Open
opened 2026-04-12 16:07:18 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @jmorganca on GitHub (Nov 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7869

What is the issue?

curl -fsSL https://ollama.com/install.sh | sh
> Installing ollama to /usr/local
> [sudo] password for bns: 
> >>> Downloading Linux amd64 bundle
> ######################################################################## 100.0%
> >>> Creating ollama user...
> >>> Adding ollama user to render group...
> >>> Adding ollama user to video group...
> >>> Adding current user to ollama group...
> >>> Creating ollama systemd service...
> >>> Enabling and starting ollama service...
> Created symlink '/etc/systemd/system/default.target.wants/ollama.service' → '/etc/systemd/system/ollama.service'.
> >>> Installing NVIDIA repository...
> Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments.

OS

Linux

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @jmorganca on GitHub (Nov 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7869 ### What is the issue? ``` curl -fsSL https://ollama.com/install.sh | sh > Installing ollama to /usr/local > [sudo] password for bns: > >>> Downloading Linux amd64 bundle > ######################################################################## 100.0% > >>> Creating ollama user... > >>> Adding ollama user to render group... > >>> Adding ollama user to video group... > >>> Adding current user to ollama group... > >>> Creating ollama systemd service... > >>> Enabling and starting ollama service... > Created symlink '/etc/systemd/system/default.target.wants/ollama.service' → '/etc/systemd/system/ollama.service'. > >>> Installing NVIDIA repository... > Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments. ``` ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 16:07:18 -05:00
Author
Owner

@TheEpic-dev commented on GitHub (Nov 28, 2024):

Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the --add-repo argument with the addrepo subcommand used by dnf5.

curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh

https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands

<!-- gh-comment-id:2505427625 --> @TheEpic-dev commented on GitHub (Nov 28, 2024): Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the `--add-repo` argument with the `addrepo` subcommand used by dnf5. ```bash curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh ``` <https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands>
Author
Owner

@MrBns commented on GitHub (Nov 28, 2024):

Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the --add-repo argument with the addrepo subcommand used by dnf5.

curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh

https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands

this method also not working. just tried it. error is something like.

>>> Installing ollama to /usr/local
[sudo] password for bns: 
>>> Downloading Linux amd64 bundle
######################################################################## 100.0%
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
>>> Installing NVIDIA repository...
Unknown argument "https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo" for command "addrepo". Add "--help" for more information about the arguments.```
<!-- gh-comment-id:2505435195 --> @MrBns commented on GitHub (Nov 28, 2024): > Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the `--add-repo` argument with the `addrepo` subcommand used by dnf5. > > ```shell > curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh > ``` > > https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands this method also not working. just tried it. error is something like. ```curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh >>> Installing ollama to /usr/local [sudo] password for bns: >>> Downloading Linux amd64 bundle ######################################################################## 100.0% >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... >>> Installing NVIDIA repository... Unknown argument "https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo" for command "addrepo". Add "--help" for more information about the arguments.```
Author
Owner

@TheEpic-dev commented on GitHub (Nov 28, 2024):

this method also not working. just tried it.

How about:

curl -fsSL https://ollama.com/install.sh | sed 's/--add-repo/addrepo --from-repofile/' | sh
<!-- gh-comment-id:2505444052 --> @TheEpic-dev commented on GitHub (Nov 28, 2024): > this method also not working. just tried it. How about: ```bash curl -fsSL https://ollama.com/install.sh | sed 's/--add-repo/addrepo --from-repofile/' | sh ```
Author
Owner

@MrBns commented on GitHub (Nov 28, 2024):

this method also not working. just tried it.

How about:

curl -fsSL https://ollama.com/install.sh | sed 's/--add-repo/addrepo --from-repofile/' | sh

yeah. its removes the "--add-repo" unknown arguments problem. but now got a new error 😑 . Error is about Cuda drivers may be.

by the way for your information, I am not using Nvidia-Drivers. I am using nouveau driver. so my setup is like
Fedora 41 workstation + Nnouveau wthi Nvidia 2060 + Wayland

>>> Installing ollama to /usr/local
[sudo] password for bns: 
>>> Downloading Linux amd64 bundle
######################################################################## 100.0%
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
>>> Installing NVIDIA repository...
 https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo  % |   1.1 KiB/s | 244.0   B |  00m00s
>>> Installing CUDA driver...
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                           100% |   9.0 KiB/s |   7.7 KiB |  00m01s
 cuda-fedora39-x86_64                                   100% | 256.3 KiB/s | 131.5 KiB |  00m01s
 Fedora 41 - x86_64 - Updates                           100% | 482.7 KiB/s |   1.7 MiB |  00m04s
Repositories loaded.
Failed to resolve the transaction:
Argument 'cuda-drivers' matches only excluded packages.```
<!-- gh-comment-id:2505468608 --> @MrBns commented on GitHub (Nov 28, 2024): > > this method also not working. just tried it. > > How about: > > ```shell > curl -fsSL https://ollama.com/install.sh | sed 's/--add-repo/addrepo --from-repofile/' | sh > ``` yeah. its removes the **"--add-repo" unknown arguments problem.** but now got a new error 😑 . Error is about **Cuda drivers** may be. by the way for your information, I am not using Nvidia-Drivers. I am using **nouveau** driver. so my setup is like **Fedora 41 workstation** + **Nnouveau wthi Nvidia 2060** + **Wayland** ``` >>> Installing ollama to /usr/local [sudo] password for bns: >>> Downloading Linux amd64 bundle ######################################################################## 100.0% >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... >>> Installing NVIDIA repository... https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo % | 1.1 KiB/s | 244.0 B | 00m00s >>> Installing CUDA driver... Updating and loading repositories: Fedora 41 - x86_64 - Updates 100% | 9.0 KiB/s | 7.7 KiB | 00m01s cuda-fedora39-x86_64 100% | 256.3 KiB/s | 131.5 KiB | 00m01s Fedora 41 - x86_64 - Updates 100% | 482.7 KiB/s | 1.7 MiB | 00m04s Repositories loaded. Failed to resolve the transaction: Argument 'cuda-drivers' matches only excluded packages.```
Author
Owner

@TheEpic-dev commented on GitHub (Nov 28, 2024):

It seems the second problem is the hardcoded 39 in

if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
    case $OS_NAME in
        centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;;
        rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;;
        fedora) [ $OS_VERSION -lt '39' ] && install_cuda_driver_yum $OS_NAME $OS_VERSION || install_cuda_driver_yum $OS_NAME '39';;  # hardcoded version
        amzn) install_cuda_driver_yum 'fedora' '37' ;;
        debian) install_cuda_driver_apt $OS_NAME $OS_VERSION ;;
        ubuntu) install_cuda_driver_apt $OS_NAME $(echo $OS_VERSION | sed 's/\.//') ;;
        *) exit ;;
    esac
fi

Though there doesn't appear to be a repo for Fedora 41 yet: https://developer.download.nvidia.com/compute/cuda/repos/. I only see fedora40/.

<!-- gh-comment-id:2505479287 --> @TheEpic-dev commented on GitHub (Nov 28, 2024): It seems the second problem is the hardcoded `39` in ```sh if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then case $OS_NAME in centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;; rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;; fedora) [ $OS_VERSION -lt '39' ] && install_cuda_driver_yum $OS_NAME $OS_VERSION || install_cuda_driver_yum $OS_NAME '39';; # hardcoded version amzn) install_cuda_driver_yum 'fedora' '37' ;; debian) install_cuda_driver_apt $OS_NAME $OS_VERSION ;; ubuntu) install_cuda_driver_apt $OS_NAME $(echo $OS_VERSION | sed 's/\.//') ;; *) exit ;; esac fi ``` Though there doesn't appear to be a repo for Fedora 41 yet: <https://developer.download.nvidia.com/compute/cuda/repos/>. I only see `fedora40/`.
Author
Owner

@FreeCap23 commented on GitHub (Feb 1, 2025):

I made a PR for this issue
#8691

<!-- gh-comment-id:2628876722 --> @FreeCap23 commented on GitHub (Feb 1, 2025): I made a PR for this issue #8691
Author
Owner

@Betim-Hodza commented on GitHub (Feb 21, 2025):

Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the --add-repo argument with the addrepo subcommand used by dnf5.

curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh
https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands

I'm currently running fedora 41 desktop with amd rx 7600 gpu and this fixed my problem. I can finally use ollama w/ my gpu thank you!

<!-- gh-comment-id:2673530954 --> @Betim-Hodza commented on GitHub (Feb 21, 2025): > Untested, as I don't use Fedora, but as a temporary workaround, Fedora users can replace the `--add-repo` argument with the `addrepo` subcommand used by dnf5. > > curl -fsSL https://ollama.com/install.sh | sed s/--add-repo/addrepo/ | sh > https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html#subcommands I'm currently running fedora 41 desktop with amd rx 7600 gpu and this fixed my problem. I can finally use ollama w/ my gpu thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5034