首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我需要帮助解决dnf的Alma Linux错误:“没有启用的存储库.”

我需要帮助解决dnf的Alma Linux错误:“没有启用的存储库.”
EN

Unix & Linux用户
提问于 2022-04-19 04:56:45
回答 1查看 1.1K关注 0票数 0

我有一个新安装的阿尔马Linux 8,我有一个问题,如何能够安装软件包。当我运行dnf时,我得到:

代码语言:javascript
复制
Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".

我的评论家:

代码语言:javascript
复制
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输出的一部分:

代码语言:javascript
复制
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
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2022-04-19 22:50:47

您似乎缺少了/etc/yum.repos.d/almalinux.repo文件,它是almalinux-释放包的一部分。它定义了“baseos”、“appstream”等存储库。

我建议手动重新安装这个包,并仔细观察为什么您的系统神秘地缺少一个关键组件,比如基本的repos。还有谁在这个系统上有超级用户?

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/699525

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档