How to Install DeepSeek on Ubuntu 26.04 and 24.04 – Model Sizes, Commands and Examples

Share
6 Min Read  ·  Local AI  ·  Beginner Friendly

Install DeepSeek on Ubuntu in Three Steps

To install DeepSeek on Ubuntu, install Ollama first, then run ollama run deepseek-r1 to download the model and start using it. That is a 5.2 GB download that runs on an ordinary desktop. On a laptop with no graphics card, use ollama run deepseek-r1:1.5b at 1.1 GB instead.

DeepSeek is a free AI model you run on your own computer. Once it is downloaded you can unplug the network and it still works.

Runs with: Ollama
Smallest model: 1.1 GB
Licence: MIT
Cost: Free
Before You Start
Ubuntu version
Any supported release. 26.04 and 24.04 both work.
Account
A user that can run sudo. The installer changes system files.
Free disk space
6 GB covers the default model. Check before pulling a larger one.
Graphics card
Optional. It makes replies faster, but DeepSeek runs on the processor alone.
Connection
Needed once, to download. After that DeepSeek works offline.
Time
Two minutes to install. The model download takes longer.

Install DeepSeek on Ubuntu

Three commands, and the third one is the model itself. Nothing here needs an account, a key or a payment method.

1

Step 1: Install Ollama

DeepSeek does not run on its own. Ollama is the program that downloads the model and runs it, so it has to be installed first:

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh

Confirm it worked. You should get a version number back:

Verify

ollama --version
Prefer not to pipe a script into your shell?

There is also a tarball install and a Docker image. Our full guide to installing Ollama on Ubuntu covers both, plus the background service and a browser chat interface.

2

Step 2: Download the DeepSeek Model

This pulls the 8B model, a 5.2 GB download. It takes a few minutes on a normal connection and you only do it once.

Download the model

ollama pull deepseek-r1

On lighter hardware, add a size tag instead, for example ollama pull deepseek-r1:1.5b. Every command below works the same way with that tag substituted. The model table further down explains which to pick.

3

Step 3: Start DeepSeek

This opens a chat in your terminal. Type a question, press Enter, and the answer appears below it.

Start DeepSeek

ollama run deepseek-r1

A working session looks like this:

mike@ubuntu: ~

Example output

$ ollama run deepseek-r1
>>> Explain what a swap file does, in two sentences.
A swap file is space on your hard drive that Ubuntu uses when it runs
out of RAM. It keeps programs from crashing when memory fills up, but
it is much slower than real RAM.
>>> /bye
$  

An illustration of a normal session. Your wording will differ.

Type /bye to leave the chat. On anything involved, DeepSeek prints its reasoning in a think block before the answer. That is normal. Ignore it, or read it when you want to check the model’s working.

What Is DeepSeek?

DeepSeek logo
DeepSeek
Open weight AI models, released under the MIT licence
Licence
MIT, commercial use allowed
Model in this guide
DeepSeek R1
Runs
Entirely offline, on your machine

What It Does

DeepSeek is an AI model you download and run on your own computer, in the same way you would install any other program. You type a question in the terminal and it answers there. It handles the usual things: explaining commands, writing and checking code, summarising text, and working through maths and logic problems.

The model in this guide is DeepSeek R1. It writes out its reasoning before giving an answer, which makes it slower than most models but better at problems with steps in them. If you want something faster for everyday questions, our guide to installing Llama on Ubuntu covers the main alternative, and the two sit side by side happily.

Who Makes It

DeepSeek is a Chinese AI lab that publishes its models openly under the MIT licence. That is one of the most permissive licences there is: you can use the models commercially and modify them without asking anyone. Nothing in this guide costs money and there is no account to create.

Update DeepSeek

Keep DeepSeek up to date

Models are republished as they improve, and the tag stays the same. Pulling again fetches a newer build if there is one, and tells you it is already up to date if there is not:

Refresh the model

ollama pull deepseek-r1

That updates the model, not Ollama. Ollama itself updates separately.

First Things to Try

You do not have to open a chat every time. Put your question in quotes after the model name, and DeepSeek answers then closes. Copy any of these four and change the details to suit.

Before you run something
Explain a command

For anything you copied off a forum and do not fully trust.

ollama run deepseek-r1 “What does rsync -avz –delete do, and what could go wrong?”
When something breaks
Make sense of an error

Paste your own error in place of the example. This is what it is best at.

ollama run deepseek-r1 “Explain this error and how to fix it: E: Unable to locate package”
For code
Check a script for bugs

Reads the file straight off disk. Swap in your own filename.

ollama run deepseek-r1 “Review this script for bugs: $(cat backup.sh)”
For long output
Summarise a log file

Turns fifty lines of log into a sentence about what actually went wrong.

ollama run deepseek-r1 “What is wrong here? $(journalctl -p err -n 50)”

If you would rather have this inside your editor than in a terminal, that is a job for an editor extension. Our roundup of code editors for Ubuntu covers the ones worth wiring up.

Choose a Different DeepSeek Model

You now have the 8B model, which suits most machines. Change it only if it is too slow or it will not start. Smaller models run on weaker hardware; larger ones reason better but need far more memory.

Download size, drawn to scale
deepseek-r1:1.5b1.1 GB
deepseek-r1:7b4.7 GB
deepseek-r1:8b  You have this5.2 GB
deepseek-r1:14b9.0 GB
deepseek-r1:32b20 GB
deepseek-r1:70b43 GB
deepseek-r1:671b404 GB

Sizes as published by Ollama, September 2026. Bars are linear against the 671B model at 404 GB, which is why the rest barely register.

Tag Download Best for Built from
deepseek-r1:1.5b 1.1 GB Old laptops, no graphics card Qwen
deepseek-r1:7b 4.7 GB 16 GB of RAM, no graphics card Qwen
deepseek-r1:8b ← default 5.2 GB Most desktops, or an 8 GB graphics card Qwen3
deepseek-r1:14b 9.0 GB 16 GB graphics card. A clear step up Qwen
deepseek-r1:32b 20 GB 24 GB graphics card Qwen
deepseek-r1:70b 43 GB Workstations, 48 GB and up Llama
deepseek-r1:671b 404 GB Servers only DeepSeek R1
Sizes are the download, not the memory

Ollama publishes a download size for every model, and that is a fact you can check. It does not publish a memory requirement, so the Best for column is guidance based on how these sizes behave in practice. Treat it as a starting point, not a specification.

Troubleshoot DeepSeek

!

Error: model requires more system memory than is available

You asked for a model that will not fit. Drop a size and it will work. Going from 14B to 8B, or 8B to 1.5B, costs less capability than you would expect:

Use a smaller model

ollama run deepseek-r1:1.5b

!

It pauses for a long time before answering

DeepSeek writes out its reasoning before it replies, so on a slower machine there is a wait with nothing on screen. Two things help: ask shorter questions, because the thinking grows with the problem, and drop a model size. If you want instant replies for everyday questions, keep a smaller general model installed alongside and save DeepSeek for when the extra care is worth the wait.

!

Command not found: ollama

The install did not finish, or your terminal was open before it did. Close the terminal, open a new one, and run ollama --version again. If it still fails, re-run the install command from Step 1.

Remove DeepSeek

Remove the model and free the space

Models are large and easy to collect without noticing. This removes DeepSeek and frees the disk space:

Remove the model

ollama rm deepseek-r1

To see everything you have downloaded, and what each one is using:

List what is installed

ollama list

Removing a model does not remove Ollama. If you want the whole thing gone, our Ollama guide has the full removal steps, including the background service and the system user the installer creates.

Frequently Asked Questions

Is DeepSeek free to use on Ubuntu?

Yes. DeepSeek publishes its models under the MIT licence, which is unusually permissive, and Ollama is open source. Running a model on your own machine costs nothing beyond disk space and electricity.

Can I run DeepSeek without a GPU?

Yes, if you keep it small. deepseek-r1:1.5b at 1.1 GB and deepseek-r1:7b at 4.7 GB run on the processor alone on most modern machines. Expect a few words per second rather than instant replies.

Which DeepSeek model should I install?

Start with deepseek-r1:8b, which is what you get from ollama run deepseek-r1. It is a 5.2 GB download and runs on an ordinary desktop. On a laptop with no graphics card use deepseek-r1:1.5b at 1.1 GB. If you have a 16 GB graphics card or better, deepseek-r1:14b at 9.0 GB is a clear step up.

What is the think block DeepSeek prints before its answer?

DeepSeek R1 works through a problem in writing before it replies, and that working appears in a think block above the answer. It is normal, not an error. You can ignore it, or read it when you want to check how the model reached its answer.

Does anything leave my machine when I run DeepSeek locally?

No. Once the model is downloaded, it runs entirely on your computer and works with the network unplugged. Ollama does list a few DeepSeek models that run on a server instead, but they have the word cloud in their name, so you will not pick one by accident.

Next step
Two commands and DeepSeek is running

Install Ollama, pull DeepSeek R1, and you have an AI assistant on your own machine that never sends a word anywhere.

Related guides: Install Ollama on Ubuntu  ·  Install Llama on Ubuntu  ·  Best Open Source AI Tools for Ubuntu