Apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!

Hi,

On a Rock 3C with latest Kernel I’m having some issues with the locale setting. This occurs during update/upgrade of the Debian OS that was originally installed. Here’s the issue below

apt-listchanges: Can’t set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = “en_IE.UTF-8”,
LC_MONETARY = “en_IE.UTF-8”,
LC_ADDRESS = “en_IE.UTF-8”,
LC_TELEPHONE = “en_IE.UTF-8”,
LC_NAME = “en_IE.UTF-8”,
LC_MEASUREMENT = “en_IE.UTF-8”,
LC_IDENTIFICATION = “en_IE.UTF-8”,
LC_NUMERIC = “en_IE.UTF-8”,
LC_PAPER = “en_IE.UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to a fallback locale (“en_US.UTF-8”).
locale: Cannot set LC_ALL to default locale: No such file or directory

neofetch output :

,g$$$$$$$$$$$$$$$P.       ------------- 

,g$$P" “”“Y$$.”. OS: Debian GNU/Linux 11 (bullseye) aarch64
,$$P’ $$$. Host: Radxa ROCK3 Model C ',$$P ,ggs. $$b: Kernel: 5.10.160-33-rk356x
d$$' ,$P"' . $$$ Uptime: 7 days, 37 mins $$P d$' , $$P Packages: 1274 (dpkg) $$: $$. - ,d$$' Shell: fish 3.1.2 $$; Y$b._ _,d$P' Terminal: /dev/pts/0 Y$$. ."Y$$$$P"' CPU: (4) @ 1.416GHz $$b “-.__ Memory: 305MiB / 1983MiB
Y$$ Y$$.
$$b. Y$$b.
"Y$b._ “””
Any thoughts on how to resolve this once and for all ? I have already tried the most commonly available solutions proposed after serching online.

cheers, MM

you can use the system tool rsetup to config locale

rsetup -> Localization -> Timezone/Locale

or you can set them manually by edit the file /home/radxa/.bashrc

eg:

export LANGUAGE=en
LC_ALL=C 

Hi,

did both ways yet after a reboot and doing a locale remotely I get :
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=en_IE.UTF-8
LC_TIME=en_IE.UTF-8
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=en_IE.UTF-8
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=en_IE.UTF-8
LC_NAME=en_IE.UTF-8
LC_ADDRESS=en_IE.UTF-8
LC_TELEPHONE=en_IE.UTF-8
LC_MEASUREMENT=en_IE.UTF-8
LC_IDENTIFICATION=en_IE.UTF-8
LC_ALL=

it still appears not to have resolved the issue. Why the “No such file or directory” ?

For anybody interested, the solution was just to install sudo apt install locales-all, then re-run locale-gen and relog-in. Now it appears no more errors regarding the locales settings.