{"id":772,"date":"2011-11-08T22:50:23","date_gmt":"2011-11-08T14:50:23","guid":{"rendered":"http:\/\/www.computersolutions.cn\/blog\/?p=772"},"modified":"2011-11-08T22:51:13","modified_gmt":"2011-11-08T14:51:13","slug":"debian-locales-error-quick-fix","status":"publish","type":"post","link":"https:\/\/www.computersolutions.cn\/blog\/2011\/11\/debian-locales-error-quick-fix\/","title":{"rendered":"Debian Locales error quick fix"},"content":{"rendered":"<p>If you get similar messages to this when you use apt-get<\/p>\n<pre>\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n\tLANGUAGE = (unset),\r\n\tLC_ALL = (unset),\r\n\tLC_CTYPE = \"UTF-8\",\r\n\tLANG = \"en_US\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory\r\nlocale: Cannot set LC_MESSAGES to default locale: No such file or directory\r\nlocale: Cannot set LC_ALL to default locale: No such file or directory\r\n\r\n<\/pre>\n<p>and the advice to <\/p>\n<pre>\r\ndpkg-reconfigure locales\r\n<\/pre>\n<p>doesn&#8217;t work, then try this &#8211; <\/p>\n<pre>export LANGUAGE=en_US.UTF-8\r\nexport LANG=en_US.UTF-8\r\nexport LC_ALL=en_US.UTF-8\r\nlocale-gen en_US.UTF-8\r\ndpkg-reconfigure locales<\/pre>\n<p>Short and sweet solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you get similar messages to this when you use apt-get perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = &#8220;UTF-8&#8221;, LANG = &#8220;en_US&#8221; are supported and installed on your system. perl: warning: Falling back to the standard locale (&#8220;C&#8221;). locale: Cannot set [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25],"tags":[362,258,363,366,364,365,361],"class_list":["post-772","post","type-post","status-publish","format-standard","hentry","category-technical-mumbo-jumbo","tag-apt-get","tag-debian","tag-error","tag-locale-cannot-set-lc_all","tag-locale-cannot-set-lc_ctype","tag-locale-cannot-set-lc_messages","tag-locales"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/comments?post=772"}],"version-history":[{"count":2,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/772\/revisions"}],"predecessor-version":[{"id":774,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/772\/revisions\/774"}],"wp:attachment":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/media?parent=772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/categories?post=772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/tags?post=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}