Step 1: Update system repositories
sudo apt update

Step 2: Install curl package
sudo apt install curl -y

Step 3: Prepare Anaconda Installer
cd /tmp
curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh

sha256sum anaconda.sh

Step 4: Install Anaconda on Ubuntu 22.04
bash anaconda.sh



Step 5: Activate the Environment settings
source ~/.bashrc
Step 6: Verify the Anaconda installation
conda list

conda --version

How to remove Anaconda from Ubuntu 22.04
rm -rf ~/anaconda3