Miniforge3 cannot connect to the internet with the error of [Errno 101] Network is unreachable
If you get an error of [Errno 101] Network is unreachable, when you install some packages on your environment using Miniforge3. You need to check the channels that are used in the installation. You can use only the free channels, such as:
conda-forge
bioconda
Solutions
When you get an error of [Errno 101] Network is unreachable, you can resolve this error with the following methods.
1. Verifying the user config file for your Miniforge3 module
1.1 Use the ml Miniforge3/25.3.0-3 command to load the Miniforge3 module.
username@lanta:~> ml Miniforge3/25.3.0-31.2 Then, use the conda info command to view the directory path of the user config file.
user config file : /home/username/.condarc1.3 After that, use the cat /home/username/.condarc command to view your configuration.
username@lanta:~> cat /home/username/.condarc
channels:
- conda-forge
- bioconda
channel_priority: strictIf the default and anaconda channels are present in your user config file, kindly remove them.
2. Checking the file.yml (If you use file.yml to install your environment)
2.1 Use head file.yml command to view your configuration.
username@lanta:~> head file.yml
name: Environment_Name
channels:
- conda-forge
- biocondaIf the default and anaconda channels are present in the file.yml, kindly remove them.