[SOLVED] Error: Failed to download metadata for repo 'appstream' - CentOS 8

Originally published at: [SOLVED] Error: Failed to download metadata for repo 'appstream' - CentOS 8 - Computer How To

In this article you will learn how to fix Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist. If you try update CentOS 8 with dnf update or yum update commands you will receive the following error: CentOS 8 can’t longer receive updates from CentOS project and it…