{"id":1728,"date":"2017-12-09T15:37:46","date_gmt":"2017-12-09T07:37:46","guid":{"rendered":"https:\/\/zoco.me\/?p=101"},"modified":"2017-12-09T15:37:46","modified_gmt":"2017-12-09T07:37:46","slug":"apt-listchanges-cant-set-locale-make-sure-lc_-and-lang-are-correct-resolve","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/apt-listchanges-cant-set-locale-make-sure-lc_-and-lang-are-correct-resolve.html","title":{"rendered":"\u95ee\u9898\u89e3\u51b3\uff1aapt-listchanges: Can&#8217;t set locale; make sure $LC_* and $LANG are correct!"},"content":{"rendered":"<p>\u6700\u8fd1\u65b0\u4e70\u4e86\u53f0\u4e91\u4e3b\u673a\uff0c\u9009\u7684\u662fDebian 9\u7cfb\u7edf\uff0c\u5728\u66f4\u65b0\u8f6f\u4ef6\u7684\u65f6\u5019\u603b\u662f\u63d0\u793a\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre><code>apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!\nperl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n    LANGUAGE = \"en_US.utf8\",\n    LC_ALL = (unset),\n    LC_CTYPE = \"zh_CN.UTF-8\",\n    LANG = \"en_US.utf8\"\n    are supported and installed on your system.\nperl: warning: Falling back to a fallback locale (\"en_US.utf8\").\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory\nlocale: Cannot set LC_ALL to default locale: No such file or directory\n<\/code><\/pre>\n<p><!--more--><\/p>\n<p>\u4e00\u6b21\u4e24\u6b21\u5c31\u7b97\u4e86\uff0c\u6bcf\u6b21\u90fd\u9047\u5230\u8fd9\u95ee\u9898\uff0c\u5b9e\u5728\u662f\u4e0d\u80fd\u5fcd\uff0c\u653e\u72d7\u641c\u4e86\u4e00\u628a\u4e4b\u540e\uff0c\u60f3\u529e\u6cd5\u89e3\u51b3\u4e86\u3002<\/p>\n<p>\u5176\u5b9e\u95ee\u9898\u5f88\u7b80\u5355\uff0c\u6211\u672c\u5730\u662fzh_CN.UTF-8\uff0c\u4f46\u662f\u670d\u52a1\u5668\u9ed8\u8ba4\u6ca1\u6709\u8fd9\u4e2a\u5b57\u7b26\u96c6\uff0c\u5bfc\u81f4\u7528iTerm2\u8fde\u4e0a\u7684\u65f6\u5019\uff0c\u4e00\u76f4\u62a5\u9519\u3002<\/p>\n<p>\u89e3\u51b3\u95ee\u9898\u4e5f\u5f88\u7b80\u5355\uff1a<\/p>\n<blockquote><p>\n  root@debian:~# dpkg-reconfigure locales\n<\/p><\/blockquote>\n<p>\u56de\u8f66\uff0c\u4e0a\u4e0b\u9009\u4e2d\u6240\u9700\u8981\u7684\u7a7a\u683c\u9009\u4e0a\uff0c\u56de\u8f66\u5c31\u884c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u65b0\u4e70\u4e86\u53f0\u4e91\u4e3b\u673a\uff0c\u9009\u7684\u662fDebian 9\u7cfb\u7edf\uff0c\u5728\u66f4\u65b0\u8f6f\u4ef6\u7684\u65f6\u5019\u603b\u662f\u63d0\u793a\u5982\u4e0b\u9519\u8bef\uff1a apt-listchang &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/apt-listchanges-cant-set-locale-make-sure-lc_-and-lang-are-correct-resolve.html\"> <span class=\"screen-reader-text\">\u95ee\u9898\u89e3\u51b3\uff1aapt-listchanges: Can&#8217;t set locale; make sure $LC_* and $LANG are correct!<\/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":[],"class_list":["post-1728","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1728","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=1728"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1728\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}