Knowledge Center Monthly Newsletter - March 2025
Stay up to date with the latest from the Knowledge Center. See all new and updated Knowledge Center articles published in the last month and re:Post’s top contributors.
【以下的问题经过翻译处理】 我在 us-gov-west 中有一个实例,它以前可以访问 RHEL 8 软件包存储库,但现在不能。我收到的错误是:
更新订阅管理存储库。 无法读取消费者身份 该系统未在授权服务器上注册。您可以使用 subscription-manager 进行注册。 追溯(最近一次通话): 文件“/usr/lib/python3.6/site-packages/dnf/plugin.py”,第 104 行,在 _caller getattr(插件,方法)() 文件“/usr/lib/python3.6/site-packages/dnf-plugins/amazon-id.py”,第 111 行,在配置中 aws_region = json.loads(id_doc)['区域'] 加载文件“/usr/lib64/python3.6/json/__init__.py”,第 348 行 '不是 {!r}'.format(s.__class__.__name__)) TypeError:JSON 对象必须是 str、bytes 或 bytearray,而不是“NoneType” 适用于 x86_64 的 Red Hat Enterprise Linux 8 - 来自 RHUI 的 AppStream (RPM) 0.0 B/s | 0 乙 00:00 下载存储库“rhel-8-appstream-rhui-rpms”的元数据时出错: - Curl 错误 (6):无法解析 https://rhui.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os 的主机名 [无法解析主机:rhui.REGION.aws.ce.redhat.com] 错误:无法下载存储库“rhel-8-appstream-rhui-rpms”的元数据:无法准备内部镜像列表:Curl 错误 (6):无法解析 https://rhui.REGION.aws.ce 的主机名。 redhat.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os [无法解析主机:rhui.REGION.aws.ce.redhat.com]
问题似乎是插件用正确的区域替换了 REGION,但实际上并没有发生。我认为这个问题可能是因为 rh-amazon-rhui-client 的版本太旧,因为我认为这在过去对其他人来说是个问题所以我将 rh-amazon-rhui-client 更新为 4.0.4-1这并没有解决问题。网络(路由、DNS 等)似乎都运行良好。有没有人有任何建议或指示?谢谢你!
【以下的回答经过翻译处理】 该脚本可能使用 EC2 实例的元数据(Meta Data)服务来查找它所在的区域。IMDS 是否已关闭或设置为仅支持 IMDS 的 V2?
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。