{"id":193,"date":"2023-07-01T09:03:44","date_gmt":"2023-07-01T01:03:44","guid":{"rendered":"https:\/\/127.0.0.1\/?p=193"},"modified":"2024-12-06T10:26:42","modified_gmt":"2024-12-06T02:26:42","slug":"red-hat%e6%97%a0%e6%b3%95%e6%9b%b4%e6%96%b0%e8%ae%a2%e9%98%85%e5%ad%98%e5%82%a8%e5%ba%93","status":"publish","type":"post","link":"https:\/\/silky.cn\/?p=193","title":{"rendered":"red hat\u65e0\u6cd5\u66f4\u65b0\u8ba2\u9605\u5b58\u50a8\u5e93"},"content":{"rendered":"\r\n<h3 class=\"wp-block-heading\">red hat\u65e0\u6cd5\u66f4\u65b0\u8ba2\u9605\u5b58\u50a8\u5e93<\/h3>\r\n\r\n\r\n\r\n<p>\u95ee\u9898\u63cf\u8ff0\uff1a<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Updating Subscription Management repositories.<\/li>\r\n\r\n\r\n\r\n<li>Red Hat Enterprise Linux 8 for x86_64 &#8211; BaseOS (RPMs)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/li>\r\n\r\n\r\n\r\n<li>Errors during downloading metadata for repository &#8216;rhel-8-for-x86_64-baseos-rpms&#8217;:<\/li>\r\n\r\n\r\n\r\n<li>\u00a0 &#8211; Status code: 403 for https:\/\/cdn.redhat.com\/content\/dist\/rhel8\/8\/x86_64\/baseos\/os\/repodata\/repomd.xml (IP: 0.0.0.0)<\/li>\r\n\r\n\r\n\r\n<li>Error: Failed to download metadata for repo &#8216;rhel-8-for-x86_64-baseos-rpms&#8217;: Cannot download repomd.xml: Cannot download repodata\/repomd.xml: All mirrors were tried<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p># sudo dnf update \u66f4\u65b0\u8ba2\u9605\u5b58\u50a8\u5e93\uff0c\u8fd4\u56de\uff1a<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Red Hat Enterprise Linux 8 for x86_64 &#8211; BaseOS (RPM) 361 B\/s | 360 B 00:00<\/li>\r\n\r\n\r\n\r\n<li>\u4e0b\u8f7d\u5b58\u50a8\u5e93\u201crhel-8-for-x86_64-baseos-rpms\u201d\u7684\u5143\u6570\u636e\u65f6\u51fa\u9519\uff1a<\/li>\r\n\r\n\r\n\r\n<li>\u65e0\u6cd5\u4e0b\u8f7d repo &#8216;rhel-8-for-x86_64-baseos-rpms&#8217; \u7684\u5143\u6570\u636e\uff1a\u65e0\u6cd5\u4e0b\u8f7d repomd.xml\uff1a\u65e0\u6cd5\u4e0b\u8f7d repodata\/repomd.xml\uff1a\u5e76\u5df2\u5c1d\u8bd5\u6240\u6709\u955c\u50cf<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u8ba2\u9605\u7ba1\u7406\u5668\u6ce8\u518c:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>sudo subscription-manager register<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>\u5982\u679c\u7cfb\u7edf\u5df2\u7ecf\u6ce8\u518c\uff0c\u4f1a\u8fd4\u56de\uff1a<\/p>\r\n\r\n<ul>\r\n<li>This system is already registered. Use &#8211;force to override<\/li>\r\n<\/ul>\r\n\r\n<p>\u8be5\u7cfb\u7edf\u5df2\u7ecf\u6ce8\u518c\uff0c \u4f7f\u7528 &#8211;force \u8986\u76d6<\/p>\r\n\r\n\r\n\r\n<p>\u4f7f\u7528\u547d\u4ee4&#8211;force\uff0c\u8fdb\u884c\u8986\u76d6<\/p>\r\n\r\n\r\n\r\n<p>\u8fdb\u884c\u8986\u76d6\u540e\uff0c\u4f1a\u8fdb\u884c\u539f\u6765\u7684\u7cfb\u7edf\u6ce8\u9500\uff0c\u5e76\u5220\u9664\u6240\u6709\u672c\u5730\u6570\u636e<\/p>\r\n\r\n\r\n\r\n<p>\u7cfb\u7edf\u8fd4\u56de\u63d0\u793a\uff0c\u8981\u6c42\u60a8\u8f93\u5165\u8d26\u6237ID\u53ca\u5bc6\u7801\u8fdb\u884c\u7cfb\u7edf\u6ce8\u518c\u3002<\/p>\r\n\r\n\r\n\r\n<p>\u8f93\u5165\u8d26\u6237ID\u53ca\u5bc6\u7801\uff0c\u8fd4\u56de\u63d0\u793a\uff1a<\/p>\r\n\r\n\r\n\r\n<p>\u7cfb\u7edf\u5df2\u6ce8\u518c\u53caID\u53f7\u7801<\/p>\r\n\r\n\r\n\r\n<p>\u8f93\u5165\u547d\u4ee4\u5373\u53ef\u8fdb\u884c\u7cfb\u7edf\u66f4\u65b0<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Sudo dnf update<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p><strong>\u5907\u6ce8\uff1a<\/strong><\/p>\r\n<p>\u4ee5\u4e0a\u547d\u4ee4\u65e0\u6548\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\uff0c\u66f4\u65b0red hat\u8ba2\u9605\u5b58\u50a8\u5e93<\/p>\r\n<p>[silky@silky.cn-0-10 ~]# sudo subscription-manager clean<br \/>\u5df2\u5220\u9664\u6240\u6709\u672c\u5730\u6570\u636e<br \/>[silky@silky.cn-0-10 ~]# subscription-manager register &#8211;username \u7528\u6237\u540d&#8211;password \u8d26\u6237\u5bc6\u7801 &#8211;auto-attach<\/p>\r\n<p>\u6b63\u5728\u6ce8\u518c\u5230\uff1asubscription.rhsm.redhat.com:443\/subscription<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>\u5b9e\u9645\u64cd\u4f5c\u6b65\u9aa4:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>[Debian@VOEL-0-15-SILKY ~]$ sudo subscription-manager register<\/li>\r\n\r\n\r\n\r\n<li>This system is already registered. Use &#8211;force to override<\/li>\r\n\r\n\r\n\r\n<li>[Debian @ VOEL-0-15-SILKY ~]$ sudo subscription-manager register &#8211;force<\/li>\r\n\r\n\r\n\r\n<li>Unregistering from: subscription.rhsm.redhat.com:443\/subscription<\/li>\r\n\r\n\r\n\r\n<li>The system with UUID 00000000-0000-0000-0000-000000000000 has been unregistered<\/li>\r\n\r\n\r\n\r\n<li>All local data removed<\/li>\r\n\r\n\r\n\r\n<li>Registering to: subscription.rhsm.redhat.com:443\/subscription<\/li>\r\n\r\n\r\n\r\n<li>Username: \u8d26\u6237ID<\/li>\r\n\r\n\r\n\r\n<li>Password: \u8d26\u6237\u5bc6\u7801<\/li>\r\n\r\n\r\n\r\n<li>The system has been registered with ID: 00000000-0000-0000-0000-000000000000<\/li>\r\n\r\n\r\n\r\n<li>The registered system name is: VOEL-0-15-SILKY<\/li>\r\n<\/ul>\r\n","protected":false},"excerpt":{"rendered":"<p><span itemprop=\"description\">red hat\u65e0\u6cd5\u66f4\u65b0\u8ba2\u9605\u5b58\u50a8\u5e93 \u95ee\u9898\u63cf\u8ff0\uff1a # sudo \u2026 <a class=\"read-more-candy\" href=\"https:\/\/silky.cn\/?p=193\">\ud83c\udf6c \u56bc\u4e00\u56bc<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[65,74,75],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-essay","tag-red-hat"],"_links":{"self":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":16,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":1014,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions\/1014"}],"wp:attachment":[{"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}