相关环境
lsb_release -aNo LSB modules are available.Distributor ID:UbuntuDescription:Ubuntu 20.04.4 LTSRelease:20.04Codename:focalpython -VPython 3.9.13which python/home/user/miniconda3/bin/pythonconda --versionconda 22.9.0
通过conda 在base环境中安装特定的程序
conda install -c bioconda A程序
报错如下
Collecting package metadata (current_repodata.json): doneSolving 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): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Solving environment: \ Found conflicts! Looking for incompatible packages.failedUnsatisfiableError: The following specifications were found to be incompatible with each other:Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:- feature:/linux-64::__glibc==2.31=0- feature:|@/linux-64::__glibc==2.31=0- **A程序** -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']Your installed version is: 2.31
尝试解决的方法:
ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.7) 2.31Copyright (C) Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Written by Roland McGrath and Ulrich Drepper.
检查并尝试修改对应环境下的
libgcc_s.so; libgcc_s.so.1文件的权限,没有效果。
受到一些解决类似的问题的文章的提示,尝试对conda更新以解决兼容性问题
conda update --all
conda update conda
但都没有效果。
有些文章建议使用conda install -c conda-forgeA程序;但是提示没有找到对应的程序
在另一个服务器相同的环境下执行
conda install -c bioconda A程序
成功安装,没有报错。
查看两个服务器区别,尤其是conda相关的配置
通过conda config --show查看镜像
成功安装的服务器的conda配置了一些国内的镜像,而报错的服务器是使用的原始镜像。问题可能找到;
在报错的服务器添加国内镜像
conda config --add channels https://mirrors./anaconda/cloud/conda-forge/
conda config --add channels https://mirrors./anaconda/pkgs/main/
conda config --add channels https://mirrors./anaconda/pkgs/free/
conda config --add channels https://mirrors./anaconda/cloud/bioconda/
conda config --add channels /anaconda/cloud/bioconda/
conda config --add channels https://mirrors./anaconda/pkgs/main/
conda config --add channels https://mirrors./anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna./anaconda/pkgs/free/
再进行安装,成功。
conda安装软件报兼容性问题的解决 Found conflicts! Looking for incompatible packages.failed.UnsatisfiableError