[GH-ISSUE #10850] Ubuntu 22.04.05 offline environment can't upgrade version #7124

Closed
opened 2026-04-12 19:07:58 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @yujianfeikong on GitHub (May 25, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10850

Operation steps:
1.Download version 0.7.1 ollama-linux-amd64.tgz

2.Copy it to offline environment

  1. Stop the ollama service
  • ollama stop deepseek-r1:1.5b
  • systemcel stop ollama.
  1. Delete the version file
  • sudo rm -rf /usr/lib/ollama
  • sudo rm -rf /usr/bin/ollama
  1. sudo tar -C /usr -xzf ollama-linux-amd64.tgz

6.systemcel start ollama

7.ollama -v, the version shown is still the old one, how can I fix this?
ollama version is 0.7.1
warning: client version is 0.5.12

Originally created by @yujianfeikong on GitHub (May 25, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10850 Operation steps: 1.Download version 0.7.1 [ollama-linux-amd64.tgz](https://github.com/ollama/ollama/releases/download/v0.7.1/ollama-linux-amd64.tgz) 2.Copy it to offline environment 3. Stop the ollama service - `ollama stop deepseek-r1:1.5b` - `systemcel stop ollama`. 4. Delete the version file - `sudo rm -rf /usr/lib/ollama` - `sudo rm -rf /usr/bin/ollama` 5. `sudo tar -C /usr -xzf ollama-linux-amd64.tgz` 6.`systemcel start ollama` 7.`ollama -v`, the version shown is still the old one, how can I fix this? ollama version is 0.7.1 warning: client version is 0.5.12
Author
Owner

@yujianfeikong commented on GitHub (May 25, 2025):

I found the reason, the old auto-installation generated the file /etc/systemd/system/ollama.service
with the configuration ExecStart=/usr/local/bin/ollama serve.

But for manual installation https://github.com/ollama/ollama/blob/main/docs/linux.md the unpacking path is /usr
sudo tar -C /usr -xzf ollama-linux-amd64.tgz.

<!-- gh-comment-id:2907697578 --> @yujianfeikong commented on GitHub (May 25, 2025): I found the reason, the old auto-installation generated the file `/etc/systemd/system/ollama.service` with the configuration `ExecStart=/usr/local/bin/ollama serve`. But for manual installation `https://github.com/ollama/ollama/blob/main/docs/linux.md` the unpacking path is `/usr` `sudo tar -C /usr -xzf ollama-linux-amd64.tgz`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#7124