Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

LANG="en_US.UTF-8"

(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

 
discard

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