![添加“dnf copr启用@spacewalkproject/spacewalk-2.10-client”时出错](https://linux22.com/image/15128/%E6%B7%BB%E5%8A%A0%E2%80%9Cdnf%20copr%E5%90%AF%E7%94%A8%40spacewalkproject%2Fspacewalk-2.10-client%E2%80%9D%E6%97%B6%E5%87%BA%E9%94%99.png)
当我尝试在其中一台 Fedora 31 服务器上安装 spacewalk 客户端时,出现此错误。
# dnf copr enable @spacewalkproject/spacewalk-2.10-client
Enabling a Copr repository. Please note that this repository is not part of the main distribution, and quality may vary.
The Fedora Project does not exercise any power over the contents of this repository beyond the rules outlined in the Copr FAQ at <https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>, and packages are not held to any quality or security level.
Please do not file bug reports about these packages in Fedora Bugzilla. In case of problems, contact the owner of this repository.
Do you really want to enable copr.fedorainfracloud.org/@spacewalkproject/spacewalk-2.10-client? [y/N]: y
Error: This repository does not have any builds yet so you cannot enable it now.
我记得可以在服务器 A 上安装它,但是当在服务器 B 上尝试相同时出现此错误。我不确定有什么不同。
Server A $ cat /etc/os-release .
NAME=Fedora
VERSION="31 (Server Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Server Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
Server B# cat /etc/os-release
NAME=Fedora
VERSION="31 (Server Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Server Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
这是我之前能够安装的系统之一:
# rhn_register --version
rhn_register (Spacewalk Client Tools) 2.10.10-1.fc31
Copyright (C) 1999--2014 Red Hat, Inc.
Licensed under the terms of the GPLv2.
# cat /etc/redhat-release
Fedora release 31 (Thirty One)
答案1
这是因为该项目不提供 Fedora 31 的构建。请参阅https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/spacewalk-2.10-client/
您可以尝试一下执行平台的运气
dnf copr enable @spacewalkproject/spacewalk-2.10-client epel-8-x86_64
这将成功启用回购协议。但 RHEL8 软件包是否能在 Fedora 31 上运行还很难说。