Error Unable to open env file: /etc/default/locale: No such file or directory

Some of my systems are logging this error:

su: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory

I already had the "locales" package installed, to create the file:

dpkg-reconfigure locales

Follow the prompts to choose your locale(s). Result:

cat /etc/default/locale 
#  File generated by update-locale
LANG=en_US.UTF-8

1 Comment

  • 1. Jainyzau replies at 14th July 2014, 8:21 am :

    Thank you!

Leave a comment

NOTE: Enclose quotes in <blockquote></blockquote>. Enclose code in <pre lang="LANG"></pre> (where LANG is one of these).