{"id":213,"date":"2019-07-11T16:32:17","date_gmt":"2019-07-11T08:32:17","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=213"},"modified":"2019-07-11T16:32:17","modified_gmt":"2019-07-11T08:32:17","slug":"manual-reinstall-latest-debian","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/manual-reinstall-latest-debian.html","title":{"rendered":"\u4e91\u4e3b\u673a\u624b\u52a8\u5b89\u88c5\u6700\u65b0\u7248Debian 10\u7cfb\u7edf"},"content":{"rendered":"<p>\u7b49\u4e86\u8bb8\u4e45\u7684Debian 10\u7ec8\u4e8e\u53d1\u5e03\u6b63\u5f0f\u7248\u4e86\uff0c\u4f46\u662f\u5404\u5927\u4e91\u5382\u5546\u90fd\u8fd8\u6ca1\u51faDebian 10\u7684\u7cfb\u7edf\u6a21\u677f\uff0c\u624b\u75d2\u53c8\u60f3\u5347\u7ea7\u5230Debian 10\u7cfb\u7edf\u8bd5\u8bd5\uff0c\u4e8e\u662f\u82b1\u4e86\u70b9\u65f6\u95f4\u6298\u817e\u4e86\u4e0b\uff0c\u8fc7\u7a0b\u5e76\u4e0d\u590d\u6742\uff0c\u800c\u4e14\u5728\u591a\u4e2a\u5e73\u53f0\u6bd4\u5982\u8bf4\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001<a href=\"https:\/\/u.cloudbool.com\/vultr\">Vultr<\/a>\u90fd\u6210\u529f\u5b89\u88c5\u4e86\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\uff0c\u5e0c\u671b\u80fd\u7ed9\u81ea\u5df1\u4ee5\u53ca\u540c\u6837\u6709\u9700\u6c42\u7684\u670b\u53cb\u63d0\u4f9b\u4e00\u4e2a\u601d\u8def\u3002<br \/>\n<!--more--><\/p>\n<h2>\u5f00\u59cb\u4e4b\u524d<\/h2>\n<p>\u8fd9\u91cc\u8bf4\u7684\u4e91\u4e3b\u673a\u624b\u52a8\u5b89\u88c5\uff0c\u662f\u6307\u7684\u5728\u4e91\u4e3b\u673a\u5df2\u6709\u7cfb\u7edf\u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u662f\u88f8\u673a\uff0c\u5efa\u8bae\u4f7f\u7528ISO\u6587\u4ef6\u5b89\u88c5\uff0c\u6216\u8005\u5148\u5229\u7528\u4e91\u5382\u5546\u7684\u7cfb\u7edf\u6a21\u677f\u5b89\u88c5\u597d\u7cfb\u7edf\uff0cDebian9\u6216\u8005CentOS7\u90fd\u53ef\u4ee5\uff0cUbuntu\u7cfb\u5217\u6ca1\u8bd5\u8fc7\uff0c\u6309\u9053\u7406\u6700\u65b0\u7684\u51e0\u4e2aUbuntu\u4e5f\u652f\u6301\uff0c\u6bd5\u7adf\u90fd\u662f\u5229\u7528GRUB\u5f15\u5bfc\u7684\u3002<\/p>\n<h2>\u51c6\u5907\u5de5\u4f5c<\/h2>\n<p>\u91cd\u88c5\u7cfb\u7edf\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e91\u4e3b\u673a\u73b0\u6709\u6570\u636e\u5168\u90e8\u4e22\u5931\uff0c\u5982\u679c\u6709\u91cd\u8981\u6570\u636e\u7684\uff0c\u5efa\u8bae<strong>\u5148\u884c\u5907\u4efd\u518d\u91cd\u88c5<\/strong>\u3002<br \/>\n\u56e0\u4e3a\u6709\u4e9b\u4e91\u5382\u5546\u6bd4\u5982\u56fd\u5185\u7684\u4e00\u4e9b\u5c0f\u6c34\u7ba1\u4e3b\u673a\u90fd\u662f\u63d0\u4f9b\u5185\u7f51\u955c\u50cf\u7684\uff0c\u6709\u4e9b\u8fd8\u662f\u4e0d\u63d0\u4f9bDHCP\u7684\uff0c\u9700\u8981\u5b89\u88c5\u8fc7\u7a0b\u81ea\u5df1\u624b\u52a8\u914d\u7f6eIP\u53caDNS\u7b49\u4fe1\u606f\uff0c\u57fa\u4e8e\u5982\u4e0a\u8003\u8651\uff0c\u6211\u4eec\u5b89\u88c5\u4e4b\u524d\u6700\u597d\u662f\u5907\u4efd\u4e00\u4e0b\u5185\u7f51\u6e90\u955c\u50cf\u53caIP\u53caDNS\u4fe1\u606f\uff0c\u4e0b\u9762\u662f\u76f8\u5173\u547d\u4ee4\u3002<br \/>\n<strong>\u5f53\u7136\uff0c\u5982\u679c\u6709DHCP\u670d\u52a1\uff0c\u4ee5\u53ca\u4f7f\u7528\u516c\u7f51\u955c\u50cf\uff0c\u5982\u4e0b\u64cd\u4f5c\u4e5f\u53ef\u7701\u7565\u3002<\/strong><\/p>\n<h3>\u67e5\u770b\u5185\u7f51\u6e90\u955c\u50cf\u5730\u5740<\/h3>\n<pre><code>root@AliyunSWAS:~# cat \/etc\/apt\/sources.list\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/debian\/ stretch main\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/debian\/ stretch main\ndeb http:\/\/security.debian.org\/debian-security stretch\/updates main\ndeb-src http:\/\/security.debian.org\/debian-security stretch\/updates main\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/debian\/ stretch-updates main\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/debian\/ stretch-updates main\n<\/code><\/pre>\n<h3>\u67e5\u770b\u4e91\u4e3b\u673aIP\u53ca\u5185\u7f51DNS\u7b49\u4fe1\u606f<\/h3>\n<p>\u67e5\u770bIP\u5730\u5740\u3001\u5b50\u7f51\u63a9\u7801\u3001\u7f51\u5173\u7b49\u4fe1\u606f\uff1a<\/p>\n<pre><code>root@AliyunSWAS:~# ip a\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n    inet 127.0.0.1\/8 scope host lo\n       valid_lft forever preferred_lft forever\n    inet6 ::1\/128 scope host\n       valid_lft forever preferred_lft forever\n2: ens3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\n    link\/ether 00:16:3e:0a:1f:f5 brd ff:ff:ff:ff:ff:ff\n    inet 172.16.19.xxx\/18 brd 172.16.xxx.255 scope global dynamic ens3\n       valid_lft 315355236sec preferred_lft 315355236sec\n    inet6 fe80::216:3eff:fe0a:xxx\/64 scope link\n       valid_lft forever preferred_lft forever\n<\/code><\/pre>\n<p>\u67e5\u770bDNS\u4fe1\u606f\uff1a<\/p>\n<pre><code>root@AliyunSWAS:~# cat \/etc\/resolv.conf\nnameserver 100.100.2.138\nnameserver 100.100.2.136\n<\/code><\/pre>\n<h2>\u4e0b\u8f7d\u5b89\u88c5\u6240\u9700\u6587\u4ef6<\/h2>\n<p>\u5176\u5b9e\u5b89\u88c5\u6700\u65b0\u7248Debian\u7cfb\u7edf\u6240\u9700\u8981\u7684\u53ea\u6709\u4e24\u4e2a\u6587\u4ef6\uff0c\u57fa\u672c\u4e0a\u6bcf\u4e2a\u516c\u7f51\u955c\u50cf\u90fd\u63d0\u4f9b\uff0c\u76f4\u63a5\u767b\u5f55SSH\u4f7f\u7528<strong>wget<\/strong>\u4e0b\u8f7d\u5c31\u884c\uff0c\u4fdd\u5b58\u4f4d\u7f6e\u968f\u610f\uff0c\u53ea\u8981\u80fd\u8bb0\u4f4f\u8def\u5f84\u5c31\u884c\uff0c\u5efa\u8bae\u662f<strong>\/boot\/<\/strong>\u6216\u8005<strong>\/root\/<\/strong>\u7b49\u3002<br \/>\n\u56fd\u5185\u4e91\u4e3b\u673a\u63a8\u8350\u963f\u91cc\u4e91\u955c\u50cf\uff1a<\/p>\n<pre><code>cd \/boot\/\nwget http:\/\/mirrors.aliyun.com\/debian\/dists\/stable\/main\/installer-amd64\/current\/images\/netboot\/debian-installer\/amd64\/initrd.gz\nwget http:\/\/mirrors.aliyun.com\/debian\/dists\/stable\/main\/installer-amd64\/current\/images\/netboot\/debian-installer\/amd64\/linux\n<\/code><\/pre>\n<p>\u56fd\u5916\u53ef\u9009\u955c\u50cf\u5c31\u591a\u4e86\uff0c\u8fd9\u91cc\u4ee5Debian\u5b98\u65b9\u4e3a\u4f8b\uff1a<\/p>\n<pre><code>cd \/boot\/\nwget http:\/\/ftp.debian.org\/debian\/dists\/stable\/main\/installer-amd64\/current\/images\/netboot\/debian-installer\/amd64\/initrd.gz\nwget http:\/\/ftp.debian.org\/debian\/dists\/stable\/main\/installer-amd64\/current\/images\/netboot\/debian-installer\/amd64\/linux\n<\/code><\/pre>\n<h2>\u5f00\u59cb\u5b89\u88c5<\/h2>\n<p>\u51c6\u5907\u597d\u5f15\u5bfc\u6587\u4ef6\u4e4b\u540e\uff0c\u53ea\u9700\u8981\u767b\u5f55\u4e91\u4e3b\u673a\u7684<strong>\u56fe\u5f62\u5316\u7ba1\u7406\u754c\u9762<\/strong>\uff0c\u963f\u91cc\u4e91\u662f\u53eb\u6551\u63f4\u6a21\u5f0f\uff0c\u817e\u8baf\u4e91\u662fVNC\uff0cVultr\u76f4\u63a5\u53ebConsole\uff0c\u53cd\u6b63\u662f\u80fd\u76f4\u63a5\u770b\u5230\u670d\u52a1\u5668\u7684\u767b\u5f55\u754c\u9762\u7684\u5c31\u884c\u3002<br \/>\n\u767b\u5f55\u4e4b\u540e\uff0c\u70b9\u51fb\u9875\u9762\u4e0a\u53d1\u9001\u7684<strong>Ctrl+Alt+Delete<\/strong>\u6216\u8005\u5230SSH\u91cc\u9762\u6267\u884c\u91cd\u542f\u547d\u4ee4\u4f7f\u7cfb\u7edf\u91cd\u542f\uff0c\u7136\u540e\u8fc5\u901f\u5207\u6362\u5230\u4e91\u4e3b\u673a\u7684\u56fe\u5f62\u5316\u7ba1\u7406\u754c\u9762\uff0c\u5728\u542f\u52a8\u9879\u5012\u8ba1\u65f6\u7ed3\u675f\u4e4b\u524d\u6309\u4efb\u610f\u952e\u4f7f\u5012\u8ba1\u65f6\u6682\u505c\uff0c\u5982\u56fe\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/07\/11\/grub-choose-timeout.png\" alt=\"grub-choose-timeout.png\" \/><br \/>\n\u5982\u679c\u624b\u901f\u5b9e\u5728\u4e0d\u591f\u5feb\uff0c\u53ef\u4ee5SSH\u8fdb\u5165\u7cfb\u7edf\u4fee\u6539\u4e0b\u542f\u52a8\u7684timeout\u7684\u503c\uff0c\u8ba9\u7cfb\u7edf\u5728\u542f\u52a8\u754c\u9762\u591a\u505c\u7559\u51e0\u79d2\u3002<br \/>\n\u7136\u540e\u4e0a\u4e0b\u952e\u9009\u62e9\u4efb\u610f\u4e00\u4e2a\u542f\u52a8\u9879\uff0c\u5efa\u8bae\u7b2c\u4e00\u4e2a\uff0c\u7136\u540e\u6309<strong>e<\/strong>\u952e\u8fdb\u5165\u7f16\u8f91\u754c\u9762\uff0c\u8fdb\u5165\u4e4b\u540e\uff0c\u628a\u9664\u4e86\u7b2c\u4e00\u884c\u4e4b\u540e\u7684\u5185\u5bb9\u5168\u90e8\u5220\u9664\uff0c\u7136\u540e\u8f93\u5165\u5982\u4e0b\u4e24\u884c\u5185\u5bb9\uff1a<\/p>\n<pre><code>linux \/boot\/linux\ninitrd \/boot\/initrd.gz\n<\/code><\/pre>\n<p>\u5982\u56fe\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/07\/11\/grub-edit.png\" alt=\"grub-edit.png\" \/><br \/>\n\u8f93\u5165\u5b8c\u6bd5\u4e4b\u540e\uff0c\u6309F10\u6216\u8005Ctrl+X\u5c31\u53ef\u4ee5\u542f\u52a8\uff0c\u5982\u679c\u6709\u62a5\u9519\u4e5f\u6ca1\u5173\u7cfb\uff0c\u6839\u636e\u9519\u8bef\u63d0\u793a\u8fdb\u884c\u4fee\u6539\u5c31\u597d\u3002<br \/>\n\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u5e94\u8be5\u4f1a\u6765\u5230\u5982\u4e0b\u56fe\u7684\u5b89\u88c5\u754c\u9762\uff0c\u770b\u5230\u5982\u4e0b\u754c\u9762\u8bf4\u660e\u5b89\u88c5\u5f15\u5bfc\u5df2\u7ecf\u6210\u529f\u4e86\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/07\/11\/manual-reinstall-debian.png\" alt=\"manual-reinstall-debian.png\" \/><br \/>\n\u63a5\u4e0b\u6765\u5c31\u662f\u548c\u666e\u901a\u5b89\u88c5\u8fc7\u7a0b\u4e00\u6837\u4e86\uff0c\u4e00\u6b65\u4e00\u6b65\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u5c31\u884c\u4e86\uff0c\u6ca1\u5565\u96be\u5ea6\u3002<br \/>\n\u5982\u679c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u83b7\u53d6IP\u53caDNS\u51fa\u9519\uff0c\u53ea\u9700\u8981\u624b\u52a8\u8f93\u5165\u4e0a\u9762\u5907\u4efd\u597d\u7684IP\u53caDNS\u7b49\u4fe1\u606f\u5373\u53ef\u3002<br \/>\n\u5982\u679c\u5b89\u88c5\u8fc7\u7a0b\u540e\u6094\u60f3\u653e\u5f03\uff0c\u53ea\u9700\u8981\u5728\u683c\u5f0f\u5316\u786c\u76d8\u8fd9\u4e00\u6b65\u4e4b\u524d\u7ed9\u4e91\u4e3b\u673a\u53d1\u9001\u91cd\u542f\u547d\u4ee4\u6216\u8005\u9000\u51fa\u5b89\u88c5\u8fc7\u7a0b\u5c31\u884c\uff0c\u53ea\u8981\u4e0d\u683c\u5f0f\u5316\u786c\u76d8\uff0c\u4e4b\u524d\u7684\u64cd\u4f5c\u662f\u4e0d\u4f1a\u5bf9\u73b0\u6709\u7684\u7cfb\u7edf\u9020\u6210\u5f71\u54cd\u7684\u3002<\/p>\n<h2>\u5b89\u88c5\u4e4b\u540e<\/h2>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u9ed8\u8ba4\u662f\u4e0d\u7ed9\u81ea\u5b9a\u4e49\u5b89\u88c5\u6e90\u7684\uff0c\u5b89\u88c5\u4e4b\u540e\u8bb0\u5f97\u628a\u6e90\u4ed3\u5e93\u7684\u5730\u5740\u6539\u56de\u539f\u5148\u7cfb\u7edf\u7684\u5185\u7f51\u955c\u50cf\u5730\u5740\uff0c\u5f53\u7136\uff0c\u5982\u679c\u662f\u56fd\u5916\u7684\u5927\u6c34\u7ba1\u4e3b\u673a\uff0c\u6539\u4e0d\u6539\u90fd\u4e0d\u8981\u7d27\u3002<br \/>\n\u5176\u5b9e\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4e00\u5b9a\u53ea\u80fd\u5b89\u88c5Debian 10\uff0c\u7531\u4e8eDebian\u5b98\u65b9\u7ecf\u5e38\u66f4\u65b0\u8fd9\u4e2a\u5f15\u5bfc\u955c\u50cf\uff0c\u5229\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u6211\u4eec\u80fd\u5b89\u88c5\u6700\u65b0\u7684Debian\u7a33\u5b9a\u7248\u7cfb\u7edf\u3002<br \/>\n\u5bf9\u4e8e\u6709\u5f3a\u8feb\u75c7\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\u5b89\u88c5\u7eaf\u51c0\u7248\u7684\u7cfb\u7edf\uff0c\u56fd\u5185\u4e3b\u673a\u6765\u8bf4\uff0c\u8fd8\u80fd\u5b8c\u5168\u53bb\u6389\u67d0\u4e9b\u4e91\u76d1\u63a7\u7a0b\u5e8f\uff0c\u4f5c\u7528\u4f60\u61c2\u7684\u54c8\u54c8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b49\u4e86\u8bb8\u4e45\u7684Debian 10\u7ec8\u4e8e\u53d1\u5e03\u6b63\u5f0f\u7248\u4e86\uff0c\u4f46\u662f\u5404\u5927\u4e91\u5382\u5546\u90fd\u8fd8\u6ca1\u51faDebian 10\u7684\u7cfb\u7edf\u6a21\u677f\uff0c\u624b\u75d2\u53c8\u60f3\u5347\u7ea7 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/manual-reinstall-latest-debian.html\"> <span class=\"screen-reader-text\">\u4e91\u4e3b\u673a\u624b\u52a8\u5b89\u88c5\u6700\u65b0\u7248Debian 10\u7cfb\u7edf<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[27,153,110,127,132],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-tech","tag-debian","tag-debian-10","tag-vultr","tag-127","tag-132"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}