{"id":125,"date":"2023-07-18T11:28:39","date_gmt":"2023-07-18T03:28:39","guid":{"rendered":"https:\/\/www.book2022.top\/?p=125"},"modified":"2023-07-18T11:28:39","modified_gmt":"2023-07-18T03:28:39","slug":"%e5%bf%ab%e9%80%9f%e5%b0%86debian-11-bullseye-%e5%8d%87%e7%ba%a7-debian-12-bookworm","status":"publish","type":"post","link":"https:\/\/txt.book2020.top\/?p=125","title":{"rendered":"\u5feb\u901f\u5c06Debian 11 Bullseye \u5347\u7ea7 Debian 12 Bookworm"},"content":{"rendered":"\n<p>\u9664\u975e\u4f60\u662f\u7269\u7406\u670d\u52a1\u5668\uff0c\u4ee5\u53ca\u6ca1\u6709\u7528\u8fc7\u5947\u5947\u602a\u602a\u5b9a\u5236\u6216\u4fee\u6539\u7684\u5185\u6838\u7684 KVM \u6784\u67b6\u7684 VPS \u548c\u4e91\u4e3b\u673a\uff0c\u5426\u5219\u5347\u7ea7\u5927\u7248\u672c\u66f4\u65b0\u5185\u6838\u662f\u6709\u4e00\u5b9a\u673a\u7387\u5bfc\u81f4 Grub \u52a0\u8f7d\u5931\u8d25\u7684\uff0c\u5207\u8bb0\u5907\u4efd\u91cd\u8981\u6570\u636e\uff01<\/p>\n\n\n\n<p><em>OpenVZ 6 \u548c LXC \u6784\u67b6\u7684 VPS \u662f\u65e0\u6cd5\u5347\u7ea7\u7684\uff0c\u56e0\u4e3a\u4ed6\u4eec\u6ca1\u6709\u81ea\u5df1\u72ec\u7acb\u7684\u5185\u6838<\/em><\/p>\n\n\n\n<p>\u518d\u5f3a\u8c03\u4e00\u904d\uff0c\u4e00\u5b9a\u8981\u5907\u4efd\u91cd\u8981\u6570\u636e\uff01<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u64cd\u4f5c\u9700\u8981\u5728 root \u7528\u6237\u4e0b\u5b8c\u6210\uff0c\u8bf7\u4f7f\u7528&nbsp;<code>sudo -i<\/code>&nbsp;\u6216&nbsp;<code>su root<\/code>&nbsp;\u5207\u6362\u5230 root \u7528\u6237\u8fdb\u884c\u64cd\u4f5c<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u66f4\u65b0\u7cfb\u7edf\">\u66f4\u65b0\u7cfb\u7edf<\/h2>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u66f4\u65b0\u4f60\u5f53\u524d\u7684\u7cfb\u7edf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update &amp;&amp; apt upgrade -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt dist-upgrade -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt autoclean<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt autoremove -y<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u5185\u6838\u66f4\u65b0\u4e86\uff0c\u53ef\u4ee5\u91cd\u542f\u8ba9\u6700\u65b0\u7684\u5185\u6838\u751f\u6548\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u5347\u7ea7\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5347\u7ea7\u7cfb\u7edf\"><a href=\"https:\/\/u.sb\/debian-upgrade-12\/#%E5%8D%87%E7%BA%A7%E7%B3%BB%E7%BB%9F\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u5347\u7ea7\u7cfb\u7edf<\/h2>\n\n\n\n<p>\u9996\u5148\u66f4\u65b0&nbsp;<code>apt<\/code>&nbsp;\u6e90\uff0c\u66ff\u6362&nbsp;<code>bullseye<\/code>&nbsp;\u4e3a&nbsp;<code>bookworm<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/bullseye\/bookworm\/g' \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/bullseye\/bookworm\/g' \/etc\/apt\/sources.list.d\/*.list<\/code><\/pre>\n\n\n\n<p>\u5bf9\u4e8e Debian 12 \u4ee5\u540e\u7684\u7248\u672c\uff0c\u6240\u6709 Debian \u53ef\u4ee5\u5206\u53d1\u7684\u6253\u5305\u7684\u975e\u81ea\u7531\u56fa\u4ef6\u4e8c\u8fdb\u5236\u6587\u4ef6\uff08non-free\uff09\uff0c\u6bd4\u5982\u67d0\u4e9b\u9a71\u52a8\uff0c\u90fd\u88ab\u8f6c\u79fb\u5230 Debian Archive \u4e2d\u7684\u4e00\u4e2a\u65b0\u7ec4\u4ef6\uff0c\u79f0\u4e3a\u975e\u81ea\u7531\u56fa\u4ef6\uff08non-free-firmware\uff09\u3002\u5982\u679c\u60a8\u4ece\u65e7\u7248\u7684 Debian \u5347\u7ea7\uff0c\u5e76\u4e14\u9700\u8981\u8fd9\u4e9b\u56fa\u4ef6\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u60a8\u5e94\u8be5\u66f4\u65b0\u60a8\u7cfb\u7edf\u4e0a\u7684&nbsp;<code>\/etc\/apt\/sources.list<\/code>\uff0c\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u65b0\u7ec4\u4ef6\uff08<a rel=\"noreferrer noopener\" href=\"https:\/\/wiki.debian.org\/Firmware#Debian_12_.28bookworm.29_and_later\" target=\"_blank\">\u6765\u6e90<\/a>\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/non-free\/non-free non-free-firmware\/g' \/etc\/apt\/sources.list\n<\/code><\/pre>\n\n\n\n<p>\u9ed8\u8ba4\u7684\u7cfb\u7edf&nbsp;<code>apt<\/code>&nbsp;\u6e90\u6587\u4ef6&nbsp;<code>\/etc\/apt\/sources.list<\/code>&nbsp;\u5e94\u8be5\u662f\u7c7b\u4f3c\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware\ndeb-src http:\/\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware\n\ndeb http:\/\/security.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware\ndeb-src http:\/\/security.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware\n\ndeb http:\/\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware\ndeb-src http:\/\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware\n<\/code><\/pre>\n\n\n\n<p><em>\u56fd\u5185\u670d\u52a1\u5668\u53ef\u4ee5\u66ff\u6362&nbsp;<code>deb.debian.org<\/code>&nbsp;\u548c&nbsp;<code>security.debian.org<\/code>&nbsp;\u4e3a&nbsp;<code>mirrors.tuna.tsinghua.edu.cn<\/code><\/em><\/p>\n\n\n\n<p>\u7136\u540e\u6211\u4eec\u518d\u6b21\u6267\u884c\u66f4\u65b0\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update &amp;&amp; apt upgrade -y\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt dist-upgrade -y<\/code><\/pre>\n\n\n\n<p><em>\u66f4\u65b0\u8fc7\u7a0b\u79cd\u4f1a\u63d0\u793a\u4e00\u4e9b\u8f6f\u4ef6\u662f\u5426\u9700\u8981\u81ea\u52a8\u91cd\u542f\uff0c\u9009 Yes \u5373\u53ef\uff0c\u4ee5\u53ca\u4e00\u4e9b\u8f6f\u4ef6\u7684\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u9700\u8981\u66f4\u65b0\uff0c\u6309\u7167\u81ea\u5df1\u7684\u60c5\u51b5\u9009\u62e9\u5373\u53ef\uff0c\u9ed8\u8ba4\u56de\u8f66\u5373\u89c6\u4e3a\u4f7f\u7528\u65e7\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u822c\u4f1a\u51fa\u73b0\u5728 OpenSSH \u7b49\u8f6f\u4ef6\u7684\u66f4\u65b0\u4e0a\u3002<\/em><\/p>\n\n\n\n<p>\u5728&nbsp;<code>apt-listchanges: News<\/code>&nbsp;\u754c\u9762\u53ef\u4ee5\u6309&nbsp;<code>q<\/code>&nbsp;\u9000\u51fa\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/sdhz151\/tu\/main\/1.png\" alt=\"\"\/><\/figure>\n<\/figure>\n\n\n\n<p>\u63d0\u793a\u662f\u5426\u81ea\u52a8\u91cd\u542f\u670d\u52a1\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/sdhz151\/tu\/main\/2.png\" alt=\"\"\/><\/figure>\n<\/figure>\n\n\n\n<p>\u63d0\u793a\u662f\u5426\u66f4\u65b0 OpenSSH \u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/sdhz151\/tu\/main\/3.png\" alt=\"\"\/><\/figure>\n<\/figure>\n\n\n\n<p>\u6ce8\u610f\u67d0\u4e9b\u8f6f\u4ef6\u66f4\u65b0\u540e\u53ef\u80fd\u4f1a\u66f4\u65b0&nbsp;<code>systemd<\/code>&nbsp;\u670d\u52a1\u914d\u7f6e\uff0c\u6b64\u65f6\u6211\u4eec\u53ef\u4ee5\u6267\u884c&nbsp;<code>systemctl daemon-reload<\/code>&nbsp;\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u5347\u7ea7\u7684\u65f6\u5019\u9047\u5230\u4e86\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Setting up dbus-daemon (1.14.6-1) ...\nUUID file '\/var\/lib\/dbus\/machine-id' should contain a hex string of length 32, not length 0, with no other text\ndpkg: error processing package dbus-daemon (--configure):\n installed dbus-daemon package post-installation script subprocess returned error exit status 1\ndpkg: dependency problems prevent configuration of dbus:\n dbus depends on dbus-daemon (= 1.14.6-1); however:\n  Package dbus-daemon is not configured yet.\n\ndpkg: error processing package dbus (--configure):\n dependency problems - leaving unconfigured\nProcessing triggers for libc-bin (2.36-9) ...\nErrors were encountered while processing:\n dbus-daemon\n dbus\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)\n<\/code><\/pre>\n\n\n\n<p>\u5220\u9664&nbsp;<code>\/var\/lib\/dbus\/machine-id<\/code>&nbsp;\u8fd9\u4e2a\u7a7a\u6587\u4ef6\u540e\u91cd\u65b0\u6267\u884c\u547d\u4ee4\u5373\u53ef\uff0c\u5347\u7ea7&nbsp;<code>dbus<\/code>&nbsp;\u65f6\u4f1a\u81ea\u52a8\u751f\u6210\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/var\/lib\/dbus\/machine-id<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0\u540e\u5220\u9664\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u4f9d\u8d56\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt autoclean\napt autoremove -y<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u6211\u4eec\u4f7f\u7528&nbsp;<code>reboot<\/code>&nbsp;\u547d\u4ee4\u91cd\u542f\u7cfb\u7edf\uff0c\u8010\u5fc3\u7b49\u5f85\u540e\uff0c\u67e5\u770b\u6700\u65b0\u7684\u7cfb\u7edf\u7248\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/debian_version<\/code><\/pre>\n\n\n\n<p>\u6216<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsb_release -a<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u5185\u6838<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -a<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/u.sb\/debian-upgrade-12\/\">\u6587\u7ae0\u6765\u6e90<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9664\u975e\u4f60\u662f\u7269\u7406\u670d\u52a1\u5668\uff0c\u4ee5\u53ca\u6ca1\u6709\u7528\u8fc7\u5947\u5947\u602a\u602a\u5b9a\u5236\u6216\u4fee\u6539\u7684\u5185\u6838\u7684 KVM \u6784\u67b6\u7684 VPS \u548c\u4e91\u4e3b\u673a\uff0c\u5426\u5219\u5347\u7ea7\u5927\u7248\u672c\u66f4&#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-125","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":0,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}