[GH-ISSUE #2816] Ubuntu install not ending #1708

Closed
opened 2026-04-12 11:40:55 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @Fastidious on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2816

Originally assigned to: @dhiltgen on GitHub.

Trying to install ollama on Ubuntu 23.04, it gets stuck like this:

>>> Downloading ollama...
######################################################################## 100.0%##O#-#
>>> Installing ollama to /usr/local/bin...
>>> Adding ollama user to render group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
Network interfaces          

What could it be?

Originally created by @Fastidious on GitHub (Feb 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2816 Originally assigned to: @dhiltgen on GitHub. Trying to install ollama on Ubuntu 23.04, it gets stuck like this: ```bash >>> Downloading ollama... ######################################################################## 100.0%##O#-# >>> Installing ollama to /usr/local/bin... >>> Adding ollama user to render group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... Network interfaces ``` What could it be?
Author
Owner

@dhiltgen commented on GitHub (Mar 7, 2024):

Can you try running with -x so we can see what it's trying to do when it gets stuck?

curl -fsSL https://ollama.com/install.sh | sh -x
<!-- gh-comment-id:1982081170 --> @dhiltgen commented on GitHub (Mar 7, 2024): Can you try running with `-x` so we can see what it's trying to do when it gets stuck? ``` curl -fsSL https://ollama.com/install.sh | sh -x ```
Author
Owner

@dhiltgen commented on GitHub (Mar 20, 2024):

If you're still having trouble installing, please share a little more information so we can investigate.

<!-- gh-comment-id:2009980061 --> @dhiltgen commented on GitHub (Mar 20, 2024): If you're still having trouble installing, please share a little more information so we can investigate.
Author
Owner

@hsiktas commented on GitHub (Apr 17, 2024):

I am seeing the same issue and this is where it hangs when I start the installer with -x:

>>> Creating ollama systemd service...
+ cat
+ sudo tee /etc/systemd/system/ollama.service
+ systemctl is-system-running
+ SYSTEMCTL_RUNNING=running
+ status Enabling and starting ollama service...
+ echo >>> Enabling and starting ollama service...
>>> Enabling and starting ollama service...
+ sudo systemctl daemon-reload
+ sudo systemctl enable ollama
+ trap start_service EXIT
+ available lspci
+ command -v lspci
+ check_gpu nvidia-smi
+ available nvidia-smi
+ command -v nvidia-smi
+ return 1
+ check_gpu lspci nvidia
+ available lspci
+ command -v lspci
+ lspci -d 10de:
+ grep -q NVIDIA
+ return 1
+ check_gpu lshw nvidia
+ available lshw
+ command -v lshw
+ grep -q vendor: .* \[10DE\]
+ sudo lshw -c display -numeric
Network interfaces          

<!-- gh-comment-id:2061336713 --> @hsiktas commented on GitHub (Apr 17, 2024): I am seeing the same issue and this is where it hangs when I start the installer with `-x`: ``` >>> Creating ollama systemd service... + cat + sudo tee /etc/systemd/system/ollama.service + systemctl is-system-running + SYSTEMCTL_RUNNING=running + status Enabling and starting ollama service... + echo >>> Enabling and starting ollama service... >>> Enabling and starting ollama service... + sudo systemctl daemon-reload + sudo systemctl enable ollama + trap start_service EXIT + available lspci + command -v lspci + check_gpu nvidia-smi + available nvidia-smi + command -v nvidia-smi + return 1 + check_gpu lspci nvidia + available lspci + command -v lspci + lspci -d 10de: + grep -q NVIDIA + return 1 + check_gpu lshw nvidia + available lshw + command -v lshw + grep -q vendor: .* \[10DE\] + sudo lshw -c display -numeric Network interfaces ```
Author
Owner

@dhiltgen commented on GitHub (May 29, 2024):

@hsiktas does sudo lshw hang on your system as well? We use that tool to discover the GPUs.

<!-- gh-comment-id:2138281265 --> @dhiltgen commented on GitHub (May 29, 2024): @hsiktas does `sudo lshw` hang on your system as well? We use that tool to discover the GPUs.
Author
Owner

@hsiktas commented on GitHub (May 29, 2024):

I just tried it and the command ran without hanging. The installer script finished successfully this time. So, I can't reproduce this anymore.
It might have been an issue with Ubuntu 23.10, but right now on 24.04 the issue seems to be gone. :)

<!-- gh-comment-id:2138294731 --> @hsiktas commented on GitHub (May 29, 2024): I just tried it and the command ran without hanging. The installer script finished successfully this time. So, I can't reproduce this anymore. It might have been an issue with Ubuntu 23.10, but right now on 24.04 the issue seems to be gone. :)
Author
Owner

@mirh commented on GitHub (Jul 15, 2024):

Lshw's network scanning can hang forever inside of scan_ip, scan_modes or scan_module.
In my case, /dev/vmnet1 has SIOCGIFADDR or SIOCETHTOOL operations hanging.

<!-- gh-comment-id:2229619687 --> @mirh commented on GitHub (Jul 15, 2024): Lshw's network scanning can hang forever inside of `scan_ip`, `scan_modes` or `scan_module`. In my case, /dev/vmnet1 has SIOCGIFADDR or SIOCETHTOOL operations hanging.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1708