{"id":55,"date":"2021-06-21T22:54:46","date_gmt":"2021-06-21T14:54:46","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=55"},"modified":"2021-06-21T22:54:46","modified_gmt":"2021-06-21T14:54:46","slug":"dpkg-reconfigure-command-not-found","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/dpkg-reconfigure-command-not-found.html","title":{"rendered":"dpkg-reconfigure\u547d\u4ee4\u627e\u4e0d\u5230\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"\n<p>\u4eca\u5929\u5728SSH\u8fdc\u7a0b\u8fde\u63a5\u5230\u670d\u52a1\u5668\u65f6\uff0c\u9047\u5230\u4e86dpkg-reconfigure\u547d\u4ee4\u627e\u4e0d\u5230\u7684\u95ee\u9898\uff0c\u89c9\u5f97\u5f88\u662f\u5947\u602a\uff0c\u82b1\u4e86\u70b9\u65f6\u95f4\u7814\u7a76\u4e0b\uff0c\u8fd9\u91cc\u505a\u4e2a\u8bb0\u5f55\uff0c\u4ee5\u5907\u540e\u7528\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">\u524d\u60c5\u63d0\u8981<\/h1>\n\n\n\n<p>\u6211\u8fdc\u7a0b\u7684\u670d\u52a1\u5668\u7cfb\u7edf\u662f\u81ea\u884c\u4f7f\u7528Debian netinst ISO\u955c\u50cf\u81ea\u884c\u5b89\u88c5\u7684\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u7cfb\u7edf\u6a21\u677f\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u521b\u5efa\u4e86\u4e00\u4e2a\u975eroot\u7528\u6237\uff0c\u5b89\u88c5\u8fc7\u7a0b\u53ea\u9009\u62e9\u4e86\u5b89\u88c5SSH\u670d\u52a1\uff0c\u4e14SSH\u670d\u52a1\u4e3a\u9ed8\u8ba4\u914d\u7f6e\u3002<\/p>\n\n\n\n<p>\u672c\u6587\u662f\u89e3\u51b3dpkg-reconfigure\u547d\u4ee4\u627e\u4e0d\u5230\u95ee\u9898\uff0cdpkg-reconfigure locales\u95ee\u9898\u53ef\u4ee5\u79fb\u6b65\u8fd9\u91cc\uff1a<a href=\"https:\/\/cloudbool.com\/archive\/dpkg-reconfigure-locales.html\" data-type=\"URL\" data-id=\"https:\/\/cloudbool.com\/archive\/dpkg-reconfigure-locales.html\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>dpkg\u2013reconfigure locales\u547d\u4ee4\u95ee\u9898<\/strong><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u53d1\u73b0\u95ee\u9898\u6240\u5728<\/h1>\n\n\n\n<p>\u6709\u8fc7\u81ea\u884c\u5b89\u88c5Debian\u7cfb\u7edf\u5e76\u4e14\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u7684\u670b\u53cb\u5e94\u8be5\u77e5\u9053\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9ed8\u8ba4\u662f\u6ca1\u6cd5\u76f4\u63a5\u901a\u8fc7SSH\u4f7f\u7528root\u7528\u6237\u767b\u5f55\u5230\u7cfb\u7edf\u7684\uff0c\u6240\u4ee5\u6211\u5e73\u65f6\u90fd\u662f\u7528\u7684\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u521b\u5efa\u7684\u54ea\u4e2a\u975eroot\u7528\u6237\u767b\u5f55\u5230\u7cfb\u7edf\u7684\u3002<\/p>\n\n\n\n<p>\u5728\u975eroot\u8d26\u6237\u767b\u5f55\u4e4b\u540e\uff0c\u4e14\u4f7f\u7528<strong>su<\/strong>\u547d\u4ee4\u6210\u529f\u5207\u6362\u5230root\u8d26\u6237\u4e4b\u540e\uff0c\u8f93\u5165dpkg-reconfigure locale\u547d\u4ee4\uff0c\u7cfb\u7edf\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user@cloudbool.com:~$ su \nPassword: \nroot@cloudbool.com:\/home\/user# dpkg-reconfigure locales\nbash: dpkg-reconfigure: command not found<\/code><\/pre>\n\n\n\n<p>\u6839\u636e\u5b98\u65b9man\u7684\u8bf4\u660e\uff0cdpkg-reconfigure\u662f\u4e00\u4e2a\u7528\u6765\u91cd\u65b0\u914d\u7f6e\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\u7684\u5305\u7684\u547d\u4ee4\uff0c\u4f7f\u7528\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8f93\u5165dpkg-reconfigure\u547d\u4ee4\u518d\u52a0\u4e0a\u6240\u8981\u91cd\u65b0\u914d\u7f6e\u7684\u5305\u7684\u540d\u79f0\u5373\u53ef\uff0c\u6bd4\u5982\u6211\u4e0a\u9762\u7684\u547d\u4ee4\u5c31\u662f\u60f3\u91cd\u65b0\u914d\u7f6elocales\u8fd9\u4e2a\u5305\u3002<\/p>\n\n\n\n<p>\u6309\u7167\u6211\u5bf9Debian\u7cfb\u7edf\u7684\u4e86\u89e3\uff0c\u81f3\u5c11\u6700\u65b0\u7684\u51e0\u4e2aDebian\u5927\u7248\u672c\uff0c\u662f\u9ed8\u8ba4\u5e26\u4e86dpkg-reconfigure\u8fd9\u4e2a\u5305\u7684\uff0c\u7136\u540e\u6211\u7528whereis\u547d\u4ee4\u627e\u4e86\u4e0b\uff0c\u53d1\u73b0\u786e\u5b9e\u6709\u8fd9\u4e2a\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@cloudbool.com:\/home\/user# whereis dpkg-reconfigure\ndpkg-reconfigure: \/usr\/sbin\/dpkg-reconfigure \/usr\/share\/man\/man8\/dpkg-reconfigure.8.gz<\/code><\/pre>\n\n\n\n<p>\u4ece\u8f93\u51fa\u53ef\u89c1\uff0cwhereis\u547d\u4ee4\u8f93\u51fa\u4e86dpkg-reconfigure\u547d\u4ee4\u6240\u5728\u7684\u8def\u5f84\uff0c\u8bc1\u660edpkg-reconfigure\u8fd9\u4e2a\u547d\u4ee4\u786e\u5b9e\u5b58\u5728\u7cfb\u7edf\u7684\uff0c\u53ea\u662f\u7cfb\u7edf\u63d0\u793a\u4e0d\u5b58\u5728\uff0c\u8bf4\u660e\u5f53\u524d\u7528\u6237\u73af\u5883\uff0c\u5e76\u6ca1\u6709\u5c06<strong>\/usr\/sbin\/<\/strong>\u76ee\u5f55\u6dfb\u52a0\u8fdbPATH\u3002\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\/usr\/sbin\u8fd9\u4e2a\u76ee\u5f55\u653e\u7684\u662f\u4e00\u4e9b\u9700\u8981root\u6743\u9650\u624d\u80fd\u6267\u884c\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u89e3\u51b3\u529e\u6cd5<\/h1>\n\n\n\n<p>\u4e00\u756a\u6298\u817e\u4e4b\u540e\u53d1\u73b0\uff0c\u5176\u5b9e\u89e3\u51b3\u529e\u6cd5\u5f88\u7b80\u5355\uff0c\u5982\u679c\u53ea\u662f\u5355\u7eaf\u7684\u9700\u8981\u4f7f\u7528\u4e00\u4e0bdpkg-reconfigure\u547d\u4ee4\uff0c\u54ea\u76f4\u63a5\u8f93\u5165dpkg-reconfigure\u547d\u4ee4\u7684\u5b8c\u6574\u8def\u5f84\u5373\u53ef\uff0c\u6bd4\u5982\u8bf4\u91cd\u65b0\u914d\u7f6elocales\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/sbin\/dpkg-reconfigure locales<\/code><\/pre>\n\n\n\n<p>\u4f46\u662f\u5176\u5b9e\u8fd9\u6837\u5728\u8f93\u5165\u5176\u4ed6\u547d\u4ee4\u65f6\u8fd8\u662f\u4f1a\u9047\u5230\u660e\u660e\u547d\u4ee4\u5b58\u5728\u4f46\u662f\u8fd8\u662f\u63d0\u793a<strong>command not found<\/strong>\u7684\u60c5\u51b5\uff0c<strong>\u66f4\u597d\u7684\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\uff0c\u9000\u51fa\u5f53\u524droot\u7528\u6237\uff0c\u7136\u540e\u4f7f\u7528su -\u547d\u4ee4\u91cd\u65b0\u5207\u6362\u5230root\u6743\u9650<\/strong>\uff0c\u76f8\u5173\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@cloudbool.com:\/home\/user# exit\nexit\nuser@cloudbool.com:~$ su -\nPassword: \nroot@cloudbool.com:~# dpkg-reconfigure locales\nGenerating locales (this might take a while)...\n  en_US.UTF-8... done\n  zh_CN.UTF-8... done\nGeneration complete.<\/code><\/pre>\n\n\n\n<p>\u4e5f\u5c31\u662fsu\u547d\u4ee4\u540e\u9762\u6dfb\u52a0\u4e00\u4e2a\u8fde\u5b57\u7b26\u6216\u8005\u8bf4\u51cf\u53f7\uff0c\u6839\u636e\u5b98\u65b9man\u547d\u4ee4\u7684\u8bf4\u6cd5\uff0c\u52a0\u4e0a\u540e\u9762\u8fd9\u4e2a\u7b26\u53f7\u76f8\u5f53\u4e8e\u4f7f\u7528root\u8d26\u6237\u767b\u5f55\uff0c\u4f1a\u521d\u59cb\u5316\u5bf9\u5e94\u7684\u73af\u5883\u53d8\u91cf\uff0c\u4e5f\u5c31\u662f\u52a0\u8f7d\u4e0a<strong>\/usr\/sbin\/<\/strong>\u76ee\u5f55\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u76f8\u5173\u5173\u952e\u5b57<\/h1>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u7f51\u7ad9\u7edf\u8ba1\u7684\u672c\u6587\u76f8\u5173\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>dpkg-reconfigure: command not found<\/li><li>dpkg-reconfigure \u4e0d\u5b58\u5728<\/li><li>bash: dpkg-reconfigure: command not found<\/li><li>dpkg-reconfigure \u672a\u627e\u5230\u547d\u4ee4<\/li><li>-bash: dpkg:\u672a\u627e\u5230\u547d\u4ee4<\/li><li>dpkg-reconfigure:\u672a\u627e\u5230\u547d\u4ee4<\/li><li>dpkg\u547d\u4ee4\u627e\u4e0d\u5230<\/li><li>dpkg-reconfigure: not found<\/li><li>dpkg-reconfigure locales\u547d\u4ee4\u627e\u4e0d\u5230<\/li><li>command-not-found dpkg-reconfigure<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728SSH\u8fdc\u7a0b\u8fde\u63a5\u5230\u670d\u52a1\u5668\u65f6\uff0c\u9047\u5230\u4e86dpkg-reconfigure\u547d\u4ee4\u627e\u4e0d\u5230\u7684\u95ee\u9898\uff0c\u89c9\u5f97\u5f88\u662f\u5947\u602a\uff0c\u82b1\u4e86\u70b9\u65f6 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/dpkg-reconfigure-command-not-found.html\"> <span class=\"screen-reader-text\">dpkg-reconfigure\u547d\u4ee4\u627e\u4e0d\u5230\u95ee\u9898\u89e3\u51b3<\/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,99],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-tech","tag-debian","tag-ssh"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/55","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=55"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}