【问题标题】:yum and dnf install/update takes 5 minutes to start on RHEL8yum 和 dnf 安装/更新需要 5 分钟才能在 RHEL8 上启动
【发布时间】:2020-06-05 00:02:09
【问题描述】:

如果我在最近更新的 RHEL8 上以 root 身份运行 yum 或 dnf,它可以顺利运行。一旦我尝试使用 sudo 用户(添加到 wheel 组)运行它,最多需要 5 分钟。

做一个 yum clean 并没有帮助。

我通常使用 Ansible 从远程主机运行更新,但 Ansible 在尝试运行 yum 模块几分钟后断开连接。

我将 SELinux 设置为禁用,以防万一,并检查了 dnf.conf 中的代理设置 - 一切看起来都很好。非常感谢任何意见。

这是 dnf.log

2020-02-20T15:33:13Z INFO Updating Subscription Management repositories.
2020-02-20T15:37:36Z DEBUG DNF version: 4.2.7
2020-02-20T15:37:36Z DDEBUG Command: yum update
2020-02-20T15:37:36Z DDEBUG Installroot: /
2020-02-20T15:37:36Z DDEBUG Releasever: 8
2020-02-20T15:37:36Z DEBUG cachedir: /var/cache/dnf
2020-02-20T15:37:36Z DDEBUG Base command: update
2020-02-20T15:37:36Z DDEBUG Extra commands: ['update']
2020-02-20T15:37:37Z DEBUG repo: using cache for: epel-modular
2020-02-20T15:37:37Z DEBUG epel-modular: using metadata from Sat Feb 15 03:19:39 2020.
2020-02-20T15:37:37Z DEBUG repo: using cache for: epel
2020-02-20T15:37:37Z DEBUG epel: using metadata from Thu Feb 20 06:38:22 2020.
2020-02-20T15:37:38Z DEBUG reviving: 'rhel-8-for-x86_64-baseos-rpms' can be revived - repomd matches.
2020-02-20T15:37:38Z DEBUG rhel-8-for-x86_64-baseos-rpms: using metadata from Thu Feb 13 10:30:57 2020.
2020-02-20T15:37:38Z DEBUG reviving: 'rhel-8-for-x86_64-appstream-rpms' can be revived - repomd matches.
2020-02-20T15:37:39Z DEBUG rhel-8-for-x86_64-appstream-rpms: using metadata from Thu Feb 20 11:06:31 2020.
2020-02-20T15:37:39Z DDEBUG timer: sack setup: 3550 ms
2020-02-20T15:37:39Z DEBUG Completion plugin: Generating completion cache...
2020-02-20T15:37:40Z DEBUG --> Starting dependency resolution
2020-02-20T15:37:40Z DEBUG --> Finished dependency resolution
2020-02-20T15:37:40Z DDEBUG timer: depsolve: 277 ms
2020-02-20T15:37:40Z INFO Dependencies resolved.
2020-02-20T15:37:40Z INFO Nothing to do.
2020-02-20T15:37:40Z INFO Complete!
2020-02-20T15:37:40Z DDEBUG Cleaning up.

【问题讨论】:

  • 欢迎来到 SatckOverflow! StackOverflow 旨在收集与软件开发相关的问题和答案。您有更多机会在unix.stackexchange.com 获得答案

标签: ansible yum rhel dnf


【解决方案1】:

我解决了这个问题。代理未在 /etc/rhsm/rhsm.conf 中正确设置 我不明白为什么以 root 身份运行不会导致同样的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-27
    • 2021-12-30
    • 2018-02-13
    • 1970-01-01
    • 2017-05-28
    • 2021-07-02
    • 1970-01-01
    相关资源
    最近更新 更多