Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

boot fails with the following message:

/etc/default/locale: 5: d_fmt: not found
init: mountall main process (234) terminated with status 127

if I boot to Recovery, is there any way to edit this locale file or to delete it and replace it with a default one? How can I edit the Locale file to fix this problem without being able to boot?

share|improve this question

Boot into the Recovery mode, and if that doesn't work, into a LiveCD. Then edit the file, there should be something like


(depending on your locale). Use sudo nano /etc/default/locale in Recovery or gksudo /media/ubuntu/etc/default/locale in the LiveCD (change /media/ubuntu/ appropriately depending on where you mounted the Ubuntu partition).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.