[GH-ISSUE #5921] failed installation script on ubuntu 24 #50207

Closed
opened 2026-04-28 14:45:00 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @vikyw89 on GitHub (Jul 24, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5921

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

when running installation script this error occured:

>>> Downloading ollama...
######################################################################## 100.0%######################################################################### 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: cannot access '/usr/share/ollama': No such file or directory```

### OS

Linux

### GPU

AMD

### CPU

AMD

### Ollama version

_No response_
Originally created by @vikyw89 on GitHub (Jul 24, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5921 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? when running installation script this error occured: ```$ curl -fsSL https://ollama.com/install.sh | sh >>> Downloading ollama... ######################################################################## 100.0%######################################################################### 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: cannot access '/usr/share/ollama': No such file or directory``` ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version _No response_
GiteaMirror added the installbuglinux labels 2026-04-28 14:45:01 -05:00
Author
Owner

@dhiltgen commented on GitHub (Jul 24, 2024):

Based on the log output, I believe you have an existing ollama user with a home directory that isn't /usr/share/ollama

As a workaround, if you change the user to have the expected directory, the install script should work.

<!-- gh-comment-id:2248733555 --> @dhiltgen commented on GitHub (Jul 24, 2024): Based on the log output, I believe you have an existing `ollama` user with a home directory that isn't `/usr/share/ollama` As a workaround, if you change the user to have the expected directory, the install script should work.
Author
Owner

@vikyw89 commented on GitHub (Jul 24, 2024):

I manually create the dir and it worked

On Thu, Jul 25, 2024, 3:17 AM Daniel Hiltgen @.***>
wrote:

Based on the log output, I believe you have an existing ollama user with
a home directory that isn't /usr/share/ollama

As a workaround, if you change the user to have the expected directory,
the install script should work.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/5921#issuecomment-2248733555,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2W6KA76CJNKZIBDXW6GOWLZN74TLAVCNFSM6AAAAABLNAIWMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYG4ZTGNJVGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2248738901 --> @vikyw89 commented on GitHub (Jul 24, 2024): I manually create the dir and it worked On Thu, Jul 25, 2024, 3:17 AM Daniel Hiltgen ***@***.***> wrote: > Based on the log output, I believe you have an existing ollama user with > a home directory that isn't /usr/share/ollama > > As a workaround, if you change the user to have the expected directory, > the install script should work. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/5921#issuecomment-2248733555>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A2W6KA76CJNKZIBDXW6GOWLZN74TLAVCNFSM6AAAAABLNAIWMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYG4ZTGNJVGU> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@rick-github commented on GitHub (Jul 24, 2024):

related: https://github.com/ollama/ollama/issues/5733

<!-- gh-comment-id:2248767323 --> @rick-github commented on GitHub (Jul 24, 2024): related: https://github.com/ollama/ollama/issues/5733
Author
Owner

@dhiltgen commented on GitHub (Jul 26, 2024):

Glad to hear you got it working.

<!-- gh-comment-id:2253129584 --> @dhiltgen commented on GitHub (Jul 26, 2024): Glad to hear you got it working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50207