locale.gen

Asked by Er Ka Wei

kawei@TimeX:~$ sudo dpkg-reconfigure locales
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... /usr/sbin/locale-gen: line 236: localedef: command not found
failed
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... /usr/sbin/locale-gen: line 236: localedef: command not found
failed
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... /usr/sbin/locale-gen: line 236: localedef: command not found
failed
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.

Anyway to solve the problem? Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu localechooser Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

localedef should be provided by libc-bin

Try

sudo apt-get update
sudo apt-get install --reinstall libc-bin

and then again

sudo dpkg-reconfigure locales

Revision history for this message
Er Ka Wei (kwwei) said :
#3

Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... cannot open locale definition file `da_DK': No such file or directory
failed
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... cannot open locale definition file `hi_IN': No such file or directory
failed
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... cannot open locale definition file `tl_PH': No such file or directory
failed
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

Try

sudo apt-get install --reinstall locales

and then again

sudo dpkg-reconfigure locales

and please copy/paste all output as response into this question document (including the output of the apt-get command).

Revision history for this message
Er Ka Wei (kwwei) said :
#5

done by reinstalling locales using Muon Package Manager.

Revision history for this message
Er Ka Wei (kwwei) said :
#6

Thanks Manfred Hampl, that solved my question.