Code talks louder than words:root@myhost # locale-genGenerating locales (this might take a while)...(skipping a bit here)error: Bad entry 'en_GB '  en_GB.UTF-8... done(skipping a bit here)  en_SG.UTF-8... doneerror: Bad entry 'en_US '  en_US.ISO-8859-1... done  en_US.UTF-8... doneerror: Bad entry 'en_US.iso88591 'error: Bad entry 'en_US.iso885915 '  en_ZA.UTF-8... done(skipping a bit here)Generation complete.Why am I getting these errors and how can I avoid them?Notes: I use Linux Mint 18.2, but this started happening at some point in the (near?) past with Mint 18.1. They're both based on Ubuntu 16.04 I think.I haven't found files with these bad entries (with or without the extra space at the end) under /etc; specifically not /etc/locale.gen.Additional info:Relevant contents of /etc/locale.gen:# grep -v # /etc/locale.gen | sed s/$/+/ | grep en_en_GB.UTF-8 UTF-8+en_US ISO-8859-1+en_US.UTF-8 UTF-8+
Why do I get a error: Bad entry 'en_US ' when generating locales?
locale;i18n