Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ollama install broken on Manjaro Linux - sh: line 252: VERSION_ID: unbound variable #4505

Open
aBaldoqui opened this issue May 17, 2024 · 6 comments
Assignees
Labels
bug Something isn't working linux

Comments

@aBaldoqui
Copy link

What is the issue?

sudo 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...
sh: linha 252: VERSION_ID: variável não associada

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

No response

@aBaldoqui aBaldoqui added the bug Something isn't working label May 17, 2024
@dhiltgen dhiltgen self-assigned this May 22, 2024
@dhiltgen dhiltgen added the linux label May 22, 2024
@dhiltgen
Copy link
Collaborator

What linux distro are you running? Can you share the contents of your /etc/os-release file? If that file doesn't exist, is there another file in /etc that contains the OS settings? For example, on Ubuntu I see

% cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@mfahampshire
Copy link

This also happened to me. Running Debian12. Contents of /etc/os-release:

       │ File: /etc/os-release
   1   │ PRETTY_NAME="Debian GNU/Linux trixie/sid"
   2   │ NAME="Debian GNU/Linux"
   3   │ VERSION_CODENAME=trixie
   4   │ ID=debian
   5   │ HOME_URL="https://www.debian.org/"
   6   │ SUPPORT_URL="https://www.debian.org/support"
   7   │ BUG_REPORT_URL="https://bugs.debian.org/"

@dhiltgen
Copy link
Collaborator

dhiltgen commented Jun 3, 2024

@mfahampshire Trixie is slated to be v13, but is in testing. On a v12 debian VM, I see

% cat os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

It looks like Debian holds back on the VERSION_ID until they finalize the version number. We use the version to populate the URL https://developer.download.nvidia.com/compute/cuda/repos/ and there's no debian13 yet.

We should have a more informative error message instead of an unbound variable, but at the moment, debian13 isn't supported by the official cuda drivers.

@aBaldoqui what distro/version are you running? If it's not Debian 13/trixie, can you share the contents of your file?

@mfahampshire
Copy link

Apologies for the misinfo, I forgot I updated! 😅 not 100% linked to this conversation but just as an FYI the manual install instructions worked perfectly, so I'll stick to manual upgrades for the moment. Thanks!

@aBaldoqui
Copy link
Author

Hi, sorry for the delay in responding, @dhiltgen

NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://forum.manjaro.org/"
BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
LOGO=manjarolinux

@dhiltgen dhiltgen changed the title sh: line 252: VERSION_ID: unbound variable Ollama install broken on Manjaro Linux - sh: line 252: VERSION_ID: unbound variable Jun 5, 2024
@dhiltgen
Copy link
Collaborator

dhiltgen commented Jun 5, 2024

It looks like Manjaro is derived from Arch, so these instructions are probably valid for the Driver install https://wiki.archlinux.org/title/NVIDIA

For installing Ollama, for now, you can use our manual instruction - https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install or possibly https://archlinux.org/packages/extra/x86_64/ollama/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

No branches or pull requests

3 participants