Downloading qiime2 on Ubuntu/WSL

Hello,

I have been having issues installing qiime2 on windows. I read through the instructions on the website that said that downloading Windows subsystem for linux would be necessary. I also checked the forums and Francisco Cardenas provided a good guide up to a point. So following the Windows (via WSL) installation instructions I was able to run
wget https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml
and that ran on WSL and Ubuntu but the second line of code:
conda env create -n qiime2-2023.5 --file qiime2-2023.5-py38-linux-conda.yml
does not work so I tried like recommended on the forums I tried:

bash qiime2-2023.5-py38-linux-conda.yml

however this is what it gave as output on WSL and ubunutu:

qiime2-2023.5-py38-linux-conda.yml: line 1: channels:: command not found
qiime2-2023.5-py38-linux-conda.yml: line 2: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 3: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 4: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 5: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 6: dependencies:: command not found
qiime2-2023.5-py38-linux-conda.yml: line 7: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 8: -: command not found
qiime2-2023.5-py38-linux-conda.yml: line 9: -: command not found

I also tried the following code on ubuntu and got the results below:

sudo apt-get install $(cat qiime2-2023.5-py38-linux-conda.yml)

Command 'root' not found, but can be installed with:
snap install root-framework
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@LAPTOP-JJM3IS7E:~# sudo apt-get install $(cat qiime2-2023.5-py38-linux-conda.yml)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'python3-flufl.lock' for regex 'flufl.lock'
Note, selecting 'python-flufl.lock-doc' for regex 'flufl.lock'
Note, selecting 'python-flufl.lock-docs' for regex 'flufl.lock'
Package dbus is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
perl-base libperl5.34

Package libxml2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package openssl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libsystemd0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package ca-certificates is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

that goes on for a while then it starts saying the following:

E: Unable to locate package channels:
E: Unable to locate package qiime2/label
E: Unable to locate package conda-forge
E: Unable to locate package bioconda
E: Unable to locate package defaults
E: Unable to locate package dependencies:
E: Unable to locate package _libgcc_mutex
E: Unable to locate package _openmp_mutex
E: Unable to locate package _r-mutex
E: Unable to locate package alsa-lib
E: Unable to locate package altair
E: Unable to locate package anyio

Any help would be appreciated thank you!

Hello @kasemsalim, did you install conda before running the command conda env create -n qiime2-2023.5 --file qiime2-2023.5-py38-linux-conda.yml? If so, what error did you get when running that command? If not, that is probably what you need to do.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.