On Tue, Mar 11, 2025 at 17:40:35 +0000, Nils wrote:
> riccy@riccy:~$ cat /etc/default/locale
> #  File generated by update-locale
> LANG=en_US.UTF-8
> LC_TIME=de_DE.UTF-8
> 
> (after a reboot)
> riccy@riccy:~$ echo $LC_TIME
> en_DE.UTF-8
> 
> Searching /etc for the config string reveals nothing:
> riccy@riccy:~$ sudo grep -r en_DE /etc
> riccy@riccy:~$ 
> 
> Any ideas what could be going on here? This is a Debian Bookworm install.

It might be coming from one of the user's dot files.  You can try
these:

PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep en_DE
PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ixc : 2>&1 | grep en_DE

The first one launches a login shell, and the second launches a non-login
shell.  If that definition is coming from a dot file read by their
shell, it should show up in one or both of those.

If it's not coming from the user's shell config, then my next guess would
have been PAM, but I'm pretty sure all the PAM configs are in /etc.

Reply via email to