{"id":3005,"date":"2022-10-17T10:59:54","date_gmt":"2022-10-17T02:59:54","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=3005"},"modified":"2022-10-17T11:01:12","modified_gmt":"2022-10-17T03:01:12","slug":"ubuntu-linux%e5%a6%82%e4%bd%95%e9%81%bf%e5%85%8d%e6%84%8f%e5%a4%96%e5%8d%87%e7%b4%9akernel%e7%89%88%e6%9c%ac%ef%bc%8c%e9%80%a0%e6%88%90%e6%96%b0%e7%89%88%e4%b8%8d%e6%94%af%e6%8f%b4%e5%ae%a2%e8%a3%bd","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=3005","title":{"rendered":"UBUNTU linux\u5982\u4f55\u907f\u514d\u610f\u5916\u5347\u7d1aKERNEL\u7248\u672c\uff0c\u9020\u6210\u65b0\u7248\u4e0d\u652f\u63f4\u5ba2\u88fd\u786c\u9ad4\u9a45\u52d5"},"content":{"rendered":"<p>KERNEL\u66f4\u65b0\u7684\u76ee\u7684\u662f\u8981\u652f\u63f4\u786c\u9ad4\u3001\u4fee\u6539BUG\u548c\u5b89\u5168\u6027\u4fee\u5fa9\u3002<br \/>\n\u4f46\u662f\u5982\u679c\u5e73\u5e38\u4f7f\u7528\u7684\u597d\u597d\u7684\uff0c\u88ab\u66f4\u65b0KERNEL\u53ef\u80fd\u6703\u9047\u5230\u610f\u5916\u72c0\u6cc1\u3002<br \/>\n\u50cf\u662f\u65b0\u7248\u7684\u6703\u9020\u6210amdgpu\u9a45\u52d5\u7a0b\u5f0f\u5c31\u6703\u9020\u6210\u4e0d\u652f\u63f4DKMS(\u52d5\u614b\u6838\u5fc3\u6a21\u7d44\u652f\u63f4Dynamic Kernel Module Support)\u7de8\u8b6f\u3002<br \/>\n\u6216\u8005\u65b0\u7248\u7684\u6703\u56e0\u70ba\u6c92\u6709\u5ba2\u88fd\u786c\u9ad4\u652f\u63f4\uff0c\u8981\u91cd\u65b0\u7de8\u8b6f\u548c\u5b89\u88dd\u555f\u7528\uff0c\u91cd\u958b\u6a5f\u6210\u65b0\u7248\u4ee5\u5f8c\uff0c\u5ffd\u7136\u67d0\u500b\u786c\u9ad4\u4e0d\u6b63\u5e38\u800c\u9020\u6210\u56f0\u64fe\u3002<br \/>\n\u90a3\u6709\u6c92\u6709\u4ec0\u9ebc\u89e3\u6cd5\u4f86\u6d88\u6975\u7684\u514b\u670dKERNEL\u66f4\u7248\u5347\u7d1a\u5462\uff1f<br \/>\n\u9084\u771f\u7684\u6709\uff1a<br \/>\n<strong>\u65b9\u6cd5\u4e00<\/strong><br \/>\n\u7de8\u8f2fapt\u5ffd\u7565\u66f4\u65b0\u6e05\u55ae<br \/>\n<code>sudo nano \/etc\/apt\/apt.conf.d\/50unattended-upgrades<\/code><br \/>\n\u627e\u985e\u4f3c\u9019\u884c\u7684\u5167\u5bb9\uff0c\u52a0\u5165\u8981\u5ffd\u7565\u7684\u5957\u4ef6\u540d\u7a31\u3002<br \/>\n<code>\/\/ List of packages to not update (regexp are supported)<br \/>\nUnattended-Upgrade::Package-Blacklist {<br \/>\n        \"linux-generic\";<br \/>\n        \"linux-image-generic\";<br \/>\n        \"linux-headers-generic\";<br \/>\n\/\/      \"vim\";<br \/>\n\/\/      \"libc6\";<br \/>\n\/\/      \"libc6-dev\";<br \/>\n\/\/      \"libc6-i686\";<br \/>\n};<\/code><br \/>\n\u5b58\u6a94\u96e2\u958b\u5f8c\uff0c\u9019\u6642\u5019apt update\u61c9\u8a72\u5c31\u6703\u5ffd\u7565\u6307\u5b9a\u7684\u5957\u4ef6\u4e0d\u505a\u66f4\u65b0\u548c\u5347\u7d1a\u3002<\/p>\n<p><strong>\u65b9\u6cd5\u4e8c<\/strong><br \/>\n\u4e0b\u500bHOLD\u6307\u4ee4\uff0c\u4e0d\u66f4\u65b0\u6307\u5b9a\u7684\u5957\u4ef6\u3002\u4e00\u822cKERNEL\u6703\u7528\u5230\u7684\u7e3d\u5957\u4ef6\u540d\u7a31\u5982\u4e0b\u3002<br \/>\n<code>sudo apt-mark hold linux-generic linux-headers-generic linux-image-generic linux-generic-hwe-22.04 linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04<\/code><br \/>\n\u90a3\u5982\u679c\u67d0\u5929\u60f3\u5230\uff0c\u78ba\u5b9a\u8981\u66f4\u65b0\u5347\u7d1a\u7684\u8a71\uff0c\u5247\u8981\u4e0b\u9019\u500b\u6307\u4ee4\u89e3\u9664HOLD\u72c0\u614b\u7684\u5957\u4ef6\u3002<br \/>\n<code>sudo apt-mark unhold linux-generic linux-headers-generic linux-image-generic linux-generic-hwe-22.04 linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04<\/code><\/p>\n<p>\u53c3\u8003\u8cc7\u6599\uff1a<br \/>\n1. <a href=\"https:\/\/askubuntu.com\/questions\/1174833\/disable-kernel-auto-updates-in-ubuntu-18-04-cli-only\" rel=\"noopener\" target=\"_blank\">https:\/\/askubuntu.com\/questions\/1174833\/disable-kernel-auto-updates-in-ubuntu-18-04-cli-only<\/a><br \/>\n2. <a href=\"https:\/\/www.tecmint.com\/disable-lock-blacklist-package-updates-ubuntu-debian-apt\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.tecmint.com\/disable-lock-blacklist-package-updates-ubuntu-debian-apt\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>KERNEL\u66f4\u65b0\u7684\u76ee\u7684\u662f\u8981\u652f\u63f4\u786c\u9ad4\u3001\u4fee\u6539BUG\u548c\u5b89\u5168\u6027\u4fee\u5fa9\u3002 \u4f46\u662f\u5982\u679c\u5e73\u5e38\u4f7f\u7528\u7684\u597d\u597d\u7684\uff0c\u88ab\u66f4\u65b0KERNEL\u53ef\u80fd\u6703\u9047\u5230\u610f\u5916\u72c0\u6cc1\u3002 \u50cf\u662f\u65b0\u7248\u7684\u6703\u9020\u6210amdgpu\u9a45\u52d5\u7a0b\u5f0f\u5c31\u6703\u9020\u6210\u4e0d\u652f\u63f4DKMS(\u52d5\u614b\u6838\u5fc3\u6a21\u7d44\u652f\u63f4Dynamic Kernel Module Support)\u7de8\u8b6f\u3002 \u6216\u8005\u65b0\u7248\u7684\u6703\u56e0\u70ba\u6c92\u6709\u5ba2\u88fd\u786c\u9ad4\u652f\u63f4\uff0c\u8981\u91cd\u65b0\u7de8\u8b6f\u548c\u5b89\u88dd\u555f\u7528\uff0c\u91cd\u958b\u6a5f\u6210\u65b0\u7248\u4ee5\u5f8c\uff0c\u5ffd\u7136\u67d0\u500b\u786c\u9ad4\u4e0d\u6b63\u5e38\u800c\u9020\u6210\u56f0\u64fe\u3002 \u90a3\u6709\u6c92\u6709\u4ec0\u9ebc\u89e3\u6cd5\u4f86\u6d88\u6975\u7684\u514b\u670dKERNEL\u66f4\u7248\u5347\u7d1a\u5462\uff1f \u9084\u771f\u7684\u6709\uff1a \u65b9\u6cd5\u4e00 \u7de8\u8f2fapt\u5ffd\u7565\u66f4\u65b0\u6e05\u55ae sudo nano \/etc\/apt\/apt.conf.d\/50unattended-upgrades \u627e\u985e\u4f3c\u9019\u884c\u7684\u5167\u5bb9\uff0c\u52a0\u5165\u8981\u5ffd\u7565\u7684\u5957\u4ef6\u540d\u7a31\u3002 \/\/ List of packages to not update (regexp are supported) Unattended-Upgrade::Package-Blacklist { &#8220;linux-generic&#8221;; &#8220;linux-image-generic&#8221;; &#8220;linux-headers-generic&#8221;; \/\/ &#8220;vim&#8221;; \/\/ &#8220;libc6&#8221;; \/\/ &#8220;l&#8230; <a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=3005\" class=\"readmore\">Read more (\u5b8c\u6574\u6587\u7ae0\u5167\u5bb9)<span class=\"screen-reader-text\">UBUNTU linux\u5982\u4f55\u907f\u514d\u610f\u5916\u5347\u7d1aKERNEL\u7248\u672c\uff0c\u9020\u6210\u65b0\u7248\u4e0d\u652f\u63f4\u5ba2\u88fd\u786c\u9ad4\u9a45\u52d5<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3005","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3005"}],"version-history":[{"count":3,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3005\/revisions"}],"predecessor-version":[{"id":3008,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3005\/revisions\/3008"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}