command line - How do I fix my locale issue? - Ask Ubuntu


i getting message every time starting or stopping service.

perl: warning: setting locale failed.    perl: warning: please check locale settings:            language = "en_us:en",            lc_all = (unset),            lc_messages = "en_us.utf-8",            lang = "en_us.utf-8"        supported , installed on system.    perl: warning: falling standard locale ("c").    locale: cannot set lc_ctype default locale: no such file or directory    locale: cannot set lc_messages default locale: no such file or directory    locale: cannot set lc_all default locale: no such file or directory    (reading database ... 21173 files , directories installed.)   removing bind9 ...    * stopping domain name service... bind9                                        [ ok ] processing triggers man-db ...    locale: cannot set lc_ctype default locale: no such file or directory    locale: cannot set lc_messages default locale: no such file or directory    locale: cannot set lc_all default locale: no such file or directory    

how fix error ?

first run locale list locales defined current user account:

$ locale lang=c language= lc_ctype=fi_fi.utf-8 lc_numeric="c" lc_time="c" lc_collate=fi_fi.utf-8 lc_monetary="c" lc_messages=fi_fi.utf-8 lc_paper="c" lc_name="c" lc_address="c" lc_telephone="c" lc_measurement="c" lc_identification="c" lc_all= 

then generate missing locale , reconfigure locales take notice:

$ sudo locale-gen "en_us.utf-8" generating locales...   en_us.utf-8... done generation complete.  $ sudo dpkg-reconfigure locales generating locales...   en_us.utf-8... up-to-date generation complete. 

now not see errors anymore!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User