Trouble updating Qiime2 2021.8 in Ubuntu 20

Hi everyone, I am having some problems updating my Qimme2. I have several versions already installed in my Ubuntu 20.04 5 LTS, but wanted to try new databases and then newer versions of the program.

My "newest" version installed without problems is 2021.8. Then 2021.11 installation with this does not work and when I try to update conda, is a failure, i get this message:

Collecting package metadata (current_repodata.json): done
Solving environment: -
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  • defaults/noarch::certifi==2020.6.20=pyhd3eb1b0_3
  • defaults/linux-64::sqlite==3.33.0=h62c20be_0
  • defaults/linux-64::cffi==1.15.1=py37h5eee18b_3
  • defaults/linux-64::yaml==0.2.5=h7b6447c_0
  • defaults/linux-64::setuptools==49.6.0=py37_0
  • defaults/linux-64::readline==7.0=h7b6447c_5
  • defaults/linux-64::pysocks==1.7.1=py37_1
  • defaults/linux-64::python==3.7.3=h0371630_0
  • defaults/noarch::pycparser==2.21=pyhd3eb1b0_0
  • defaults/linux-64::xz==5.4.2=h5eee18b_0
  • defaults/linux-64::idna==3.4=py37h06a4308_0
  • defaults/linux-64::libgcc-ng==11.2.0=h1234567_1
  • defaults/noarch::charset-normalizer==2.0.4=pyhd3eb1b0_0
  • defaults/linux-64::tk==8.6.12=h1ccaba5_0
  • defaults/linux-64::conda-package-handling==1.6.1=py37h7b6447c_0
  • defaults/linux-64::pycosat==0.6.3=py37h7b6447c_0
  • defaults/linux-64::openssl==1.1.1w=h7f8727e_0
  • defaults/linux-64::cryptography==3.1=py37h1ba5d50_0
  • defaults/linux-64::ruamel_yaml==0.15.87=py37h7b6447c_1
  • defaults/noarch::urllib3==1.26.8=pyhd3eb1b0_0
  • defaults/linux-64::brotlipy==0.7.0=py37h27cfd23_1003
  • defaults/linux-64::libffi==3.4.4=h6a678d5_0
  • defaults/linux-64::libedit==3.1.20221030=h5eee18b_0
  • defaults/linux-64::tqdm==4.64.1=py37h06a4308_0
  • defaults/linux-64::wget==1.20.1=h20c2e04_0
  • defaults/noarch::six==1.16.0=pyhd3eb1b0_1
  • defaults/linux-64::ncurses==6.4=h6a678d5_0
  • defaults/linux-64::requests==2.28.1=py37h06a4308_0
  • defaults/linux-64::zlib==1.2.13=h5eee18b_0
  • defaults/linux-64::conda==4.8.4=py37_0
  • defaults/linux-64::libstdcxx-ng==11.2.0=h1234567_1
  • defaults/noarch::pyopenssl==19.1.0=py_1
    done

==> WARNING: A newer version of conda exists. <==
current version: 4.8.4
latest version: 24.11.1

Please update conda by running

$ conda update -n base -c defaults conda

All requested packages already installed.


Any ideas how to solve this?

Thanks in advance!

Marisa

Hey @Marisa_Tello_Martin,

Is there a reason you're attempting to install 2021.11 as opposed to our latest release version (2024.10)?

As a good jumping off point (unless your specific workflow prevents this from being possible), I'd recommend installing the latest version of the QIIME 2 Amplicon distribution.

If you run into any issues there, let us know and we can dig deeper.

Cheers :lizard:

1 Like

Hi @lizgehret

I had qiime2 2020.8 environment and i tried to install 2024.10, but it does not work, so I thought that maybe if i went version by version it will work. i was able to install 2021.8 version but 2021.11 does not work either.
it does not give any error. Instalation seems that finish but when i checked the conda envs itś not there.
Any suggestions?

Thank you in advance

Marisa

Hey @Marisa_Tello_Martin,

Can you please provide more details on what exactly isn't working, and what commands you ran? After installing the environment, did you run conda activate <name-of-your-environment>?

The more specific details/commands/screenshots of exactly what you did and where you're seeing something going wrong, the better we can assist you. Thanks!

1 Like

Hi @lizgehret

First i run the conda update and this is what i get:
conda update conda
Collecting package metadata (current_repodata.json): done
Solving environment: |
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  • defaults/noarch::certifi==2020.6.20=pyhd3eb1b0_3
  • defaults/linux-64::sqlite==3.33.0=h62c20be_0
  • defaults/linux-64::cffi==1.15.1=py37h5eee18b_3
  • defaults/linux-64::yaml==0.2.5=h7b6447c_0
  • defaults/linux-64::setuptools==49.6.0=py37_0
  • defaults/linux-64::readline==7.0=h7b6447c_5
  • defaults/linux-64::pysocks==1.7.1=py37_1
  • defaults/linux-64::python==3.7.3=h0371630_0
  • defaults/noarch::pycparser==2.21=pyhd3eb1b0_0
  • defaults/linux-64::xz==5.4.2=h5eee18b_0
  • defaults/linux-64::idna==3.4=py37h06a4308_0
  • defaults/linux-64::libgcc-ng==11.2.0=h1234567_1
  • defaults/noarch::charset-normalizer==2.0.4=pyhd3eb1b0_0
  • defaults/linux-64::tk==8.6.12=h1ccaba5_0
  • defaults/linux-64::conda-package-handling==1.6.1=py37h7b6447c_0
  • defaults/linux-64::pycosat==0.6.3=py37h7b6447c_0
  • defaults/linux-64::openssl==1.1.1w=h7f8727e_0
  • defaults/linux-64::cryptography==3.1=py37h1ba5d50_0
  • defaults/linux-64::ruamel_yaml==0.15.87=py37h7b6447c_1
  • defaults/noarch::urllib3==1.26.8=pyhd3eb1b0_0
  • defaults/linux-64::brotlipy==0.7.0=py37h27cfd23_1003
  • defaults/linux-64::libffi==3.4.4=h6a678d5_0
  • defaults/linux-64::libedit==3.1.20221030=h5eee18b_0
  • defaults/linux-64::tqdm==4.64.1=py37h06a4308_0
  • defaults/linux-64::wget==1.20.1=h20c2e04_0
  • defaults/noarch::six==1.16.0=pyhd3eb1b0_1
  • defaults/linux-64::ncurses==6.4=h6a678d5_0
  • defaults/linux-64::requests==2.28.1=py37h06a4308_0
  • defaults/linux-64::zlib==1.2.13=h5eee18b_0
  • defaults/linux-64::conda==4.8.4=py37_0
  • defaults/linux-64::libstdcxx-ng==11.2.0=h1234567_1
  • defaults/noarch::pyopenssl==19.1.0=py_1
    done

==> WARNING: A newer version of conda exists. <==
current version: 4.8.4
latest version: 24.11.2

Please update conda by running

$ conda update -n base -c defaults conda

All requested packages already installed.

If i use the result is the same.

Then I have followed the instructions to install the new environment for qiime2 for Linux:

conda env create -n qiime2-amplicon-2024.10 --file https://data.qiime2.org/distro/amplicon/qiime2-amplicon-2024.10-py310-linux-conda.yml
It takes a long time, like 5-6 hours to finish.
It gives no errors and then I try to activate:

conda activate qiime2--2024.10
bash: distro: No existe el archivo o el directorio

Could it be that the conda version is not able to update?
Thank you in advance!
Marisa

Hi @Marisa_Tello_Martin,

Thanks for your patience while I was away for the holidays!

From the logs you've provided, I'm not seeing any actual error messages (as you mentioned in your prior message) - the 'environment is inconsistent' message is just a warning, and shouldn't impact the installation of this environment.

From your last attempt to install 2024.10:

This shows me that your conda environment should have the following name:

qiime2-amplicon-2024.10

From your final command:

It looks like you've misspelled the environment name - it should be qiime2-amplicon-2024.10 rather than qiime2--2024.10.

The error that you're receiving is unusual though - bash: distro: No such file or directory indicates that conda wasn't recognized as a command (but instead thinks that distro was used within a bash command). You should receive an error message that looks like this when a conda environment isn't found:

EnvironmentNameNotFound: Could not find conda environment: qiime2--2024.10

Can you please provide the output of the following commands:

conda --version
conda env list

This will display the version of conda you have installed, along with all of the environments that exist under your conda installation.

Thanks! :lizard:

1 Like

Hi @lizgehret
Sorry for my late reply, I was also out for holidays.
This is what i get from the commands:
conda --version
conda 4.8.4

conda env list

conda environments:

                     /home/ctich/[/home/ctich/conda/anaconda3]

base * /home/ctich/miniconda3
picrust2 /home/ctich/miniconda3/envs/picrust2
py39-demo /home/ctich/miniconda3/envs/py39-demo
qiime1 /home/ctich/miniconda3/envs/qiime1
qiime2-2019.10 /home/ctich/miniconda3/envs/qiime2-2019.10
qiime2-2019.4 /home/ctich/miniconda3/envs/qiime2-2019.4
qiime2-2019.7 /home/ctich/miniconda3/envs/qiime2-2019.7
qiime2-2020.8 /home/ctich/miniconda3/envs/qiime2-2020.8
qiime2-2021.8 /home/ctich/miniconda3/envs/qiime2-2021.8

I don´t undestand why it is not installing the
2024.10

Any ideas?

Thank you!

Marisa

1 Like

Hey @Marisa_Tello_Martin,

Thanks for sharing those outputs - your list of conda environments looks reasonable, but the version of conda that you have installed is quite old. Let's try the following:

Making sure you're in your base env to start (run conda deactivate), please run conda update conda and then provide me with the output for conda --version once more.

I'm hoping to see something in the realm of 23.*.* Version 23 is the latest major version- minor versions under that may vary (my version is 23.7.4, just for reference).

Once you've successfully updated your version of conda, let's try installing 2024.10 once more- but I'd like to see the entire output in your terminal to make sure we don't miss anything. Please run the following command:

conda env create -n qiime2-amplicon-2024.10 --file https://data.qiime2.org/distro/amplicon/qiime2-amplicon-2024.10-py310-linux-conda.yml

Please provide full page screenshots of you executing this command, as well as the output you see after executing.

Thanks! :lizard:

Hi @lizgehret

I tried to update the version as you suggest but seem that it does not work:


I also used conda update -n base -c defaults conda with the same result.

Thank you!
Marisa

1 Like

Hi @Marisa_Tello_Martin,

I am wondering if your version of conda is too old to update. In the past I've had to run something like this to get the latest version of conda:

conda install conda-forge::conda=24.11.3

or

conda install conda=24.11.3 -c conda-forge

This may or may not work depending on what is in your base conda. If it does not work, then you may simply have to install a separate updated version of conda in a different path. You can keep both versions of conda on your system and toggle between them by using <path-to-conda-version>/conda init. You may have to double check the commands etc... as I am trying to recall from memory. :slight_smile:

2 Likes

Hi @SoilRotifer

Thank you for your suggestions.
I have tried both commands and no luck:

Hello Marisa,

I also found that old conda could not update itself last year.

My solution was to reinstall conda entirely, as shown here: python - How to reset anaconda root environment - Stack Overflow

So, standard support ends in April 2025, which is two months away.
After 5 years, it could be time for some spring cleaning. :broom:
(Like, you could keep the old VM and start setting up a new VM with the new conda and Qiime2. )

2 Likes