fix for update-initramfs

  6 years ago

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

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... 

ahmubashshir 1 year ago


robinbyron 2 years ago

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

Thank You, Verwijs69

Platelet 2 years ago

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

znlambov 2 years ago

Nice one!

murbahpp 3 years ago

Thank you for your help, it worked.

chitholian 3 years ago

OK, Works.

smokin-moe 4 years ago

worked for me, thankyou

rodoviario 5 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 5 years ago

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

darrell_little 6 years ago

Works great.

jahid_0903014 6 years ago