[GH-ISSUE #1872] Error when install on Ubuntu 22.04 #78751

Closed
opened 2026-05-09 01:44:42 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @dekogroup on GitHub (Jan 9, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1872

Originally assigned to: @dhiltgen on GitHub.

curl https://ollama.ai/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8354 0 8354 0 0 16163 0 --:--:-- --:--:-- --:--:-- 16189

Downloading ollama...
######################################################################## 100.0%##O=# # Warning: Failed to open the file /tmp/tmp.AO1TPHxNpB/ollama: No such file or
Warning: directory
0.0%curl: (23) Failure writing output to destination

Originally created by @dekogroup on GitHub (Jan 9, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1872 Originally assigned to: @dhiltgen on GitHub. curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8354 0 8354 0 0 16163 0 --:--:-- --:--:-- --:--:-- 16189 >>> Downloading ollama... ######################################################################## 100.0%##O=# # Warning: Failed to open the file /tmp/tmp.AO1TPHxNpB/ollama: No such file or Warning: directory 0.0%curl: (23) Failure writing output to destination
GiteaMirror added the buglinux labels 2026-05-09 01:44:42 -05:00
Author
Owner

@nineamigos commented on GitHub (Jan 12, 2024):

I get the same error. I looked online and I haven't seen a solution. Note I am using Ubuntu on Windows through Hyper V. If anyone has found a solution please posted here. Thank you:
$ curl https://ollama.ai/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama...
100 8354 0 8354 0 0 6280 0 --:--:-- 0:00:01 --:--:-- 6276
######################################################################## 100.0%#Warning: Failed to open the file /tmp/tmp.s69jd7DPS4/ollama: No such file or
Warning: directory
0.0%curl: (23) Failure writing output to destination

<!-- gh-comment-id:1889686912 --> @nineamigos commented on GitHub (Jan 12, 2024): I get the same error. I looked online and I haven't seen a solution. Note I am using Ubuntu on Windows through Hyper V. If anyone has found a solution please posted here. Thank you: $ curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama... 100 8354 0 8354 0 0 6280 0 --:--:-- 0:00:01 --:--:-- 6276 ######################################################################## 100.0%#Warning: Failed to open the file /tmp/tmp.s69jd7DPS4/ollama: No such file or Warning: directory 0.0%curl: (23) Failure writing output to destination
Author
Owner

@shubhambane commented on GitHub (Jan 13, 2024):

curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8354 0 8354 0 0 16163 0 --:--:-- --:--:-- --:--:-- 16189

Downloading ollama...
######################################################################## 100.0%##O=# # Warning: Failed to open the file /tmp/tmp.AO1TPHxNpB/ollama: No such file or
Warning: directory
0.0%curl: (23) Failure writing output to destination

The issue is related to Curl; I encountered the same problem. Please try the following steps, and it should resolve the issue:

$sudo snap remove curl
$sudo apt install curl

<!-- gh-comment-id:1890591000 --> @shubhambane commented on GitHub (Jan 13, 2024): > curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8354 0 8354 0 0 16163 0 --:--:-- --:--:-- --:--:-- 16189 > > > > > Downloading ollama... > > > > ######################################################################## 100.0%##O=# # Warning: Failed to open the file /tmp/tmp.AO1TPHxNpB/ollama: No such file or > > > > Warning: directory > > > > 0.0%curl: (23) Failure writing output to destination The issue is related to Curl; I encountered the same problem. Please try the following steps, and it should resolve the issue: $sudo snap remove curl $sudo apt install curl
Author
Owner

@shubhambane commented on GitHub (Jan 13, 2024):

I get the same error. I looked online and I haven't seen a solution. Note I am using Ubuntu on Windows through Hyper V. If anyone has found a solution please posted here. Thank you: $ curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama... 100 8354 0 8354 0 0 6280 0 --:--:-- 0:00:01 --:--:-- 6276 ######################################################################## 100.0%#Warning: Failed to open the file /tmp/tmp.s69jd7DPS4/ollama: No such file or Warning: directory 0.0%curl: (23) Failure writing output to destination

The issue is related to Curl; I encountered the same problem. Please try the following steps, and it should resolve the issue:

$sudo snap remove curl
$sudo apt install curl

<!-- gh-comment-id:1890591037 --> @shubhambane commented on GitHub (Jan 13, 2024): > I get the same error. I looked online and I haven't seen a solution. Note I am using Ubuntu on Windows through Hyper V. If anyone has found a solution please posted here. Thank you: $ curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama... 100 8354 0 8354 0 0 6280 0 --:--:-- 0:00:01 --:--:-- 6276 ######################################################################## 100.0%#Warning: Failed to open the file /tmp/tmp.s69jd7DPS4/ollama: No such file or Warning: directory 0.0%curl: (23) Failure writing output to destination The issue is related to Curl; I encountered the same problem. Please try the following steps, and it should resolve the issue: $sudo snap remove curl $sudo apt install curl
Author
Owner

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

@dekogroup are you still facing install problems? If you're on windows, you can use the native windows install instead of installing in WSL2.

<!-- gh-comment-id:1992256508 --> @dhiltgen commented on GitHub (Mar 12, 2024): @dekogroup are you still facing install problems? If you're on windows, you can use the native windows install instead of installing in WSL2.
Author
Owner

@dekogroup commented on GitHub (Mar 13, 2024):

Thank You. On Wondows with WSL2 it's working fine.

On Wed, Mar 13, 2024 at 1:04 AM Daniel Hiltgen @.***>
wrote:

@dekogroup https://github.com/dekogroup are you still facing install
problems? If you're on windows, you can use the native windows install
instead of installing in WSL2.

—
Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/1872#issuecomment-1992256508,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6H4L463EHRMF6RXIBGNTVLYX47SXAVCNFSM6AAAAABBTNKFGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGI2TMNJQHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

<!-- gh-comment-id:1992773931 --> @dekogroup commented on GitHub (Mar 13, 2024): Thank You. On Wondows with WSL2 it's working fine. On Wed, Mar 13, 2024 at 1:04 AM Daniel Hiltgen ***@***.***> wrote: > @dekogroup <https://github.com/dekogroup> are you still facing install > problems? If you're on windows, you can use the native windows install > instead of installing in WSL2. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/1872#issuecomment-1992256508>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A6H4L463EHRMF6RXIBGNTVLYX47SXAVCNFSM6AAAAABBTNKFGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGI2TMNJQHA> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#78751