{"id":946,"date":"2016-05-20T18:51:48","date_gmt":"2016-05-20T16:51:48","guid":{"rendered":"http:\/\/jakobsens.net\/?p=946"},"modified":"2016-05-20T18:53:25","modified_gmt":"2016-05-20T16:53:25","slug":"warning-during-apt-get-update-perl-warning-setting-locale-failed","status":"publish","type":"post","link":"https:\/\/jakobsens.net\/?p=946","title":{"rendered":"Warning during apt-get update:  perl: warning: Setting locale failed."},"content":{"rendered":"<p>I have an Ubuntu server 14.04 and got the message during system update:<\/p>\n<p><strong><code>?&gt; sudo apt-get -y dist-upgrade<br \/>\n...<br \/>\nperl: warning: Setting locale failed.<br \/>\nperl: warning: Please check that your locale settings:<br \/>\nLANGUAGE = (unset),<br \/>\nLC_ALL = (unset),<br \/>\nLC_TIME = \"en_US.UTF-8\",<br \/>\nLC_MONETARY = \"en_US.UTF-8\",<br \/>\nLC_ADDRESS = \"en_US.UTF-8\",<br \/>\nLC_TELEPHONE = \"en_US.UTF-8\",<br \/>\nLC_NAME = \"en_US.UTF-8\",<br \/>\nLC_MEASUREMENT = \"en_US.UTF-8\",<br \/>\nLC_IDENTIFICATION = \"en_US.UTF-8\",<br \/>\nLC_NUMERIC = \"en_US.UTF-8\",<br \/>\nLC_PAPER = \"en_US.UTF-8\",<br \/>\nLANG = \"en_US.UTF-8\"<br \/>\nare supported and installed on your system.<br \/>\nperl: warning: Falling back to the standard locale (\"C\").<br \/>\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory<br \/>\nlocale: Cannot set LC_MESSAGES to default locale: No such file or directory<br \/>\nlocale: Cannot set LC_ALL to default locale: No such file or directory<br \/>\n...<br \/>\n<\/code><\/strong><\/p>\n<p>To solve this you will have to compile the locale definitions:<\/p>\n<p><strong><code>?&gt; sudo locale-gen en_US en_US.UTF-8<br \/>\n<\/code><\/strong><br \/>\nand then reconfigure the locale setup:<\/p>\n<p><strong><code>?&gt; sudo dpkg-reconfigure locales<br \/>\n<\/code><\/strong><\/p>\n<p>Problem solved!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have an Ubuntu server 14.04 and got the message during system update: ?&gt; sudo apt-get -y dist-upgrade &#8230; perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = &#8220;en_US.UTF-8&#8221;, LC_MONETARY = &#8220;en_US.UTF-8&#8221;, LC_ADDRESS = &#8220;en_US.UTF-8&#8221;, LC_TELEPHONE = &#8220;en_US.UTF-8&#8221;, LC_NAME = &#8220;en_US.UTF-8&#8221;, LC_MEASUREMENT = [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-946","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=946"}],"version-history":[{"count":5,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}