[GH-ISSUE #9949] Go Version Update Breaks Development Build on Ubuntu 22.04 LTS #53026

Open
opened 2026-04-29 01:43:13 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @DanilaBerezin on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9949

What is the issue?

By default, Ubuntu 22.04 LTS installs go version 1.18. The go.mod file specifies the required go version as go 1.24.0 (see https://github.com/ollama/ollama/blob/main/go.mod#L3). This breaks the go run . serve command (and I'm sure any other ollama command) when running ollama after building from source since go version 1.18 expects the version format as x.xx instead of x.xx.x. I fixed the issue by installing golang-1.23 (sudo apt install golang-1.23) and then running update-alternatives to use go version 1.23 (see https://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu, same idea but with go binaries instead).

I figured this is probably a non-issue for most developers, but I felt that it probably would've been noticed sooner or later by some non-developer trying to run ollama from source and reported anyway but in a less informative way. I have no problem if this is issue is just closed.

Relevant log output

go: errors parsing go.mod:
ollama/go.mod:3: invalid go version '1.24.0': must match format 1.23

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.6.2

Originally created by @DanilaBerezin on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9949 ### What is the issue? By default, Ubuntu 22.04 LTS installs go version 1.18. The go.mod file specifies the required go version as `go 1.24.0` (see https://github.com/ollama/ollama/blob/main/go.mod#L3). This breaks the `go run . serve` command (and I'm sure any other ollama command) when running ollama after building from source since go version 1.18 expects the version format as x.xx instead of x.xx.x. I fixed the issue by installing golang-1.23 (`sudo apt install golang-1.23`) and then running update-alternatives to use go version 1.23 (see https://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu, same idea but with go binaries instead). I figured this is probably a non-issue for most developers, but I felt that it probably would've been noticed sooner or later by some non-developer trying to run ollama from source and reported anyway but in a less informative way. I have no problem if this is issue is just closed. ### Relevant log output ```shell go: errors parsing go.mod: ollama/go.mod:3: invalid go version '1.24.0': must match format 1.23 ``` ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.6.2
GiteaMirror added the bug label 2026-04-29 01:43:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#53026