GNU/Linux >> Belajar Linux >  >> Linux

Gagal Mengunduh Metadata untuk Repo 'repo_name'

Masalahnya

Semua perintah dnf gagal dengan kesalahan berikut:

# dnf repolist
Oracle Linux 8 BaseOS Latest (x86_64) 0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'ol8_baseos_latest'
Error: Failed to download metadata for repo 'ol8_baseos_latest
dnf was not able to refresh the cache as it could not reach the yum server itself, Hence pointing to cache being expired.
# yum clean metadata
Cache was expired <<<<<<<<<<<<<<
0 files remove

Solusinya

Masalah ini disebabkan oleh masalah jaringan atau pengaturan proxy yang salah.

1. Tambahkan proxy ke file /etc/dnf/dnf.conf .

http://[proxy-host].[domain].com:[port]
# vi /etc/dnf/dnf.conf

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True

http://[proxy-host].[domain].com:[port]

Harap ganti nama domain yang sepenuhnya memenuhi syarat, dan port yang digunakan proxy ke setelan proxy di atas.


Linux
  1. Contoh Perintah DNF Untuk Pemula

  2. Kesalahan:validasi md5 gagal untuk PyYAML-3.11.zip kemungkinan masalah unduhan? [Larutan]

  3. Cara memperbaiki "Gagal menyinkronkan cache untuk repo appstream"

  1. Gagal mengunduh metadata untuk repo 'AppStream' [CentOS]

  2. Ubuntu 20.04 Unduh Untuk Imac G5 Powerpc?

  3. Persepolis – Pengelola Unduhan Lintas Platform Gratis untuk Linux

  1. httpd:apr_sockaddr_info_get() gagal untuk rhel7

  2. DNF untuk pengguna APT

  3. youtube-dl-gui – GUI Lintas-Platform untuk youtube-dl