linux下conda报Solving environment: failed with initial frozen solve. Retrying with flexible solve.

报错如下:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

自己想装fastqc和cutadapt,反复failed,尝试了重装、更新、设置flexible无效。以下为其他解决方法:

第一步:添加源

多添加几个源。
.condarc文件如下:

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_url: true
channel_priority: flexible
show_channel_urls: true

第二步:装mamba

设置完上面以后,理论上可以装mamba,cutadapt要通过mamba来装

conda install mamba
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

这一步非常缓慢,但能行

第三步:用mamba装cutadapt

mamba install cutadapt

如上成功

你可能感兴趣的:(linux,anaconda,anaconda,linux)