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.
Cara Kompres dan Dekompresi file .bz2 di Linux Menggunakan Perintah bzip2
Cara Menonaktifkan daftar pengguna pada layar masuk GNOME di CentOS/RHEL 8