我正在使用Artifactory Pro 6.8.1版。
我已经使用conda远程设置创建了一个conda虚拟存储库。
起初很好,但是最近我在运行该错误
conda install -y <package_name>
返回
MD5MismatchError: Conda detected a mismatch between the expected content and downloaded content
用户conda信息如下:
(base) C:\Users\user>conda info
active environment : base
active env location : C:\Users\user\AppData\Local\Continuum\miniconda3
shell level : 1
user config file : C:\Users\user\.condarc
populated config files : C:\Users\user\.condarc
conda version : 4.6.8
conda-build version : not installed
python version : 3.6.0.final.0
base environment : C:\Users\user\AppData\Local\Continuum\miniconda3 (writable)
channel URLs : https://user:token@artifactory/api/conda/conda/win-64
https://user:token@artifactory/api/conda/conda/noarch
package cache : C:\Users\user\AppData\Local\Continuum\miniconda3\pkgs
C:\Users\user\.conda\pkgs
C:\Users\user\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\user\AppData\Local\Continuum\miniconda3\envs
C:\Users\user\.conda\envs
C:\Users\user\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.6.8 requests/2.21.0 CPython/3.6.0 Windows/10 Windows/10.0.14393
administrator : False
netrc file : None
offline mode : False
运行conda安装:
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: C:\Users\user\AppData\Local\Continuum\miniconda3
added / updated specs:
- python=3.6.0
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2019.3.9 | py36_0 149 KB /
conda-4.6.8 | py36_0 892 KB /
------------------------------------------------------------
Total: 1.0 MB
The following packages will be SUPERSEDED by a higher-priority channel:
ca-certificates api/conda/conda --> /
certifi api/conda/conda --> /
conda api/conda/conda --> /
openssl api/conda/conda --> /
python api/conda/conda --> /
Downloading and Extracting Packages
conda-4.6.8 | 892 KB | ############################################################################################# | 75%
certifi-2019.3.9 | 149 KB | ############################################################################################# | 75%
MD5MismatchError: Conda detected a mismatch between the expected content and downloaded content
for url 'https://user:token@artifactory/api/conda/conda/win-64/conda-4.6.8-py36_0.tar.bz2'.
download saved to: C:\Users\user\AppData\Local\Continuum\miniconda3\pkgs\conda-4.6.8-py36_0.tar.bz2
expected md5 sum: 31068a3770bb220225b7d7d766b6c0ac
actual md5 sum: 558ed226130cc8c978f80b8061d1c831
MD5MismatchError: Conda detected a mismatch between the expected content and downloaded content
for url 'https://user:token@artifactory/api/conda/conda/win-64/certifi-2019.3.9-py36_0.tar.bz2'.
download saved to: C:\Users\user\AppData\Local\Continuum\miniconda3\pkgs\certifi-2019.3.9-py36_0.tar.bz2
expected md5 sum: d78307cb9c50a02f3446e7fb5e4c6cd8
actual md5 sum: e1faa30cf88c0cd141dfe71e70a9597a
我尝试运行
conda clean --all
,但仍显示MD5mismatch错误。是否有任何建议可以为Artifactory修复此MD5异常?
答案 0 :(得分:1)
我使用Artifactory版本6.16.0
对我来说,它仅在删除远程Conda频道中Artifactory中的缓存文件时有效
作为授权用户,我进入了人工制品主页的快速搜索,即
conda-4.6.8-py36_0.tar.bz2
pytz-2019.3-py_0.tar.bz2 (I also had problems with pytz )
,然后我从缓存中删除了每一个(我在使用google-pasta和wheel等其他软件包时也遇到了问题
答案 1 :(得分:0)
我设法找到了一种解决方案,只是与遇到相同问题的人分享。
Artifactory生成自己的校验和,并将其与下载的校验和进行比较。
有关更多详细信息:
我所做的是
1)前往Artifactory。查找下载的工件,其中存在校验和不匹配的问题。
2)单击工件,右侧将显示
Checksums
SHA-256: XXX(Uploaded: Identical)
SHA-1: XYZ (Uploaded: None)
MD5: XYY(Uploaded: None)
Client did not publish a checksum value.
If you trust the uploaded artifact you can accept the actual checksum by clicking the
'Fix Checksum' button.
3)在远程存储库中检查下载的MD5,一个Artifactory正在连接 并从中下载软件包。
4)验证是否相同,一旦验证,请单击“修复校验和”按钮。
5)这样可以解决MD5错误问题。希望它会有所帮助。