Conda验证错误:如何在Ubuntu上通过conda安装llvm-openmp包?

k5ifujac  于 2022-11-02  发布在  其他
关注(0)|答案(1)|浏览(297)

我尝试使用conda安装上述软件包,但失败,错误消息如下。

conda create --name test llvm-openmp
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/bla/anaconda3/envs/test

  added / updated specs:
    - llvm-openmp

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
    _openmp_mutex-4.5          |            2_gnu          23 KB  conda-forge
    libgomp-12.2.0             |      h65d4601_19         455 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         481 KB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge None
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu None
  libgcc-ng          conda-forge/linux-64::libgcc-ng-12.2.0-h65d4601_19 None
  libgomp            conda-forge/linux-64::libgomp-12.2.0-h65d4601_19 None
  libzlib            conda-forge/linux-64::libzlib-1.2.13-h166bdaf_4 None
  llvm-openmp        conda-forge/linux-64::llvm-openmp-14.0.4-he0ac6c6_0 None

Proceed ([y]/n)? y

Downloading and Extracting Packages
libgomp-12.2.0       | 455 KB    | ##################################### | 100% 
_openmp_mutex-4.5    | 23 KB     | ##################################### | 100% 
_libgcc_mutex-0.1    | 3 KB      | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for llvm-openmp located at /home/bla/anaconda3/pkgs/llvm-openmp-14.0.4-he0ac6c6_0
appears to be corrupted. The path 'lib/libarcher.so.bak'
specified in the package manifest cannot be found.

我手动下载并解压缩了conda软件包一次,在那里我可以看到应该丢失的文件。例如,对于版本8,安装工作,但这对我来说是不够的。我也确定我已经安装了这个软件包之前,最后一次Ubuntu更新,然后我不得不重新安装图形驱动程序和其他事情。我使用Ubuntu 22.04.1 LTS。

pgky5nke

pgky5nke1#

软件包未在事务概要的downloads部分列出,这意味着它位于软件包高速缓存中,并且在那里已损坏。请尝试从软件包高速缓存中删除tarball(tar.gz和/或.conda)和相应的非捆绑文件夹。用户可以使用以下命令查询软件包高速缓存位置

conda config --show pkgs_dirs

## probably something like

## /home/bla/anaconda3/pkgs

并移除具有llvm-openmp-14.0.4-he0ac6c6_0的任何内容。

相关问题