Back to Article List

How to install Miniconda on Ubuntu 24.04

How to install Miniconda on Ubuntu 24.04 - How to install Miniconda on Ubuntu 24.04

The first time I put Miniconda on a rented server I spent a full minute pressing arrow keys at a frozen wall of license text over SSH, sure the session had died. It hadn't. The license opens in a pager and nobody warns you. Past that one quirk, installing Miniconda on Ubuntu 24.04 takes about three minutes, needs no root and lands entirely in your home directory, and the same steps work on Debian, Fedora, pretty much any recent distro and any Linux VPS you can SSH into.

Download the Miniconda installer for Linux

Pull the installer down with curl:

curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

wget does the same job if that's what the box has:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

The latest in that filename never changes; the file behind it does, and right now it's release 26.5.3-2. On ARM servers, meaning anywhere uname -m prints aarch64 (a Raspberry Pi, an Ampere instance), you want Miniconda3-latest-Linux-aarch64.sh instead. Anaconda also publishes installers pinned to specific Python versions for the base environment; the Miniconda download guide decodes that whole naming scheme if you care which Python you start from.

Verify the installer with sha256sum

I check the hash on anything I'm about to execute with a shell, and it costs thirty seconds:

sha256sum Miniconda3-latest-Linux-x86_64.sh

Compare the output with the hash printed next to your installer on repo.anaconda.com/miniconda/. A mismatch means the download is corrupted or tampered with, so delete the file and pull it again.

Run the installer interactively

Start it with bash:

bash Miniconda3-latest-Linux-x86_64.sh

Now the pager I mentioned. Press Enter to bring the license up, q to close it (space scrolls through it too, slowly), then type yes to accept. People genuinely get stuck at this screen, there are Reddit threads full of them mashing keys, so if the terminal looks unresponsive, q.

Next it asks for an install location. The default of ~/miniconda3 is right for almost everyone, so press Enter. The last question is if it should run conda init to update your shell profile, and the answer is yes: that edit to ~/.bashrc is how every new shell finds conda, and declining it is behind most of the "conda: command not found" posts you'll ever read. Should something go sideways regardless, the Miniconda troubleshooting guide picks up from there.

Batch install for scripts and remote servers

Provisioning with Ansible or cloud-init, or just in a hurry? There's a batch mode:

bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3

-b accepts the license and skips every prompt, -p sets the prefix. Batch mode deliberately leaves your shell config alone, so run the init yourself afterwards:

~/miniconda3/bin/conda init bash

On a fresh cloud server there's also the option of skipping this section entirely: LumaDock's Ubuntu VPS plans carry a one-click Miniconda template, so the box boots with conda already wired in.

Activate conda and check the (base) prompt

conda init only affects shells opened after it ran. Reload the one you're sitting in:

source ~/.bashrc

The prompt picks up a (base) prefix, base being the small default environment Miniconda ships with. Then:

conda --version

conda 26.5.3 is the current answer. On a server I also log out and back in once before moving on, because a sourced .bashrc and a genuine fresh login aren't quite the same test.

Your idea deserves better hosting

24/7 support 30-day money-back guaranteeRefund covers the VPS plan on your first order. Cancel anytime
Billing Cycle

VPS.S1

$5.99 Save  17 %
$4.99 Monthly
  • 2 vCPU AMD EPYC
  • 2 GB RAMMEMORY
  • 30 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.S3

$14.99 Save  33 %
$9.99 Monthly
  • 4 vCPU AMD EPYC
  • 6 GB RAMMEMORY
  • 70 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.S4

$19.99 Save  20 %
$15.99 Monthly
  • 6 vCPU AMD EPYC
  • 8 GB RAMMEMORY
  • 80 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

EPYC VPS.P1

$8.99 Save  22 %
$6.99 Monthly
  • 2 vCPU AMD EPYC
  • 4 GB RAMMEMORY
  • 40 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P2

$16.99 Save  24 %
$12.99 Monthly
  • 2 vCPU AMD EPYC
  • 8 GB RAMMEMORY
  • 80 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P4

$29.99 Save  23 %
$22.99 Monthly
  • 4 vCPU AMD EPYC
  • 16 GB RAMMEMORY
  • 160 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P5

$39.99 Save  25 %
$29.99 Monthly
  • 8 vCPU AMD EPYC
  • 16 GB RAMMEMORY
  • 180 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P6

$59.99 Save  25 %
$44.99 Monthly
  • 8 vCPU AMD EPYC
  • 32 GB RAMMEMORY
  • 200 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P7

$69.99 Save  29 %
$49.99 Monthly
  • 16 vCPU AMD EPYC
  • 32 GB RAMMEMORY
  • 240 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G2

$24.99 Save  20 %
$19.99 Monthly
  • 2 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 4 GB DDR5MEMORY
  • 50 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G4

$44.99 Save  22 %
$34.99 Monthly
  • 4 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 8 GB DDR5MEMORY
  • 100 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G6

$89.99 Save  22 %
$69.99 Monthly
  • 8 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 16 GB DDR5MEMORY
  • 200 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G7

$159.99 Save  22 %
$124.99 Monthly
  • 8 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 32 GB DDR5MEMORY
  • 250 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

AMD Ryzen VPS.R1

$16.99 Save  18 %
$13.99 Monthly
  • 1 dedicated CPU AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 4 GB DDR5MEMORY
  • 50 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R2

$29.99 Save  17 %
$24.99 Monthly
  • 2 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 8 GB DDR5MEMORY
  • 100 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R4

$109.99 Save  18 %
$89.99 Monthly
  • 8 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 32 GB DDR5MEMORY
  • 400 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

*VAT excluded.

INCLUDED WITH EVERY PLAN

✓ No setup fees ✓1 Gbps network
✓ Full root access on KVM ✓ Free server monitoring ✓ Firewall management ✓24/7 support

Stop conda from auto-activating base

From here on, every new shell activates base and the (base) prefix follows you around forever. On development machines I turn that off:

conda config --set auto_activate false

A note on the name, because it changed. Current conda calls this setting auto_activate; before the 25.x line it was auto_activate_base, and the old spelling still works as an alias, so older tutorials aren't wrong, just dated. With auto-activation off the system Python stays the default, you activate environments when you mean to and conda activate base brings the prefix back on demand.

Test conda with a throwaway environment

A version string only proves the binary runs. I like to watch the solver do one full round trip before calling an install done:

conda create -n scratch python=3.12 -y
conda activate scratch
python --version

That Python lives under ~/miniconda3/envs/scratch, fully isolated from Ubuntu's system interpreter. (Noble happens to ship 3.12 as well; the two still never touch.) Tear it down:

conda deactivate
conda remove -n scratch --all -y

And that's a working install. The official install docs cover the edge cases I skipped, custom prefixes on shared hosts mostly. Where I'd go next is conda environments done properly, one per project with the Python version pinned, because that habit is what turns the next laptop or Ubuntu server into a five-minute clone of this one.

Questions?

Can I install Miniconda system-wide for every user on the server?

You can, with -p /opt/miniconda3 and some group-permission work, and I'd still talk you out of it. A shared install turns every conda update into a permissions negotiation, and one user's channel config leaks into everyone else's builds. Per-user installs in each home directory cost a few hundred extra MB and skip all of that.

About the author

Alice Langley

I got my first writing work through open-source projects. Before anybody paid me, I was the person rewriting installation notes, answering the same question in Discord for the 25th time and fixing READMEs because the instructions were driving me mad. I was studying then and honestly didn't know technical writing was a job.

But now it's MY job: mostly tutorials, occasionally docs, KBs, sometimes editing. I work freelance. The non-computer part of my life is fairly crowded. I make cosplay costumes and props (sewing is the bit I'm best at, wigs are a different story for now), watch a lot of horror films and have recently started learning bookbinding from somebody who is much more patient than I am.

Deploy your next project in seconds

Bring your winning ideas online faster, with modern hardware and unmetered bandwidth. Join a European cloud trusted by thousands of developers and businesses worldwide.