text: user13937: Following the docs just won't work for me.
  conda install -n base -c conda-forge mamba
  conda activate base
  mamba create -c conda-forge -c bioconda -n snakemake snakemake
  
  This is the Dockerfile I use:
  FROM ubuntu:20.04
  ENV PATH /opt/conda/bin:${PATH}
  ENV LANG C.UTF-8
  ENV SHELL /bin/bash
  COPY aws/docker/Miniconda3-py38_4.10.3-Linux-x86_64.sh /tmp/
  RUN bash /tmp/Miniconda3-py38_4.10.3-Linux-x86_64.sh -b -p /opt/conda
  RUN conda install -y -c conda-forge mamba
  RUN mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps
  
  The error is:
  WARNING Extracted package cache '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu' has invalid size
  WARNING Extracted package cache '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu' has invalid SHA-256 checksum
  WARNING Package tarball '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu.tar.bz2' is invalid
    Package                              Version  Build                Channel                     Size
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
    Install:
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
    ...Package list omitted
  
    Ignored:
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
    = snakemake                            6.9.1  hdfd78af_0           bioconda/noarch          Ignored
    = snakemake-minimal                    6.9.1  pyhdfd78af_0         bioconda/noarch          Ignored
  
    Summary:
  
    Install: 215 packages
    Ignored: 2 packages
  
    Total download: 256 MB
  
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
  ERROR   File not valid: SHA256 sum doesn't match expectation "/opt/conda/pkgs/gettext-0.19.8.1-h73d1719_1008.tar.bz2"
          Expected: 1bb53c99b4943d210c881aad9158fb0235b348498bad1a7076d1f2bef6671922
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation "/opt/conda/pkgs/gtk2-2.24.33-h539f30e_1.tar.bz2"
          Expected: 2a0aef09a947e3768a426b0ea414ddd1e015c9804a46de619a5e67a689ea1dec
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation "/opt/conda/pkgs/botocore-1.21.64-pyhd8ed1ab_0.tar.bz2"
          Expected: ee5501c74eefd0396f141593933ef2cc3419ad21624ed140bbc1e04944af6e31
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation "/opt/conda/pkgs/libopenblas-0.3.18-pthreads_h8fe5266_0.tar.bz2"
          Expected: 6d67f0f7bda1503af83659ca45d8c8ba34d94091fa4cd5b1ecd85332c14db3cc
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation "/opt/conda/pkgs/scipy-1.7.1-py39hee8e79c_0.tar.bz2"
          Expected: 536500b79a5ccc91f6059fcaa6d7e959bddb37a0ed7a930797375c1ed51a6af1
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  
  # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
  
      Traceback (most recent call last):
        File "/opt/conda/lib/python3.8/site-packages/conda/exceptions.py", line 1079, in __call__
          return func(*args, **kwargs)
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 926, in exception_converter
          raise e
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 920, in exception_converter
          exit_code = _wrapped_main(*args, **kwargs)
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 878, in _wrapped_main
          result = do_call(args, p)
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 757, in do_call
          exit_code = create(args, parser)
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 660, in create
          return install(args, parser, "create")
        File "/opt/conda/lib/python3.8/site-packages/mamba/mamba.py", line 609, in install
          downloaded = transaction.prompt(repos)
      RuntimeError: Found incorrect download: libopenblas. Aborting
  
  `$ /opt/conda/bin/mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps`
  
    environment variables:
                   CIO_TEST=<not set>
                 CONDA_ROOT=/opt/conda
             CURL_CA_BUNDLE=<not set>
                       PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
                            :/bin
         REQUESTS_CA_BUNDLE=<not set>
              SSL_CERT_FILE=<not set>
  
       active environment : None
         user config file : /root/.condarc
   populated config files :
            conda version : 4.10.3
      conda-build version : not installed
           python version : 3.8.10.final.0
         virtual packages : __linux=5.10.16.3=0
                            __glibc=2.31=0
                            __unix=0=0
                            __archspec=1=x86_64
         base environment : /opt/conda  (writable)
        conda av data dir : /opt/conda/etc/conda
    conda av metadata url : None
             channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                            https://conda.anaconda.org/conda-forge/noarch
                            https://conda.anaconda.org/bioconda/linux-64
                            https://conda.anaconda.org/bioconda/noarch
                            https://repo.anaconda.com/pkgs/main/linux-64
                            https://repo.anaconda.com/pkgs/main/noarch
                            https://repo.anaconda.com/pkgs/r/linux-64
                            https://repo.anaconda.com/pkgs/r/noarch
            package cache : /opt/conda/pkgs
                            /root/.conda/pkgs
         envs directories : /opt/conda/envs
                            /root/.conda/envs
                 platform : linux-64
               user-agent : conda/4.10.3 requests/2.25.1 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2 ubuntu/20.04.3 glibc/2.31
                  UID:GID : 0:0
               netrc file : None
             offline mode : False
  
  
  An unexpected error has occurred. Conda has prepared the above report.
  
  
  user4282: I select the Miniconda installer directly from the official repository:
  FROM ubuntu:20.04
  ENV LANG C.UTF-8
  SHELL ["/bin/bash", "-c"]
  RUN apt update -qq && apt -qq -y install curl ca-certificates --no-install-recommends
  RUN ( cd /tmp/; curl -LO "http://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh")
  RUN bash /tmp/Miniconda3-py38_4.10.3-Linux-x86_64.sh -b -p /opt/conda
  ENV PATH=/opt/conda/bin:${PATH}
  RUN conda install -y -c conda-forge mamba
  RUN mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps
  RUN echo "source activate snakemake" > ~/.bashrc
  ENV PATH /opt/conda/envs/snakemake/bin:${PATH}
  
  
original_text: 13937: <p>Following the <a href="https://snakemake.readthedocs.io/en/stable/getting_started/installation.html" rel="nofollow noreferrer">docs</a> just won't work for me.</p>
  <pre><code>conda install -n base -c conda-forge mamba
  conda activate base
  mamba create -c conda-forge -c bioconda -n snakemake snakemake
  </code></pre>
  <p>This is the Dockerfile I use:</p>
  <pre><code>FROM ubuntu:20.04
  ENV PATH /opt/conda/bin:${PATH}
  ENV LANG C.UTF-8
  ENV SHELL /bin/bash
  COPY aws/docker/Miniconda3-py38_4.10.3-Linux-x86_64.sh /tmp/
  RUN bash /tmp/Miniconda3-py38_4.10.3-Linux-x86_64.sh -b -p /opt/conda
  RUN conda install -y -c conda-forge mamba
  RUN mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps
  </code></pre>
  <p>The error is:</p>
  <pre><code>WARNING Extracted package cache '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu' has invalid size
  WARNING Extracted package cache '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu' has invalid SHA-256 checksum
  WARNING Package tarball '/opt/conda/pkgs/_openmp_mutex-4.5-1_gnu.tar.bz2' is invalid
    Package                              Version  Build                Channel                     Size
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
    Install:
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
    ...Package list omitted
  
    Ignored:
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
    = snakemake                            6.9.1  hdfd78af_0           bioconda/noarch          Ignored
    = snakemake-minimal                    6.9.1  pyhdfd78af_0         bioconda/noarch          Ignored
  
    Summary:
  
    Install: 215 packages
    Ignored: 2 packages
  
    Total download: 256 MB
  
  ───────────────────────────────────────────────────────────────────────────────────────────────────────
  
  ERROR   File not valid: SHA256 sum doesn't match expectation &quot;/opt/conda/pkgs/gettext-0.19.8.1-h73d1719_1008.tar.bz2&quot;
          Expected: 1bb53c99b4943d210c881aad9158fb0235b348498bad1a7076d1f2bef6671922
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation &quot;/opt/conda/pkgs/gtk2-2.24.33-h539f30e_1.tar.bz2&quot;
          Expected: 2a0aef09a947e3768a426b0ea414ddd1e015c9804a46de619a5e67a689ea1dec
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation &quot;/opt/conda/pkgs/botocore-1.21.64-pyhd8ed1ab_0.tar.bz2&quot;
          Expected: ee5501c74eefd0396f141593933ef2cc3419ad21624ed140bbc1e04944af6e31
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation &quot;/opt/conda/pkgs/libopenblas-0.3.18-pthreads_h8fe5266_0.tar.bz2&quot;
          Expected: 6d67f0f7bda1503af83659ca45d8c8ba34d94091fa4cd5b1ecd85332c14db3cc
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  ERROR   File not valid: SHA256 sum doesn't match expectation &quot;/opt/conda/pkgs/scipy-1.7.1-py39hee8e79c_0.tar.bz2&quot;
          Expected: 536500b79a5ccc91f6059fcaa6d7e959bddb37a0ed7a930797375c1ed51a6af1
          Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  
  
  # &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ERROR REPORT &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  
      Traceback (most recent call last):
        File &quot;/opt/conda/lib/python3.8/site-packages/conda/exceptions.py&quot;, line 1079, in __call__
          return func(*args, **kwargs)
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 926, in exception_converter
          raise e
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 920, in exception_converter
          exit_code = _wrapped_main(*args, **kwargs)
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 878, in _wrapped_main
          result = do_call(args, p)
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 757, in do_call
          exit_code = create(args, parser)
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 660, in create
          return install(args, parser, &quot;create&quot;)
        File &quot;/opt/conda/lib/python3.8/site-packages/mamba/mamba.py&quot;, line 609, in install
          downloaded = transaction.prompt(repos)
      RuntimeError: Found incorrect download: libopenblas. Aborting
  
  `$ /opt/conda/bin/mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps`
  
    environment variables:
                   CIO_TEST=&lt;not set&gt;
                 CONDA_ROOT=/opt/conda
             CURL_CA_BUNDLE=&lt;not set&gt;
                       PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
                            :/bin
         REQUESTS_CA_BUNDLE=&lt;not set&gt;
              SSL_CERT_FILE=&lt;not set&gt;
  
       active environment : None
         user config file : /root/.condarc
   populated config files :
            conda version : 4.10.3
      conda-build version : not installed
           python version : 3.8.10.final.0
         virtual packages : __linux=5.10.16.3=0
                            __glibc=2.31=0
                            __unix=0=0
                            __archspec=1=x86_64
         base environment : /opt/conda  (writable)
        conda av data dir : /opt/conda/etc/conda
    conda av metadata url : None
             channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                            https://conda.anaconda.org/conda-forge/noarch
                            https://conda.anaconda.org/bioconda/linux-64
                            https://conda.anaconda.org/bioconda/noarch
                            https://repo.anaconda.com/pkgs/main/linux-64
                            https://repo.anaconda.com/pkgs/main/noarch
                            https://repo.anaconda.com/pkgs/r/linux-64
                            https://repo.anaconda.com/pkgs/r/noarch
            package cache : /opt/conda/pkgs
                            /root/.conda/pkgs
         envs directories : /opt/conda/envs
                            /root/.conda/envs
                 platform : linux-64
               user-agent : conda/4.10.3 requests/2.25.1 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2 ubuntu/20.04.3 glibc/2.31
                  UID:GID : 0:0
               netrc file : None
             offline mode : False
  
  
  An unexpected error has occurred. Conda has prepared the above report.
  </code></pre>
   4282: <p>I select the Miniconda installer directly from the official repository:</p>
  <pre><code>FROM ubuntu:20.04
  ENV LANG C.UTF-8
  SHELL [&quot;/bin/bash&quot;, &quot;-c&quot;]
  RUN apt update -qq &amp;&amp; apt -qq -y install curl ca-certificates --no-install-recommends
  RUN ( cd /tmp/; curl -LO &quot;http://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh&quot;)
  RUN bash /tmp/Miniconda3-py38_4.10.3-Linux-x86_64.sh -b -p /opt/conda
  ENV PATH=/opt/conda/bin:<span class="math-container">${PATH}
  RUN conda install -y -c conda-forge mamba
  RUN mamba create -q -y -c conda-forge -c bioconda -n snakemake snakemake snakemake-minimal --only-deps
  RUN echo "source activate snakemake" &gt; ~/.bashrc
  ENV PATH /opt/conda/envs/snakemake/bin:$</span>{PATH}
  </code></pre>
  