EPEL & Codeready-builder AWS EC2 RHEL8
EPEL & Codeready-builder AWS EC2 RHEL8
我正在 运行使用 RHEL8 AMI 连接 EC2 实例。
我希望在实例上安装 R,我相信我需要 EPEL 包并通过以下两个命令启用 codeready 构建器
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
更多信息在 (https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/)
我可以很好地下载 epel(第一行),但是当我 运行 第二行时,我得到以下信息:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms.
另外,当我尝试 运行 以下内容时,我得到以下信息:
This system has no repositories available through subscriptions.
为了完整起见,这是我尝试安装 R 时的错误
$sudo yum install -y R
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC.
Error:
Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed
- package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
有没有人有任何想法或已经解决了同样的问题?
刚写完就想通了...
供任何人参考,似乎 AWS 的命令写错了。
还是如上图下载epel包
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
而不是来自 AWS 网站的以下内容
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
你可以使用
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
然后继续 sudo yum install -y R
我正在 运行使用 RHEL8 AMI 连接 EC2 实例。
我希望在实例上安装 R,我相信我需要 EPEL 包并通过以下两个命令启用 codeready 构建器
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
更多信息在 (https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/)
我可以很好地下载 epel(第一行),但是当我 运行 第二行时,我得到以下信息:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms.
另外,当我尝试 运行 以下内容时,我得到以下信息:
This system has no repositories available through subscriptions.
为了完整起见,这是我尝试安装 R 时的错误
$sudo yum install -y R
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC.
Error:
Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed
- package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
有没有人有任何想法或已经解决了同样的问题?
刚写完就想通了...
供任何人参考,似乎 AWS 的命令写错了。
还是如上图下载epel包
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
而不是来自 AWS 网站的以下内容
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
你可以使用
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
然后继续 sudo yum install -y R