[GH-ISSUE #666] Linux Installation curl command fails #46808

Closed
opened 2026-04-28 00:16:38 -05:00 by GiteaMirror · 15 comments
Owner

Originally created by @Shihab-Shahriar on GitHub (Oct 1, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/666

curl https://ollama.ai/install.sh | sh

This leads to:

>>> Downloading ollama...
Warning: Failed to open the file /tmp/tmp.hE5cI4TvS7/ollama: No such file or 0%##O#-#
Warning: directory
curl: (23) Failure writing output to destination

Ubuntu 22.04.3 LTS

Originally created by @Shihab-Shahriar on GitHub (Oct 1, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/666 `curl https://ollama.ai/install.sh | sh` This leads to: ``` >>> Downloading ollama... Warning: Failed to open the file /tmp/tmp.hE5cI4TvS7/ollama: No such file or 0%##O#-# Warning: directory curl: (23) Failure writing output to destination ``` Ubuntu 22.04.3 LTS
GiteaMirror added the linuxbug labels 2026-04-28 00:16:38 -05:00
Author
Owner

@mxyng commented on GitHub (Oct 2, 2023):

Hi @Shihab-Shahriar, can you describe briefly how this server was installed? Is it using a base image from a cloud provider (AWS, GCP, etc.), installed using Ubuntu's ISO, or a container?

<!-- gh-comment-id:1743628796 --> @mxyng commented on GitHub (Oct 2, 2023): Hi @Shihab-Shahriar, can you describe briefly how this server was installed? Is it using a base image from a cloud provider (AWS, GCP, etc.), installed using Ubuntu's ISO, or a container?
Author
Owner

@Shihab-Shahriar commented on GitHub (Oct 2, 2023):

I didn't really install anything. I thought all I had to do was run that command:

curl https://ollama.ai/install.sh | sh
<!-- gh-comment-id:1743772626 --> @Shihab-Shahriar commented on GitHub (Oct 2, 2023): I didn't really install anything. I thought all I had to do was run that command: ``` curl https://ollama.ai/install.sh | sh ```
Author
Owner

@mxyng commented on GitHub (Oct 2, 2023):

You shouldn't need to install anything in order to run the install script however I need to better understand how the system is setup to reproduce this issue. For example, my test using GCP's Ubuntu 22.04 LTS image succeeds without errors.

<!-- gh-comment-id:1743862756 --> @mxyng commented on GitHub (Oct 2, 2023): You shouldn't need to install anything in order to run the install script however I need to better understand how the system is setup to reproduce this issue. For example, my test using GCP's Ubuntu 22.04 LTS image succeeds without errors.
Author
Owner

@Shihab-Shahriar commented on GitHub (Oct 2, 2023):

I'm sorry I missed part of your question last time. I tried that command on the terminal of my local desktop.

<!-- gh-comment-id:1743865601 --> @Shihab-Shahriar commented on GitHub (Oct 2, 2023): I'm sorry I missed part of your question last time. I tried that command on the terminal of my local desktop.
Author
Owner

@dominicdev commented on GitHub (Oct 10, 2023):

getting this 2 ubunto 22

<!-- gh-comment-id:1755610813 --> @dominicdev commented on GitHub (Oct 10, 2023): getting this 2 ubunto 22
Author
Owner

@datafields commented on GitHub (Oct 22, 2023):

It has to do with Curl, I had the same issue. Please try the following and it fixed the problem.
$ sudo snap remove curl
$ sudo apt install curl

<!-- gh-comment-id:1774195112 --> @datafields commented on GitHub (Oct 22, 2023): It has to do with Curl, I had the same issue. Please try the following and it fixed the problem. $ sudo snap remove curl $ sudo apt install curl
Author
Owner

@CorpHackRyan commented on GitHub (Nov 20, 2023):

^ I had the same issue, and the above worked.

<!-- gh-comment-id:1819302788 --> @CorpHackRyan commented on GitHub (Nov 20, 2023): ^ I had the same issue, and the above worked.
Author
Owner

@Eous638 commented on GitHub (Dec 5, 2023):

Same issue, datafields solution of reinstalling curl fixed it

<!-- gh-comment-id:1840554277 --> @Eous638 commented on GitHub (Dec 5, 2023): Same issue, datafields solution of reinstalling curl fixed it
Author
Owner

@RogerGMarch commented on GitHub (Dec 29, 2023):

I had the same issue, datafields solution of reinstalling curl fixed it, Thanks!

<!-- gh-comment-id:1872162709 --> @RogerGMarch commented on GitHub (Dec 29, 2023): I had the same issue, datafields solution of reinstalling curl fixed it, Thanks!
Author
Owner

@mxyng commented on GitHub (Jan 16, 2024):

This seems to be an issue with the installed curl, not the install script.

<!-- gh-comment-id:1894607590 --> @mxyng commented on GitHub (Jan 16, 2024): This seems to be an issue with the installed curl, not the install script.
Author
Owner

@kajackdfw commented on GitHub (Jan 21, 2024):

I am having the same issue with Ubuntu 22.04. I have ROS2 and Nvidia dependencies for this distro, so changing distro is not an option. Datafields solution above worked for me too! *** SOLUTION ABOVE *** https://github.com/jmorganca/ollama/issues/666#issuecomment-1774195112

<!-- gh-comment-id:1902686456 --> @kajackdfw commented on GitHub (Jan 21, 2024): I am having the same issue with Ubuntu 22.04. I have ROS2 and Nvidia dependencies for this distro, so changing distro is not an option. Datafields solution above worked for me too! *** SOLUTION ABOVE *** https://github.com/jmorganca/ollama/issues/666#issuecomment-1774195112
Author
Owner

@parthdey commented on GitHub (Apr 7, 2024):

The solution given above really worked for me guys

<!-- gh-comment-id:2041375606 --> @parthdey commented on GitHub (Apr 7, 2024): The solution given above really worked for me guys
Author
Owner

@thiagoaag commented on GitHub (Apr 29, 2024):

It has to do with Curl, I had the same issue. Please try the following and it fixed the problem. sudo snap remove curl sudo apt install curl

I had the same problem, and this worked for me. Thanks @datafields

<!-- gh-comment-id:2082604186 --> @thiagoaag commented on GitHub (Apr 29, 2024): > It has to do with Curl, I had the same issue. Please try the following and it fixed the problem. $ sudo snap remove curl $ sudo apt install curl I had the same problem, and this worked for me. Thanks @datafields
Author
Owner

@Murilho commented on GitHub (Jul 2, 2024):

Obrigado...
o meu deu certo tambem depois que eu vi o comentario do [datafields]

<!-- gh-comment-id:2203890072 --> @Murilho commented on GitHub (Jul 2, 2024): Obrigado... o meu deu certo tambem depois que eu vi o comentario do [datafields]
Author
Owner

@MominIqbal-1234 commented on GitHub (Aug 1, 2024):

sudo apt-get update
sudo apt-get install curl

its work

<!-- gh-comment-id:2263361617 --> @MominIqbal-1234 commented on GitHub (Aug 1, 2024): sudo apt-get update sudo apt-get install curl its work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46808