{"id":16777,"date":"2022-07-04T16:15:49","date_gmt":"2022-07-04T10:45:49","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=16777"},"modified":"2022-07-04T17:25:39","modified_gmt":"2022-07-04T11:55:39","slug":"failed-to-download-metadata-for-repo-appstream-centos","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/","title":{"rendered":"Showing Error: Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS"},"content":{"rendered":"\n<p>In this article, we\u2019ll get to know, how to fix the error, \u201cFailed to download metadata for repo AppStream\u201d in CentOS 8.<\/p>\n\n\n\n<p>For example, you have installed a minimalist CentOS 8 on one of the servers. The entire process of installation goes smoothly and is successful.<\/p>\n\n\n\n<p>But, while updating the system, using the <strong>yum update<\/strong>, you\u2019re likely to get the error message: &#8220;Failed to download metadata for repo&#8221;<\/p>\n\n\n\n<p>Here is the error you\u2019ll get:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# yum update\nCentOS-8 - AppStream 70 B\/s | 38 B 00:00\nError: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist<\/pre>\n\n\n\n<p>Now the output from the <strong><em>\/var\/log\/dnf.log<\/em> <\/strong>for more debug information:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">2022-02-02T11:39:36Z DEBUG error: Curl error (6): Couldn't resolve host name for http:\/\/mirrorlist.centos.org\/?release=8&amp;arch=x86_64&amp;repo=AppStream&amp;infra=stock [Could not resolve host: mirrorlist.centos.org] (http:\/\/mirrorlist.centos.org\/?release=8&amp;arch=x86_64&amp;repo=AppStream&amp;infra=stock).\n2022-02-02T11:39:36Z WARNING Errors during downloading metadata for repository 'AppStream':\n- Curl error (6): Couldn't resolve host name for http:\/\/mirrorlist.centos.org\/?release=8&amp;arch=x86_64&amp;repo=AppStream&amp;infra=stock [Could not resolve host: mirrorlist.centos.org]\n2022-02-02T11:39:36Z DDEBUG Cleaning up.\n2022-02-02T11:39:36Z SUBDEBUG\nTraceback (most recent call last):\nFile \"\/usr\/lib\/python3.6\/site-packages\/dnf\/repo.py\", line 573, in load\nret = self._repo.load()\nFile \"\/usr\/lib64\/python3.6\/site-packages\/libdnf\/repo.py\", line 394, in load\nreturn _repo.Repo_load(self)\nRuntimeError: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http:\/\/mirrorlist.centos.org\/?release=8&amp;arch=x86_64&amp;repo=AppStream&amp;infra=stock [Could not resolve host: mirrorlist.centos.org]<\/pre>\n\n\n\n<p>If you verify the internet connection and DNS, it works alright as given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# ping google.com\nPING google.com (172.217.166.206) 56(84) bytes of data.\n64 bytes from del03s13-in-f14.1e100.net (172.217.166.206): icmp_seq=1 ttl=115 ti me=43.5 ms\n--- google.com ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min\/avg\/max\/mdev = 43.508\/43.508\/43.508\/0.000 ms<\/pre>\n\n\n\n<p>Now, how to fix this issue? Let\u2019s see in the below steps:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FIXING THE ERROR: FAILED TO DOWNLOAD METADATA FOR REPO<\/h2>\n\n\n\n<p>On 31st December 2021, CentOS Linux 9 had reached its End of Life (EOL). This means, it will not receive any development updates from the official CentOS project. Thereafter, 31st December 2021, for updating your CentOS, you will first need to change the mirrors to vault.centos.org. Here they will be archived for all time. Instead, you may also need to upgrade to CentOS stream.<\/p>\n\n\n\n<p>Here are the steps:<\/p>\n\n\n\n<p>Step 1: First go to the  <em><strong><code>\/etc\/yum.repos.d\/<\/code> <\/strong><\/em>directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# cd \/etc\/yum.repos.d\/<\/pre>\n\n\n\n<p>Step2: Now, run the commands given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# sed -i 's\/mirrorlist\/#mirrorlist\/g' \/etc\/yum.repos.d\/CentOS-*\n\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# sed -i 's|#baseurl=http:\/\/mirror.centos.org|baseurl=http:\/\/vault.centos.org|g' \/etc\/yum.repos.d\/CentOS-*<\/pre>\n\n\n\n<p>Step 3: After this, run the yum update:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@server ~]# yum update -y<\/pre>\n\n\n\n<p>And that&#8217;s all!<\/p>\n\n\n\n<p>By the following the above steps, you can easily fix the error, <strong>&#8220;Failed to Download Metadata for Repo \u2018AppStream\u2019.<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we\u2019ll get to know, how to fix the error, \u201cFailed to download metadata for repo AppStream\u201d in CentOS 8. For example, you have installed a minimalist CentOS 8 on one of the servers. The entire process of installation goes smoothly and is successful. But, while updating the system, using the yum update, [&hellip;]<\/p>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16777","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-domain-name-dns-issues"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS<\/title>\n<meta name=\"description\" content=\"Showing error, &quot;failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS\" \/>\n<meta property=\"og:description\" content=\"Showing error, &quot;failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-04T10:45:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-04T11:55:39+00:00\" \/>\n<meta name=\"author\" content=\"Nehal Khatri\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nehal Khatri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\"},\"author\":{\"name\":\"Nehal Khatri\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb\"},\"headline\":\"Showing Error: Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS\",\"datePublished\":\"2022-07-04T10:45:49+00:00\",\"dateModified\":\"2022-07-04T11:55:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\"},\"wordCount\":245,\"commentCount\":0,\"articleSection\":[\"Domain Name &amp; DNS Issues\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\",\"name\":\"Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2022-07-04T10:45:49+00:00\",\"dateModified\":\"2022-07-04T11:55:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb\"},\"description\":\"Showing error, \\\"failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Showing Error: Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb\",\"name\":\"Nehal Khatri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2022\/02\/nehal-khatri-150x150.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2022\/02\/nehal-khatri-150x150.png\",\"caption\":\"Nehal Khatri\"},\"description\":\"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/nehal-khatri\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS","description":"Showing error, \"failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/","og_locale":"en_US","og_type":"article","og_title":"Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS","og_description":"Showing error, \"failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2022-07-04T10:45:49+00:00","article_modified_time":"2022-07-04T11:55:39+00:00","author":"Nehal Khatri","twitter_misc":{"Written by":"Nehal Khatri","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/"},"author":{"name":"Nehal Khatri","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb"},"headline":"Showing Error: Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS","datePublished":"2022-07-04T10:45:49+00:00","dateModified":"2022-07-04T11:55:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/"},"wordCount":245,"commentCount":0,"articleSection":["Domain Name &amp; DNS Issues"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/","name":"Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2022-07-04T10:45:49+00:00","dateModified":"2022-07-04T11:55:39+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb"},"description":"Showing error, \"failed-to-download-metadata-for-repo-appstream? Check out the easy steps to fix this error.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/failed-to-download-metadata-for-repo-appstream-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Showing Error: Failed to Download Metadata for Repo \u2018AppStream\u2019- CentOS"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/93565765cf85bc4be78b4d9ccbe294bb","name":"Nehal Khatri","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2022\/02\/nehal-khatri-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2022\/02\/nehal-khatri-150x150.png","caption":"Nehal Khatri"},"description":"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/nehal-khatri\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=16777"}],"version-history":[{"count":28,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16777\/revisions"}],"predecessor-version":[{"id":16805,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16777\/revisions\/16805"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=16777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=16777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=16777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}