[GH-ISSUE #3531] Installation failure on linux due to directory /usr/share/ollama not exists #48687

Closed
opened 2026-04-28 09:05:58 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hualet on GitHub (Apr 8, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3531

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

Installation failure on linux due to directory /usr/share/ollama not exists

➜ ~ curl -fsSL https://ollama.com/install.sh | sh

Downloading ollama...
######################################################################## 100.0%##O#- # ######################################################################## 100.0%
Installing ollama to /usr/local/bin...
请输入密码
验证成功
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...
Downloading AMD GPU dependencies...
chmod: 无法访问'/usr/share/ollama': 没有那个文件或目录

What did you expect to see?

Install success.

Steps to reproduce

Just run the command curl -fsSL https://ollama.com/install.sh | sh on Linux machine.

Are there any recent changes that introduced the issue?

No response

OS

Linux

Architecture

amd64

Platform

No response

Ollama version

No response

GPU

AMD

GPU info

No response

CPU

AMD

Other software

No response

Originally created by @hualet on GitHub (Apr 8, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3531 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? Installation failure on linux due to directory `/usr/share/ollama` not exists ➜ ~ curl -fsSL https://ollama.com/install.sh | sh >>> Downloading ollama... ######################################################################## 100.0%##O#- # ######################################################################## 100.0% >>> Installing ollama to /usr/local/bin... 请输入密码 验证成功 >>> 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... >>> Downloading AMD GPU dependencies... chmod: 无法访问'/usr/share/ollama': 没有那个文件或目录 ### What did you expect to see? Install success. ### Steps to reproduce Just run the command `curl -fsSL https://ollama.com/install.sh | sh ` on Linux machine. ### Are there any recent changes that introduced the issue? _No response_ ### OS Linux ### Architecture amd64 ### Platform _No response_ ### Ollama version _No response_ ### GPU AMD ### GPU info _No response_ ### CPU AMD ### Other software _No response_
GiteaMirror added the bug label 2026-04-28 09:05:58 -05:00
Author
Owner

@swoh816 commented on GitHub (Apr 22, 2024):

You can probably start by where your model blobs are stored, if it is not your first time installing Ollama. Depending on how you use Ollama, model blobs can be located at /usr/share/ollama/.ollama/, $HOME/.ollama/, or /root/.ollama/. Even in Linux, depending on how you use Ollama, model blobs can be in locations other than the Linux default location in /usr/share/ollama/.ollama/ by default. If that is your case, try copying the directory to /usr/share/ollama/.ollama/ (as a user ollama), which will naturally generate the directory /usr/share/ollama/, and try installing Ollama again.

<!-- gh-comment-id:2069229076 --> @swoh816 commented on GitHub (Apr 22, 2024): You can probably start by where your model blobs are stored, if it is not your first time installing Ollama. Depending on how you use Ollama, model blobs can be located at `/usr/share/ollama/.ollama/`, `$HOME/.ollama/`, or `/root/.ollama/`. Even in Linux, depending on how you use Ollama, model blobs can be in locations other than the Linux default location in `/usr/share/ollama/.ollama/` by default. If that is your case, try copying the directory to `/usr/share/ollama/.ollama/` (as a user `ollama`), which will naturally generate the directory `/usr/share/ollama/`, and try installing Ollama again.
Author
Owner

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

@hualet I don't see the output from this section of the script, which indicates you already have an ollama user on your system, and the home directory must not be /usr/share/ollama otherwise the directory should exist.

You might want to follow our docs on uninstalling first (which includes removing the ollama user), then re-run the install and it should work properly

If that doesn't work, let us know and we can do more troubleshooting.

<!-- gh-comment-id:2094521749 --> @dhiltgen commented on GitHub (May 5, 2024): @hualet I don't see the output from [this](https://github.com/ollama/ollama/blob/main/scripts/install.sh#L84-L87) section of the script, which indicates you already have an `ollama` user on your system, and the home directory must not be `/usr/share/ollama` otherwise the directory should exist. You might want to follow our docs on [uninstalling](https://github.com/ollama/ollama/blob/main/docs/linux.md#uninstall) first (which includes removing the `ollama` user), then re-run the install and it should work properly If that doesn't work, let us know and we can do more troubleshooting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48687