Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstalliTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Ollama’s documented Linux install script is the simplest option for Ubuntu: install zstd if needed, then run curl -fsSL https://ollama.com/install.sh | sh. You can also extract the Linux archive manually or run Ollama in Docker. The official Linux instructions do not make a release-specific compatibility statement for Ubuntu 26.04, so treat that version as unconfirmed rather than guaranteed.
Before you install
These instructions cover Ubuntu 24.04 and 26.04, but the distinction matters: Ollama’s Linux documentation describes Linux installation without naming either Ubuntu release. It therefore does not establish specific support for Ubuntu 26.04. A community issue reports an installation failure on a clean Ubuntu 26.04 system without the zstd command-line utility; that is a reported case, not an official compatibility ruling. See the community issue tracker.
On a fresh Ubuntu installation, check that zstd is available before using the script or a compressed archive. The current installer prefers a .tar.zst archive when available and exits with an instruction to install zstd if it cannot extract that format. Its source gives this Debian/Ubuntu command:
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →sudo apt-get install zstd
The installer can use a .tgz archive for older versions, but do not assume that fallback will apply to the current release. Review the Ollama install script.
#1 Best Overall
Option 1: Install with the official Linux script
Ollama documents the install script as its standard Linux installation route. It detects the system architecture, supports x86_64 and ARM64, selects the corresponding archive, and installs Ollama in a directory associated with the system binary path. The Linux documentation says the installer configures a systemd service when possible. See Ollama’s Linux installation guide.
- Install zstd if it is missing: run
sudo apt-get install zstd. - Run the installer:
curl -fsSL https://ollama.com/install.sh | sh - Check the CLI: run
ollama -vin a terminal.
To install a particular release, set OLLAMA_VERSION for the installer. Consult the current release list rather than relying on an old version number. Rerunning the installer is also the documented update method. See the Linux documentation for version selection and updates.
Rank #2
Start Ollama and verify it is available
If you used the manual archive method below, start the service with ollama serve. The Linux guide says the script configures a systemd service when possible; if installation did not start the service automatically, run the command below in a terminal and leave it open while using Ollama.
ollama serve
Open a second terminal and check the installed command:
Rank #3
ollama -v
A version response confirms that the CLI is installed and callable. If the shell cannot find ollama, check that installation completed and that its install directory is on your system’s command path.
Option 2: Install from a Linux tarball
The manual method extracts an archive under /usr. The official Linux guide shows this amd64 command; it also lists separate ARM64 and AMD ROCm archives for the appropriate systems. The compressed archive requires zstd support for extraction.
Rank #4
curl -fsSL https://ollama.com/download/ollama-linux-amd64.tar.zst
| sudo tar x -C /usr
- Choose the archive that matches your architecture and, where relevant, the AMD ROCm library set.
- Run the extraction command for the applicable archive. For a fresh Ubuntu system, make sure
zstdis installed first. - Start Ollama with
ollama serve. - In another terminal, verify the CLI with
ollama -v.
Unlike the script route, the manual example is an extraction command rather than an installer flow. Use it when you want to manage archive installation yourself. The Linux guide lists the available archives.
Option 3: Run Ollama in Docker
Docker is a fit if you want Ollama managed as a container. The official CPU-only command publishes port 11434 and mounts a named volume at /root/.ollama, so Ollama data persists beyond the container’s lifetime.
Best Value
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
GPU use needs additional host configuration and a vendor-specific container setup:
- NVIDIA: Install the NVIDIA Container Toolkit, configure Docker’s runtime, and pass
--gpus=allto the container command. - AMD: Use the
ollama/ollama:rocmimage tag and pass the/dev/kfdand/dev/dridevices to the container.
Follow the Docker guide for the exact setup details for your GPU and host. See Ollama’s Docker instructions.
Quick Recap
Which installation method should you choose?
| Method | Best suited to | Key detail |
|---|---|---|
| Install script | Most Linux users who want Ollama installed on the host | Detects supported architecture and configures a systemd service when possible; current archive handling can require zstd. |
| Manual tarball | Users who want to extract and manage the archive themselves | Extracts under /usr; start with ollama serve and verify with ollama -v. |
| Docker | Users who prefer container management or need the documented GPU container setup | CPU command retains data in a named volume; NVIDIA and AMD require different host configuration. |
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

