Pacman Failed to set locale

Every time I install, remove or update something pacman shows this error:

Failed to set locale.
==> root: 55

the number (55) changes everytime, I have “en_US.UTF-8 UTF-8” & “es_ES.UTF-8 UTF-8” uncommented in my “/etc/locale.gen”

sudo locale-gen generates them normally

Generating locales…
en_US.UTF-8… done
es_ES.UTF-8… done
Generation complete.

the error/warning don’t prevent pacman from doing its job it just appear there every time.

C
C.utf8
en_US.utf8
es_ES.utf8
POSIX

System Locale: LANG=en_US.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_PAPER=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
VC Keymap: es
X11 Layout: es

LANG=en_US.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_PAPER=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_TIME=es_ES.UTF-8

so I did this, I commented everything but the lang, and that removed the error, I enabled everything one by one till everything was uncommented again but the error never came back… I don’t know what it was but it’s solved now :+1: