我有一个新安装的 Alma Linux 8,但在弄清楚如何安装软件包时遇到了问题。当我运行 dnf 时,我得到:
Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
我的转发器:
repo id repo name status
ha AlmaLinux 8 - HighAvailability disabled
ha-debuginfo AlmaLinux 8 - HighAvailability debuginfo disabled
ha-source AlmaLinux 8 - HighAvailability Source disabled
plus AlmaLinux 8 - Plus disabled
plus-debuginfo AlmaLinux 8 - Plus debuginfo disabled
plus-source AlmaLinux 8 - Plus Source disabled
powertools AlmaLinux 8 - PowerTools disabled
powertools-debuginfo AlmaLinux 8 - PowerTools debuginfo disabled
powertools-source AlmaLinux 8 - PowerTools Source disabled
resilientstorage AlmaLinux 8 - ResilientStorage disabled
resilientstorage-debuginfo AlmaLinux 8 - ResilientStorage debuginfo disabled
resilientstorage-source AlmaLinux 8 - ResilientStorage Source disabled
我想做的一项任务是升级到 PHP 8,但我需要先弄清楚这个 dnf/repo 问题。
我将不胜感激任何指导或参考链接,因为我无法完全找到有关我的特殊情况的帮助。这是我的 hostnamectl 输出的一部分:
Virtualization: openvz
Operating System: AlmaLinux 8.5 (Arctic Sphynx)
CPE OS Name: cpe:/o:almalinux:almalinux:8::baseos
Kernel: Linux 4.18.0
Architecture: x86-64