{"id":26132,"date":"2023-04-23T01:17:10","date_gmt":"2024-01-23T22:38:49","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/"},"modified":"2025-08-11T19:01:54","modified_gmt":"2025-08-11T11:01:54","slug":"%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/","title":{"rendered":"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum"},"content":{"rendered":"<h2>\u8fd9\u79cd\u75c7\u72b6<\/h2>\n<p>\u5f53\u6267\u884cyum update\u65f6\uff0c\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code># yum update\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:fastestmirror\r\nbase                            | 3.6 kB  00:00:00     \r\nhttp:\/\/mirror.centos.org\/altarch\/7\/kernel\/armhfp\/kernel-%24kvariant\/repodata\/repomd.xml: [Errno 14] HTTP Error 404 - Not Found\r\n\u4ed6\u306e\u30df\u30e9\u30fc\u3092\u8a66\u3057\u307e\u3059\u3002\r\nTo address this issue please refer to the below knowledge base article \r\n\r\nhttps:\/\/access.redhat.com\/articles\/1320623\r\n\r\nIf above article doesn't help to resolve this issue please create a bug on https:\/\/bugs.centos.org\/\r\n\r\n\r\n\r\n One of the configured repositories failed (CentOS Kernels for armhfp),\r\n and yum doesn't have enough cached data to continue. At this point the only\r\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\r\n\r\n     1. Contact the upstream for the repository and get them to fix the problem.\r\n\r\n     2. Reconfigure the baseurl\/etc. for the repository, to point to a working\r\n        upstream. This is most often useful if you are using a newer\r\n        distribution release than is supported by the repository (and the\r\n        packages for the previous distribution release still work).\r\n\r\n     3. Run the command with the repository temporarily disabled\r\n            yum --disablerepo=centos-kernel ...\r\n\r\n     4. Disable the repository permanently, so yum won't use it by default. Yum\r\n        will then just ignore the repository until you permanently enable it\r\n        again or use --enablerepo for temporary usage:\r\n\r\n            yum-config-manager --disable centos-kernel\r\n        or\r\n            subscription-manager repos --disable=centos-kernel\r\n\r\n     5. Configure the failing repository to be skipped, if it is unavailable.\r\n        Note that yum will try to contact the repo. when it runs most commands,\r\n        so will have to try and fail each time (and thus. yum will be be much\r\n        slower). If it is a very temporary problem though, this is often a nice\r\n        compromise:\r\n\r\n            yum-config-manager --save --setopt=centos-kernel.skip_if_unavailable=true\r\n\r\nfailure: repodata\/repomd.xml from centos-kernel: [Errno 256] No more mirrors to try.\r\nhttp:\/\/mirror.centos.org\/altarch\/7\/kernel\/armhfp\/kernel-$kvariant\/repodata\/repomd.xml: [Errno 14] HTTP Error 404 - Not Found\r\n<\/code><\/pre>\n<h2>The reason<\/h2>\n<p>\u67e5\u770bhttp:\/\/mirror.centos.org\/altarch\/7\/kernel\/armhfp\/kernel-%24kvariant\/repodata\/repomd.xml\u8fd9\u4e2a\u94fe\u63a5\u65f6\u6211\u5f97\u5230\u4e86\u4e00\u4e2a404\u9519\u8bef\u3002<br \/>\n\u867d\u7136\u6211\u4e0d\u77e5\u9053\u539f\u56e0\uff0c\u4f46\u662f\u5f53\u6211\u67e5\u770b\u76ee\u6807\u94fe\u63a5\uff08http:\/\/mirror.centos.org\/altarch\/7\/kernel\/armhfp\/\uff09\u65f6\u53d1\u73b0\u5df2\u7ecf\u51c6\u5907\u597d\u4e86\u4e00\u4e2a\u540d\u4e3akernel-rpi2\/\u7684\u76ee\u5f55\u3002<br \/>\n\u6211\u7684\u7ec8\u7aef\u662fRaspBerryPi3\uff0c\u6240\u4ee5\u6211\u4eec\u5c06\u53c2\u8003\u8fd9\u4e2a\u76ee\u5f55\u3002<\/p>\n<h2>\u89e3\u51b3\u7684\u65b9\u5f0f<\/h2>\n<p>\u6253\u5f00 \/etc\/yum.repos.d\/CentOS-armhfp-kernel.repo \u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>[centos-kernel]\r\nname=CentOS Kernels for armhfp\r\nbaseurl=http:\/\/mirror.centos.org\/altarch\/7\/kernel\/$basearch\/kernel-$kvariant\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7\r\n       file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32\r\n<\/code><\/pre>\n<p>\u5c06\u6b64<br \/>\nbaseurl=http:\/\/mirror.centos.org\/altarch\/7\/kernel\/$basearch\/kernel-$kvariant<br \/>\n\u66ff\u6362\u4e3a<br \/>\nbaseurl=http:\/\/mirror.centos.org\/altarch\/7\/kernel\/$basearch\/kernel-rpi2\u3002<br \/>\n\u518d\u6b21\u5f3a\u8c03\uff0c\u867d\u7136\u662fRaspBerryPi3\uff0c\u4f46\u6ca1\u6709\u540d\u4e3arpi3\u7684\u76ee\u5f55\uff0c\u6240\u4ee5\u53c2\u8003rpi2\u3002<\/p>\n<p>\u5982\u679c\u53ef\u4ee5\u66f4\u6539\uff0c\u90a3\u4e48\u6267\u884c yum clean all \u7136\u540e\u6267\u884c yum update\u3002<\/p>\n<p>\u6211\u8ba4\u4e3a\u8fd9\u5e94\u8be5\u6ca1\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u987a\u5229\u66f4\u65b0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u79cd\u75c7\u72b6 \u5f53\u6267\u884cyum update\u65f6\uff0c\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u3002 # yum update \u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:fa [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26132","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0\" \/>\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.silicloud.com\/zh\/blog\/\u5728raspberrypi3\u4e0a\u7684centos-7-2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728raspberrypi3\u4e0a\u7684centos-7-2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-23T22:38:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T11:01:54+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/\",\"name\":\"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-23T22:38:49+00:00\",\"dateModified\":\"2025-08-11T11:01:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"description\":\"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0","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.silicloud.com\/zh\/blog\/\u5728raspberrypi3\u4e0a\u7684centos-7-2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum","og_description":"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728raspberrypi3\u4e0a\u7684centos-7-2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-23T22:38:49+00:00","article_modified_time":"2025-08-11T11:01:54+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/","name":"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-23T22:38:49+00:00","dateModified":"2025-08-11T11:01:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"description":"\u5173\u4e8e\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728RaspberryPi3\u4e0a\u7684CentOS 7.2\u4e2d\u65e0\u6cd5\u4f7f\u7528yum"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8raspberrypi3%e4%b8%8a%e7%9a%84centos-7-2%e4%b8%ad%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8yum%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26132"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26132\/revisions"}],"predecessor-version":[{"id":88672,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26132\/revisions\/88672"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}