CondaError: Downloaded bytes did not match Content-Length

HI,
I'm trying to install QIIME2 using miniconda3 using the exact command provided in the website using Linux system
https://docs.qiime2.org/2023.5/install/native/
using these provided steps :

Updating Miniconda

After installing Miniconda and opening a new terminal, make sure you’re running the latest version of conda:

conda update conda

Installing wget

conda install wget

Install QIIME 2 within a conda environment

get https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml
conda env create -n qiime2-2023.5 --file qiime2-2023.5-py38-linux-conda.yml

unfortunately I received some error stated as :

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/conda-forge/linux-64/openjdk-17.0.3-h19c1b89_7.conda
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

which when I'm tried to redownload it again it will come out with different errors such as:

how to solve CondaError: Downloaded bytes did not match Content-Length
url: https://conda.anaconda.org/conda-forge/linux-64/libllvm16-16.0.3-hbf9e925_1.conda
target_path: /home/fatihahnajihah/miniconda3/pkgs/libllvm16-16.0.3-hbf9e925_1.conda
Content-Length: 35374926
downloaded bytes: 6759441

any helps to solve this problems really appreciated.
Thanks

Hello!

Welcome to the forums! :qiime2:

These are both connection errors, so hopefully with a better internet connection these will resolve themselves.

Many things can mess with internet connectivity. If this is on a laptop, I would start by getting physically closer to the WiFi access point or trying a hardwired connection. (If this is on a server or the cloud :cloud:, let me know!)

Keep us posted,
Colin

1 Like

thank you so much for your suggestion.
my problem was solved with a better internet connection.

best regards.
fatihah najihah

2 Likes