问题描述
在RHEL 8.2 EC2主机中安装Python(版本2或3)失败。 错误:找不到匹配项:python
参数不匹配:python3 错误:找不到匹配项:python3
我已经在主机中的可用回购列表下面捕获了
。# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64
Product ID: 123
Version: 8.2
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 03/01/2020
Ends: 03/01/2021
# subscription-manager repos --list
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: satellite-tools-6.7-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Satellite Tools 6.7 for RHEL 8 x86_64 (RPMs)
Repo URL: https://ip-210-14-0-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/layered/rhel8/x86_64/s
at-tools/6.7/os
Enabled: 1
Repo ID: rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL: https://ip-10-214-10-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/rhel8/$releasever/x86_
64/appstream/os
Enabled: 1
Repo ID: rhel-8-for-x86_64-baSEOs-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaSEOS (RPMs)
Repo URL: https://ip-10-214-10-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/rhel8/$releasever/x86_
64/baSEOs/os
Enabled: 1
Repo ID: ansible-2.8-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Ansible Engine 2.8 for RHEL 8 x86_64 (RPMs)
Repo URL: https://ip-10-214-10-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/layered/rhel8/x86_64/a
nsible/2.8/os
Enabled: 1
Repo ID: rh-gluster-3-client-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Storage Native Client for RHEL 8 (RPMs)
Repo URL: https://ip-10-214-10-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/layered/rhel8/x86_64/r
hgs-client/3.5/os
Enabled: 1
Repo ID: rhv-4-tools-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Virtualization 4 Tools for RHEL 8 x86_64 (RPMs)
Repo URL: https://ip-10-214-0-32.us-west-2.compute.internal/pulp/repos/Concur/Library/RHEL_8/content/dist/layered/rhel8/x86_64/r
hv-tools/4/os
Enabled: 1
Collapse
-------------
# sudo yum install python
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaSEOS (RPMs) 42 kB/s | 2.1 kB 00:00
Red Hat Ansible Engine 2.8 for RHEL 8 x86_64 (RPMs) 47 kB/s | 2.3 kB 00:00
Red Hat Virtualization 4 Tools for RHEL 8 x86_64 (RPMs) 48 kB/s | 2.3 kB 00:00
Red Hat Satellite Tools 6.7 for RHEL 8 x86_64 (RPMs) 44 kB/s | 2.1 kB 00:00
Red Hat Storage Native Client for RHEL 8 (RPMs) 48 kB/s | 2.3 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 43 kB/s | 2.1 kB 00:00
No match for argument: python
Error: Unable to find a match: python
# subscription-manager repos --enable=*
Repository 'rhv-4-tools-for-rhel-8-x86_64-rpms' is enabled for this system.
Repository 'rhel-8-for-x86_64-appstream-rpms' is enabled for this system.
Repository 'ansible-2.8-for-rhel-8-x86_64-rpms' is enabled for this system.
Repository 'rhel-8-for-x86_64-baSEOs-rpms' is enabled for this system.
Repository 'rh-gluster-3-client-for-rhel-8-x86_64-rpms' is enabled for this system.
Repository 'satellite-tools-6.7-for-rhel-8-x86_64-rpms' is enabled for this system.
--------------
我尝试的命令未成功-sudo yum install python3,sudo yum install python2。
sudo yum search python3 的输出未列出要安装的有效rpm。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)