在下载samtools后liunx输入samtools
跳出samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
后来查询得到可能是conda安装的这个版本太老,
之后根据他人的教程,输入命令:
conda install -c bioconda samtools openssl=1.0
但是卡在了Solving environment: / 一直不动,
有人建议删除samtools再重新安装,
conda remove samtools=1.7.0
Collecting package metadata (repodata.json): \ WARNING conda.models.version:get_matcher(538): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0., but conda is ignoring the . and treating it as 1.6.0
WARNING conda.models.version:get_matcher(538): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0., but conda is ignoring the . and treating it as 1.9.0
WARNING conda.models.version:get_matcher(538): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1., but conda is ignoring the . and treating it as 1.7.1
WARNING conda.models.version:get_matcher(538): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0., but conda is ignoring the . and treating it as 1.8.0
但是又再次卡到了Solving environment: /
安装源已经全部恢复成了默认格式
conda卡在Solving environment: / 该怎么办
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
22条回答 默认 最新
波塞冬~ 2024-02-24 10:02关注获得0.45元问题酬金 参考AI和波塞冬解析,希望能帮助到您
您遇到的问题主要涉及两个方面:动态链接库缺失:samtools 报告 libcrypto.so.1.0.0 找不到。这通常意味着您的系统上缺少某个库或者该库的版本不正确。
Conda 安装问题:尝试使用 conda 安装或删除软件时,您遇到了 Solving environment 卡住的问题。这可能是由于 Conda 的环境问题,比如包冲突、源问题或其他网络/资源问题。
针对这两个问题,您可以尝试以下步骤:
1. 解决动态链接库问题
查找缺失的库:您可以使用 find 命令来查找 libcrypto.so.1.0.0 是否存在于您的系统上。find / -name libcrypto.so.1.0.0 2>/dev/null创建符号链接:如果找到了该库,但在不同的位置,您可以创建一个符号链接到预期的位置。
sudo ln -s /path/to/found/libcrypto.so.1.0.0 /path/to/expected/location/libcrypto.so.1.0.0安装缺失的库:如果库确实缺失,您可能需要安装包含该库的包。在某些 Linux 发行版中,这可以通过包管理器来完成,如 apt、yum 或 dnf。
2. 解决 Conda 问题
更新 Conda:确保您的 Conda 是最新版本。conda update conda更换 Conda 通道:有时候,默认的 Conda 通道可能会遇到问题。您可以尝试切换到其他通道,如 conda-forge。
conda config --add channels conda-forge conda config --set channel_priority strict清除缓存:清除 Conda 的缓存可能有助于解决问题。
conda clean --all尝试不同的安装命令:尝试不使用版本号来安装 samtools 和 openssl。
conda install -c bioconda samtools openssl手动下载和安装:如果上述方法都不起作用,您可以从官方网站或可信的源手动下载所需的 .tar.bz2 文件,并使用 conda 的 install 命令从本地文件安装。
希望这些建议能帮助您解决问题。如果问题仍然存在,请提供更多的错误信息或日志,以便更准确地诊断问题。评论 打赏 举报解决 1无用