我正在安装新的 Centos 8,并且第一次尝试使用 yum(在这台机器上)。对于任何安装或更新任何内容的尝试,我都会收到以下信息:
yum update
CentOS-8 - AppStream 0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'
Run Code Online (Sandbox Code Playgroud)
端口 80 已打开,但 nmap 报告它已关闭,可能是因为我尚未安装 apache。为了双重确定我已将端口 80 添加到firewalld,并已确认:
firewall-cmd --list-ports
25/tcp 80/tcp
Run Code Online (Sandbox Code Playgroud)
我尝试过各种建议,例如 yum clean 和清除 yum 缓存,但没有任何帮助。
这是 dnf.log 中的内容:
2020-03-30T19:33:01Z INFO --- logging initialized ---
2020-03-30T19:33:01Z DDEBUG timer: config: 4 ms
2020-03-30T19:33:01Z DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, …
Run Code Online (Sandbox Code Playgroud)