无法安装柯南软件包特征

问题描述 投票:1回答:1

我正在尝试安装一些食谱,但是遇到某种身份验证问题。当我做

conan install eigen/3.3.7@conan/stable

我收到以下错误

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

eigen/3.3.7@conan/stable: Not found in local cache, looking in remotes...
eigen/3.3.7@conan/stable: Trying with 'conan-local'...
eigen/3.3.7@conan/stable: Trying with 'bincrafters_remote'...
eigen/3.3.7@conan/stable: Trying with 'conan-community'...
Downloading conanmanifest.txt: 100%|##########| 165/165 [00:00<00:00, 345kB/s]
Downloading conanfile.py: 100%|##########| 2.43k/2.43k [00:00<00:00, 7.34MB/s]
Downloading conan_export.tgz: 100%|##########| 766/766 [00:00<00:00, 2.53MB/s]
Decompressing conan_export.tgz: 100%|##########| 766/766 [00:00<00:00, 358kB/s]
eigen/3.3.7@conan/stable: Downloaded recipe revision 0
Installing package: eigen/3.3.7@conan/stable
Requirements
    eigen/3.3.7@conan/stable from 'conan-community' - Downloaded
Packages
    eigen/3.3.7@conan/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download

eigen/3.3.7@conan/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-community'
Downloading conanmanifest.txt: 100%|##########| 42.3k/42.3k [00:00<00:00, 1.22MB/s]
Downloading conaninfo.txt: 100%|##########| 150/150 [00:00<00:00, 460kB/s]
eigen/3.3.7@conan/stable: ERROR: Exception while getting package: 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
eigen/3.3.7@conan/stable: ERROR: Exception: <class 'conans.errors.ForbiddenException'> Permission denied for user: 'jjcasmar'. [Remote: conan-community]
eigen/3.3.7@conan/stable: WARN: Trying to remove package folder: /home/jjcasmar/.conan/data/eigen/3.3.7/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
ERROR: Permission denied for user: 'jjcasmar'. [Remote: conan-community]

我的遥控器如下:

conan-local: some-private-url [Verify SSL: True]
bincrafters_remote: https://api.bintray.com/conan/bincrafters/public-conan [Verify SSL: True]
conan-community: https://api.bintray.com/conan/conan-community/conan [Verify SSL: True]
conan-center: https://api.bintray.com/conan/conan/conan-center [Verify SSL: True]

[conan user的输出如下

Current user of remote 'conan-local' set to: 'None' (anonymous)
Current user of remote 'bincrafters_remote' set to: 'None' (anonymous)
Current user of remote 'conan-community' set to: 'jjcasmar' [Authenticated]
Current user of remote 'conan-center' set to: 'None' (anonymous)

因此,如果我正确地通过了柯南社区的身份验证,为什么在尝试安装配方时出现权限定义错误。另外,尽管安装配方我不需要进行身份验证,所以这里发生了什么?

编辑:我也尝试过在没有身份验证的情况下安装配方,但是在那种情况下,它只要求输入用户名/密码。如果我尝试使用Bintray用户名和密码,它将拒绝它们。

eigen/3.3.7@conan/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt: 100%|##########| 42.3k/42.3k [00:00<00:00, 1.33MB/s]
Downloading conaninfo.txt: 100%|##########| 150/150 [00:00<00:00, 407kB/s]
Please log in to "conan-center" to perform this action. Execute "conan user" command.
If you don't have an account sign up here: https://bintray.com/signup/oss
Remote 'conan-center' username: jjcasmar
Please enter a password for "jjcasmar" account: 
ERROR: Wrong user or password
Remote 'conan-center' username: 
c++ eigen conan
1个回答
0
投票

我在Ubuntu 18.04上于2020年遇到此问题,并能够通过以下终端命令升级到Conan 1.20.2来解决此问题:

sudo -H pip3 uninstall conan

sudo -H pip3 install conan==1.20.2

© www.soinside.com 2019 - 2024. All rights reserved.