Use Juliaup to install Julia on Ubuntu 26.04 or 24.04. The official installer sets up Julia for your user account and lets you keep multiple Julia versions side by side.
Julia is a programming language for numerical computing and data analysis. You will run a short script that summarizes a week of temperatures, then give it a project environment so you can recreate the setup later. If a step fails, leave a comment with the error or contact us.
Before you begin
- Use Ubuntu 26.04 LTS or 24.04 LTS on a 64-bit Intel or AMD PC (
x86_64) or ARM system (aarch64). Ubuntu 26.04 ships glibc 2.43 and Ubuntu 24.04 ships glibc 2.39. Both also meet the glibc 2.28 minimum documented for the optional Juliaup desktop app.
- Open a Bash terminal. You need internet access and sudo privileges for the Ubuntu prerequisites. Run Juliaup and Julia as your normal user.
- The standard APT repositories on both releases have no
julia package. The Julia project advises against distro-packaged Julia builds. Use Juliaup here and skip third-party Snap builds.
uname -m
getconf GNU_LIBC_VERSION
sudo apt update && sudo apt install -y curl ca-certificates
The first two commands show your architecture and glibc version. APT installs curl and the certificates it needs to verify HTTPS connections.
1. Install Julia with Juliaup
Step 1: Run the official installer
The command downloads and runs the Julia project’s installer. It prompts you to confirm the default setup. Run it as your regular user.
curl -fsSL https://install.julialang.org | sh
The default installer puts julia and juliaup in ~/.juliaup/bin and installs the current stable Julia channel.
Optional: Install without prompts
For unattended setup, use this form in place of the interactive command. The -y flag accepts the installer defaults.
curl -fsSL https://install.julialang.org | sh -s -- -y
Step 2: Reload Bash and verify the install
Juliaup adds its bin directory to your shell startup files by default, including ~/.bashrc when that file exists. Reload Bash’s settings before checking the version and channels.
source ~/.bashrc
julia --version
juliaup status
On a fresh install from your home directory, juliaup status should mark release as the default. In November 2026, release points to Julia 1.13.4 in the 1.13 series, and lts points to Julia 1.10.13 in the 1.10 series. Your patch version can increase as updates arrive.
2. Try the Julia Prompt and Run a Script
Step 1: Try an interactive calculation
Run this in your Ubuntu terminal.
At the julia> prompt, enter this expression. Julia returns 21.0.
Enter exit() or press Ctrl+D at an empty Julia prompt to return to Bash.
Step 2: Create a practice folder
Run these lines in Bash. Use a fresh directory so the exercise starts without an existing project or script.
mkdir "$HOME/julia-weather" && cd "$HOME/julia-weather"
If the folder already exists, choose a different name or resume from your existing practice folder. Run the rest of the example from inside the folder you chose.
Step 3: Save and run the temperature summary
Save the following as temperatures.jl in your practice folder. The array holds seven daily readings in Celsius. extrema returns the lowest and highest readings.
temperatures = [18, 20, 21, 23, 24, 22, 19]
average = sum(temperatures) / length(temperatures)
low, high = extrema(temperatures)
println("Average: ", average, " C")
println("Range: ", low, " to ", high, " C")
Run the file from Bash.
Average: 21.0 C
Range: 18 to 24 C
3. Create a Reproducible Julia Project
Step 1: Add a CSV reader to this project
Stay in your practice folder. The dot in --project=. selects the current directory as Julia’s active project. Add the CSV package so the script can read temperatures from a file.
julia --project=. -e 'using Pkg; Pkg.add("CSV")'
The first run may take a few minutes to download and precompile packages. Project.toml records the direct dependency and any compatibility rules. Manifest.toml records the exact resolved versions, including the packages that CSV itself needs. Keep both files with your project.
Step 2: Read the readings from a CSV file
Save this sample as temperatures.csv beside the script.
day,temp_c
Mon,18
Tue,20
Wed,21
Thu,23
Fri,24
Sat,22
Sun,19
Replace the practice copy of temperatures.jl with the version below. @__DIR__ points to the script’s folder, so it finds the CSV beside the script.
using CSV
rows = CSV.File(joinpath(@__DIR__, "temperatures.csv"); types=Dict(:temp_c => Int))
temperatures = [row.temp_c for row in rows]
average = sum(temperatures) / length(temperatures)
low, high = extrema(temperatures)
println("Average: ", average, " C")
println("Range: ", low, " to ", high, " C")
Run it with the same project environment. Expect the same average and range as before.
julia --project=. temperatures.jl
Step 3: Recreate the setup later
Copy the script, CSV and both TOML files to the other machine, or keep them together in Git. Install the same Julia version you used to create the manifest, open a terminal in the project folder and run these commands.
julia --project=. -e 'using Pkg; Pkg.instantiate()' &&
julia --project=. temperatures.jl
Pkg.instantiate() installs what the manifest specifies. If there is only a project file, Julia resolves compatible versions and creates a manifest. Keep the manifest to reproduce the original dependency versions.
4. Switch Julia Versions and Apply Updates
Step 1: Run LTS alongside stable
Install the LTS channel, then open the Julia prompt using that channel for a single session.
juliaup add lts && julia +lts
Exit Julia before running more shell commands. julia +lts leaves your default channel as it was. Use juliaup default lts to make LTS your usual choice, or juliaup default release to switch back.
Step 2: Select LTS for one folder
If a project calls for the LTS runtime, open a terminal in that project’s directory after adding the channel.
juliaup override set lts
juliaup override status
Use juliaup override unset in the same directory to remove the rule. The override chooses the Julia runtime. --project=. selects the package environment. For repositories that manage several languages, see our mise guide for Ubuntu.
Step 3: Update Julia and Juliaup
Run these commands for the official script installation.
juliaup update
juliaup self update
juliaup status
juliaup update refreshes the installed Julia channels. juliaup self update updates the manager itself. Keep using the project’s required Julia version when reproducing a saved manifest.
5. Fix PATH and Package Errors
Issue 1: Julia is missing or an older copy starts
Check what Bash resolves and where the executables are. The first path printed by which -a is the first match on PATH.
source ~/.bashrc
hash -r
type -a julia
which -a julia
ls -l "$HOME/.juliaup/bin/julia"
On the default install, expect ~/.juliaup/bin/julia first. An earlier /usr/local/bin/julia entry may be a manual install or symlink. A /snap/bin/julia entry points to a Snap launcher. Identify the old install before removing it or changing PATH. If Bash reports an alias or function, review where it was set. If your shell uses another startup file, use the reload command printed by the installer or open a fresh terminal.
Issue 2: Julia cannot find the CSV package
Open the folder that contains Project.toml and Manifest.toml, then restore the environment and run with --project=.. If your practice folder has neither file, return to the package installation step.
julia --project=. -e 'using Pkg; Pkg.instantiate()' &&
julia --project=. temperatures.jl
6. Uninstall Juliaup and Optionally Remove the Package Depot
Step 1: Uninstall the Juliaup-managed installation
Close running Julia sessions, then run the uninstaller for the official script installation.
Follow the prompt. Open a new terminal afterward. If which -a julia still finds a binary, check whether it belongs to another installation.
Step 2: Remove the default depot only if you want a clean removal
This permanently deletes ~/.julia. The default depot can contain packages, cached builds, shared environments, REPL history and startup settings. Back up anything you want to keep. Projects stored elsewhere, such as ~/julia-weather, are outside this directory. If you configured a different depot with JULIA_DEPOT_PATH, inspect that configuration before removing files.
Skip this step if you plan to reinstall Julia and reuse your packages or settings.
Frequently Asked Questions
Can I install Julia with apt on Ubuntu 26.04 or 24.04?
The standard Ubuntu repositories for both releases have no package named julia. Use the official Juliaup installer. APT supplies curl and ca-certificates for the download.
Do I need sudo to install Juliaup?
No. The official script installs Juliaup for your user account. Use sudo only for Ubuntu prerequisite packages.
Can I run Julia LTS without making it my default?
Yes. Install the lts channel with juliaup add lts and launch it with julia +lts. The default channel stays the same.
Does –project=. choose the Julia version?
It selects the package environment in the current directory. To explicitly choose an installed Julia runtime, use a channel such as +lts or configure a Juliaup directory override.
Should I keep both TOML files for a Julia project?
Keep both when you want to reproduce the setup. Project.toml declares the direct dependencies and compatibility rules. Manifest.toml records the exact resolved versions for Pkg.instantiate().
Source: Juliaup documentation.
Views: 216