嘗試在 conda 環境中安裝 R 基礎套件時發生錯誤,如下所示:
[user@host ~]$ conda install r r-essentials
Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Initial quick solve with frozen env failed. Unfreezing env and trying again.
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: - failed
這是我的輸出conda info
:
active environment : None
user config file : /home/user/.condarc
populated config files : /home/user/.condarc
conda version : 4.7.10
conda-build version : not installed
python version : 3.7.3.final.0
virtual packages :
base environment : /opt/miniconda (writable)
channel URLs : 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/miniconda/pkgs
/home/user/.conda/pkgs
envs directories : /opt/miniconda/envs
/home/user/.conda/envs
platform : linux-64
user-agent : conda/4.7.10 requests/2.22.0 CPython/3.7.3 Linux/5.2.2-arch1-1-ARCH arch/rolling glibc/2.29
UID:GID : 1000:985
netrc file : None
offline mode : False
頻道 URL 似乎很健康,它們會導致正確的儲存庫和軟體包。我在 conda 中安裝 python 相關的套件沒有問題,只在 R 中看到這個問題。
謝謝。
答案1
這可能是 conda 套件管理器本身的錯誤。將 conda 更新到 v. 4.7.11 後,上述行為立即停止。