我有一个新安装的阿尔马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发布于 2022-04-19 22:50:47
您似乎缺少了/etc/yum.repos.d/almalinux.repo文件,它是almalinux-释放包的一部分。它定义了“baseos”、“appstream”等存储库。
我建议手动重新安装这个包,并仔细观察为什么您的系统神秘地缺少一个关键组件,比如基本的repos。还有谁在这个系统上有超级用户?
https://unix.stackexchange.com/questions/699525
复制相似问题