Skip to content
James Bower
James Bower

Quantitative AI Security

  • Tools
  • Audit
  • Guides
  • Courses
  • Newsletter
James Bower

Quantitative AI Security

How to Install Conda and Miniconda3 on Ubuntu 22.04 LTS

James Bower, February 8, 2023April 21, 2023

This morning I find myself working on a new data mining project that relies on Conda. I ran into a few issues along the way and decided to write this up. My pain is your gain!

$python3 --version
Python 3.10.6

Next I visited https://docs.conda.io/en/latest/miniconda.html#linux-installers to find the correct installer for my version of Python

Ubuntu 22.04 LTS Conda Installer for Python 3.10
Ubuntu 22.04 LTS Conda Installer

Next bring up your terminal and put in the following.

$wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh

Now we need to change the permissions of our download.

$sudo chmod +x Miniconda3-py310_22.11.1-1-Linux-x86_64.sh

I was initially running the installer using Shell and continued to get the following error.

Installing * environment...
./Miniconda3-py310_22.11.1-1-Linux-x86_64.sh: 444: [[: not found
CondaFileIOError: '/home/ubuntu/miniconda3/pkgs/envs/*/env.txt'. [Errno 2] No such file or directory: '/home/ubuntu/miniconda3/pkgs/envs/*/env.txt'

After doing some research I found that my issue was due to running the installer with Shell instead of Bash.

$bash Miniconda3-py310_22.11.1-1-Linux-x86_64.sh

And Bob’s Your Uncle! We have a successful installation.

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
no change     /home/ubuntu/miniconda3/condabin/conda
no change     /home/ubuntu/miniconda3/bin/conda
no change     /home/ubuntu/miniconda3/bin/conda-env
no change     /home/ubuntu/miniconda3/bin/activate
no change     /home/ubuntu/miniconda3/bin/deactivate
no change     /home/ubuntu/miniconda3/etc/profile.d/conda.sh
no change     /home/ubuntu/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/ubuntu/miniconda3/shell/condabin/Conda.psm1
no change     /home/ubuntu/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/ubuntu/miniconda3/lib/python3.10/site-packages/xontrib/conda.xsh
no change     /home/ubuntu/miniconda3/etc/profile.d/conda.csh
modified      /home/ubuntu/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
Thank you for installing Miniconda3!

Now we need to modify our PATH in order for Miniconda3 to work.

$export PATH=/home/ubuntu/miniconda3/bin/:$PATH

Now we’ve got Conda and Miniconda3 installed on Ubuntu 22.04 LTS. Have an amazing day!

And as always, thank you for taking the time to read this. If you have any comments, questions, or critiques, please reach out to me on our FREE ML Security Discord Server – HERE

Python Tech CondaMiniconda

Post navigation

Previous post
Next post

Related Posts

Python

Python Regex Examples with Notes

July 2, 2018April 21, 2023

In this blog post you will learn about regular expressions (RegEx), and use Python’s re module to work with RegEx (with the help of examples). A Regular Expression (RegEx) is a sequence of characters that defines a search pattern. For loop to incorporate a regex search Regex example description for…

Read More
Tech

My Favorite New Toy – Nokia 770

September 2, 2008April 21, 2023

So I’ve had my Nokia 770 for awhile now and I love this thing. I recently upgraded the memory in mine to 2Gigs which really improved it’s performance. I generally use it to check my email and check on quotes for various stocks and such. It’s pretty sweet. http://amzn.to/2lbKDYa And…

Read More
Python

How to Think About Low-Latency Development with Python

November 3, 2024September 17, 2026

Python is nobody’s first choice for low-latency systems. It’s interpreted, it has the GIL, and its dynamic typing adds overhead that compiled languages don’t have. Yet many of us build performance-sensitive systems in Python anyway, because the ecosystem, the iteration speed, and the team’s familiarity make it the pragmatic choice….

Read More
  • Twitter
  • GitHub
  • YouTube
  • LinkedIn

Videos

https://www.youtube.com/watch?v=FEb8KZoEyzI&t=1291s

Categories

  • Active Defense
  • Anomaly Detection
  • AWS
  • Books
  • Business
  • CTF
  • Decision Intelligence
  • Deep Learning
  • Detection Engineering
  • EDA
  • Entity Recognition
  • Health
  • Linux
  • LLM
  • Machine Learning
  • Memory Forensics
  • NIDS
  • NLG
  • NLP
  • Operating Systems
  • Productivity
  • Python
  • Quantitative Security
  • Security Tools
  • Sentiment Analysis
  • Tech
  • Text Analytics
  • Threat Hunting
  • Threat Intelligence
  • Topic Modeling
  • UEBA

Recent Posts

  • Detection Rule Staleness: How AI Can Solve This Now
  • How to Think About Low-Latency Development with Python
  • Managing Noise In AI Security Machine Learning
  • Dimensionality Reduction: Find the Best Method for Your Data
  • Improved Anomaly Detection in Cybersecurity using Model Cascading

Tags

Apache BERT Boot2Root classification Conda Data Augmentation ddos Diet Dirb Ensemble ETL featured Firewall FreeBSD GPT-3 Hacking Hacking Challenge Htop Kioptrix LiME LLM low-latency Miniconda Mod_jk Monitoring NetworkMiner Nikto NLP NLTK Nmap Nokia 770 OpenAI OpenBSD PCAP pdfminer Peak Performance PF recon Security SSM Tomcat Volatility VSCode Word2Vec xgboost

Archives

  • April 2026
  • November 2024
  • October 2024
  • June 2024
  • October 2023
  • September 2023
  • August 2023
  • May 2023
  • April 2023
  • February 2023
  • March 2020
  • June 2019
  • July 2018
  • May 2018
  • August 2017
  • June 2017
  • February 2017
  • November 2016
  • October 2016
  • September 2016
  • April 2016
  • March 2016
  • November 2015
  • August 2015
  • June 2015
  • February 2015
  • September 2014
  • August 2014
  • July 2014
  • January 2014
  • June 2013
  • January 2012
  • September 2009
  • August 2009
  • September 2008
  • September 2006
©2026 James Bower | WordPress Theme by SuperbThemes