fix for update-initramfs

Verwijs69
  9 years ago
  12

I'm running Mint 17 amd64 dutch and i had this warning ..

update-initramfs: Generating /boot/initrd.img-3.0.0-12-generic
Warning: No support for locale: nl_NL.UTF-8

issue:
The problem is that /usr/share/initramfs-tools/hooks/root_locale is expecting to see individual locale directories in /usr/lib/locale, but locale-gen is configured to generate an archive file by default.

i fixed it by running :

sudo locale-gen --purge --no-archive

you will get...

Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
  nl_AW.UTF-8... done
  nl_BE.UTF-8... done
  nl_NL.UTF-8... done
Generation complete.


After that run...

update-initramfs -u -t

and warning is fixed... 

Comments
ahmubashshir 5 years ago

Nice!


robinbyron 5 years ago

I don't like seeing warnings on commandline output. This took care of it.

Thank You, Verwijs69


Platelet 6 years ago

In last command "update-initramfs -u -t", include sudo, ie: "sudo update-initramfs -u -t". Don't include quotation marks.


znlambov 6 years ago

Nice one!


murbahpp 6 years ago

Thank you for your help, it worked.


chitholian 6 years ago

OK, Works.


smokin-moe 7 years ago

worked for me, thankyou


rodoviario 8 years ago

Yes it worked, promoting you... I have watched the error for years now in many machines, now fixing it everywere.

NOTE: sudo update-initramfs -u -t
Because it wont work without sudo


jim7fl 9 years ago

Most users will figure this out, but the update-initramfs is a sudo command as well.


darrell_little 9 years ago

Works great.


jahid_0903014 9 years ago

nice!