Conda is one of the widely used software tools. It facilitates users in managing their project environments efficiently. With Conda you can access various data science tools, such as Jupyter Notebook, VSCode, RStudio, and more.
Additionally, you can easily manage environments, install packages, and utilize useful tools without using commands.
This blog explains the installation of Conda on Ubuntu 24.04 (LTS).
How to Install Conda on Ubuntu 24.04 (LTS)?
We will explore the following section throught this blog:
How to Install Conda on Ubuntu 24.04 (LTS)?
How to Download Conda on Ubuntu 24.04 (LTS)?
How to Setup Conda on Ubuntu 24.04 (LTS)?
How to Activate and Deactivate Conda on Ubuntu 24.04 (LTS)?
How to Open Conda Navigator on Ubuntu 24.04 (LTS)?
How to Download Conda on Ubuntu 24.04 (LTS)?
This section will demonstrate the method of downloading Conda on your system.
Step 1: Install Required Conda’s Libraries
First, ensure you have installed the following libraries required for Conda:
sudo apt install libxrandr2 libxss1 libxcursor1 libxcomposite1 libxi6 libxtst6


These libraries will help Conda run smoothly on your Ubuntu 24.04 (LTS) system.
Step 2: Download Conda’s Setup File
Next, download Conda’s setup file from the official Conda repository via the command:
curl -O https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh

The curl will download the particular version of Conda to your system.
Step 3: Verify Conda’s Setup File
The downloaded Conda file can be verified using this command:
shasum -a 256 Anaconda3-2024.06-1-Linux-x86_64.sh

You can crosscheck the Shasum with your Conda distribution.
How to Setup Conda on Ubuntu 24.04 (LTS)?
The below section will illustrate the setup process of Conda on your system.
Step 1: Install Conda
Utilize the “bash” command followed by the Conda setup file to install it on Ubuntu 24.04 (LTS):
bash Anaconda3-2024.06-1-Linux-x86_64.sh



While installing the Conda files, answer the prompted question carefully.
How to Activate and Deactivate Conda on Ubuntu 24.04 (LTS)?
In this section, you will be able to activate and deactivate the Conda on your Ubuntu machine.
Deactivate Conda Base Environment
By default, the Conda base environment is activated after installation. You can deactivate it via the command:
conda config --set auto_activate_base False

You can replace the “False” with “True” if you want to activate the base environment by default.
Activate Conda Environment
Use the “source” command with the Conda path to activate the Conde base environment on your Ubuntu 24.04 (LTS):
source ~/anaconda3/bin/activate

When it activates, you will notice “base” in your prompt, as shown above.
Deactivate Conda Environment
The running Conda environment can be deactivated with the below command:
conda deactivate

After deactivating the Conda environment, you will see the “base” has been removed from your prompt.
Check Conda Path
To check the Conda path on your system, use the “which” command, such as:
which conda

This command will display the full path of the Conda on your Ubuntu 24.04 (LTS).
How to Open Conda Navigator on Ubuntu 24.04 (LTS)?
This section is about how to open the graphical interface of Conda on the Ubuntu 24.04 machine.
Open Conda Navigator
To access various data science tools, such as Jupyter Notebook, VSCode, RStudio, and more, open the Conda graphical interface via the command:
anaconda-navigator

With Anaconda Navigator, you can easily manage environments, install packages, and utilize useful tools without running commands:

You can install or launch various tools by simply clicking on the button (install or launch) in the Anaconda Navigator.
FAQs
How do I set up Conda on my Ubuntu 24.04 (LTS)?
For setting up Conda on Ubuntu 24.04 (LTS):
- Download the Conda setup file, such as: “curl -O https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh”.
- Install it with the command: “bash Anaconda3-2024.06-1-Linux-x86_64.sh”.
What is the “Conda Navigator”?
Conda Navigator is a graphical tool, which is used to easily manage environments, install packages, and utilize tools without executing commands from the terminal.
How to activate or deactivate Conda on Ubuntu 24.04 (LTS)?
To activate or deactivate Conda;
- Open your Ubuntu command prompt.
- Run the command to activate Conda: “source ~/anaconda3/bin/activate”.
- To deactivate, execute the command: “conda deactivate”.
Conclusion
Install the updated version of Conda on your Ubuntu 24.04 (LTS) from the “.sh” file. You can use the “curl” manager to download the Conda setup file from the Conda official repository. To install the Conda (.sh) file, use the Bash command in the terminal.