【问题标题】:Where can I find the error with yum repository?我在哪里可以找到 yum 存储库的错误?
【发布时间】:2021-03-24 23:40:07
【问题描述】:

我无法在其他网站上找到此问题的答案

当 yum 检查 repo 文件是 /etc/yum.repos.d 时缺少错误消息,我有点困惑

我已将 RedHat ISO 永久安装到 /sr0 上,我正在尝试使用 /sr0/AppStream 中的存储库

但是,当我将存储库文件放在 yum.repo.d 上时:

[AppStream]
name=AppStream
baseurl=file:///sr0/AppStream
enabled=1

然后我运行yum update,我收到以下消息:

Problem Repository: [AppStream] 
bandwith:0
baseurl: file:///sr0/AppStream
cachedir: /var/cache/dnf
cost: 1000
countme: 0
delarpm: 1
delarpm_percentage: 75
enabled: 1
...

但我没有收到错误消息。

【问题讨论】:

    标签: linux repository redhat yum


    【解决方案1】:

    实际上,我发现了正在发生的事情。 显然,正在输出更详细的错误消息。只是我无法看到它。因为我处于非图形(multiuser.target)模式,所以我无法向上滚动终端输出。我能够看到完整的错误消息,我将输出重定向到一个文件然后读取它:

    yum update  2> error_output.txt && less error_output.txt
    

    【讨论】:

      猜你喜欢
      • 2018-12-26
      • 2013-06-06
      • 2011-08-04
      • 2021-05-03
      • 2012-09-18
      • 1970-01-01
      • 2016-06-10
      • 1970-01-01
      • 2013-10-17
      相关资源
      最近更新 更多