Cara mengatasi Errors during downloading metadata for repository ‘gf’ saat menjalankan update linux
saat menjalankan perintah:
yum update -y
Keluar pesan error seperti berikut:
[root@server ~]# yum update -y Ghettoforge packages that won't overwrite core distro packages. 18 kB/s | 9.5 kB 00:00 Errors during downloading metadata for repository 'gf': - Curl error (3): URL using bad/illegal format or missing URL for /* CF branding footer */repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for http:///repodata/repomd.xml [Host name '/repodata/repomd.xml [Host name ' malformed] - Curl error (3): URL using bad/illegal format or missing URL for /* Checkmark */repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for // Transition to "verifying" state/repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for // POST nonce to verification endpoint/repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for // js_probe: silently retry once before surfacing the error./repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for // js_probe mode: auto-fire after 1.5 s — no user interaction required./repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for // Transition to "verified" state/repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for /* Spinner */repodata/repomd.xml [ malformed] - Curl error (3): URL using bad/illegal format or missing URL for /* The actual checkbox */repodata/repomd.xml [ malformed] Error: Failed to download metadata for repo 'gf': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Penyebabnya adalah File /etc/yum.repos.d/gf.repo korup/ rusak. sehingga tidak bisa update.
untuk mengatasinya, silahkan jalankan perintah berikut:
rm -f /etc/yum.repos.d/gf.repo
setelah itu jalankan perintah:
yum clean all rm -rf /var/cache/yum
dan lakukan update kembali dengan menjalankan perintah:
yum update -y
