为什么 snapd 安装失败?没有提供 snapd-2.57.6-2.el8.x86_64 所需的 bash-completion

为什么 snapd 安装失败?没有提供 snapd-2.57.6-2.el8.x86_64 所需的 bash-completion

我运行命令

yum install snapd

得到

Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:04:34 ago on Thu 16 Feb 2023 03:14:18 PM UTC.
Error: 
 Problem: conflicting requests
  - nothing provides bash-completion needed by snapd-2.57.6-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@rhel ~]# yum install snapd --skip-broken
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:04:45 ago on Thu 16 Feb 2023 03:14:18 PM UTC.

我检查了 uname

Linux rhel.localdomain 5.14.0-162.12.1.el9_1.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Dec 20 06:06:30 EST 2022 x86_64 x86_64 x86_64 GNU/Linux

为什么在 rhel9 上 snapd 安装失败?

答案1

看来系统正在寻找bash-completion。您可以尝试在存储库中搜索它:yum search bash-completion如果存在,请使用# yum install bash-completion.

相关内容