{"id":24,"date":"2022-12-31T13:17:50","date_gmt":"2022-12-31T05:17:50","guid":{"rendered":"https:\/\/www.book2022.top\/?p=24"},"modified":"2022-12-31T13:17:50","modified_gmt":"2022-12-31T05:17:50","slug":"%e6%9b%b4%e6%96%b0-debian-%e7%b3%bb%e7%bb%9f%e5%86%85%e6%a0%b8%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.book2020.top\/?p=24","title":{"rendered":"\u66f4\u65b0 debian \u7cfb\u7edf\u5185\u6838\u7248\u672c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Debian \u7cfb\u7edf\u7684\u5185\u6838\u5347\u7ea7\u7684\u7b80\u5355\u65b9\u6cd5\u3002\u672c\u7bc7\u4ee5 Debian 10 \u4e3a\u4f8b\uff0c\u6240\u6709\u547d\u4ee4\u5747\u4ee5 root \u7528\u6237\u8fd0\u884c\u3002<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u6dfb\u52a0\u6e90<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb http:\/\/deb.debian.org\/debian buster-backports main\" &gt; \/etc\/apt\/sources.list.d\/backports.list\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5\u6700\u65b0\u5185\u6838\u548c\u5934\u6587\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770b\u53ef\u5b89\u88c5\u7684\u5185\u6838\u7248\u672c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt search linux-image\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\uff0c\u6709\u4e9b\u4eba\u53ef\u80fd\u4f1a\u5b89\u88c5\u4e91\u7248\u672c\uff08\u5982\uff0clinux-image-<em>.**.<\/em>-cloud-amd64\uff09\u7684\u5185\u6838\uff0c\u8be5\u79cd\u7248\u672c\u7f3a\u5931\u4e00\u4e9b\u5fc5\u8981\u7684\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5b89\u88c5\u540e\u53ef\u80fd\u5bfc\u81f4\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528\uff0c\u5982 SSH \u8fde\u63a5\u7b49\u3002\u5efa\u8bae\u6309\u5982\u4e0b\u65b9\u5f0f\u5b89\u88c5\u5b8c\u5168\u7248\u3002<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt -t buster-backports install linux-image-amd64<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt -t buster-backports install linux-headers-amd64<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>update-grub<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>shutdown -r now\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u67e5\u770b\u5185\u6838\u7248\u672c<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5378\u8f7d\u65e7\u5185\u6838<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf7\u786e\u4fdd\u4f7f\u7528\u4e2d\u7684\u5185\u6838\u4e0d\u8981\u5378\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg --list | grep linux-image<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u5378\u8f7d\u6307\u5b9a\u7684\u65e7\u5185\u6838<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt purge linux-image-*.**.*-**-cloud-amd64<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5220\u9664\u65e7\u5934\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg --list | grep linux-headers\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">apt purge linux-headers-*.**.*-**-cloud-amd64<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5982\u679c\u4f7f\u7528\u4e2d\u7684\u5185\u6838\u7f3a\u5931\u5934\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install linux-headers-$(uname -r)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4fdd\u6301\u5185\u6838\u6700\u65b0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u4e0b\u9762\u547d\u4ee4\u6dfb\u52a0\u5230&nbsp;<code>\/etc\/apt\/preferences.d\/pinning.pref<\/code>&nbsp;\u6587\u4ef6\u4e2d\uff08\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u521b\u5efa\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Package: linux-image-amd64 linux-headers-amd64\nPin: release n=buster-backports\nPin-Priority: 900<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/xujinzh.github.io\/2022\/02\/14\/update-debian-kernel\/\">\u539f\u4f5c\u8005\uff1a Jinzhong Xu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian \u7cfb\u7edf\u7684\u5185\u6838\u5347\u7ea7\u7684\u7b80\u5355\u65b9\u6cd5\u3002\u672c\u7bc7\u4ee5 Debian 10 \u4e3a\u4f8b\uff0c\u6240\u6709\u547d\u4ee4\u5747\u4ee5 root \u7528\u6237\u8fd0\u884c\u3002 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.book2020.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.book2020.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.book2020.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}