dnf:「アクティブなリポジトリがありません...」に関連するAlma Linuxエラーの助けが必要です。

dnf:「アクティブなリポジトリがありません...」に関連するAlma Linuxエラーの助けが必要です。

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

私がやりたいことの1つは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

ベストアンサー1

ファイルが欠落しているようです/etc/yum.repos.d/almalinux.repoalmalinuxディストリビューションパック。 「baseos」、「appstream」などのリポジトリを定義します。

パッケージを手動で再インストールし、システムにデフォルトのストレージなどの重要なコンポーネントが欠けている理由を詳しく見てください。このシステムにスーパーユーザーがいる人は誰ですか?

おすすめ記事