Skip to content

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings 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

On my Debian 13 LemnosLife VPS as root:

sudo apt update
Output:
Hit:1 http://deb.debian.org/debian trixie InRelease
Get:2 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:3 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:4 http://deb.debian.org/debian-security trixie-security/main Sources [95.1 kB]
Get:5 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [75.6 kB]
Get:6 http://deb.debian.org/debian-security trixie-security/main Translation-en [48.9 kB]
Fetched 310 kB in 0s (949 kB/s)                
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
sudo apt upgrade -y
Output:
Upgrading:                      
  chromium  chromium-common  chromium-driver

Summary:
  Upgrading: 3, Installing: 0, Removing: 0, Not Upgrading: 0
  Download size: 110 MB
  Freed space: 5120 B

Get:1 http://deb.debian.org/debian-security trixie-security/main amd64 chromium-driver amd64 142.0.7444.175-1~deb13u1 [7077 kB]
Get:2 http://deb.debian.org/debian-security trixie-security/main amd64 chromium amd64 142.0.7444.175-1~deb13u1 [80.1 MB]
Get:3 http://deb.debian.org/debian-security trixie-security/main amd64 chromium-common amd64 142.0.7444.175-1~deb13u1 [22.6 MB]                                                                                   
Fetched 110 MB in 9s (11.8 MB/s)                                                                                                                                                                                  
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US",
	LC_ALL = (unset),
	LC_CTYPE = (unset),
	LC_NUMERIC = "en_GB.UTF-8",
	LC_COLLATE = (unset),
	LC_TIME = "en_GB.UTF-8",
	LC_MESSAGES = (unset),
	LC_MONETARY = "en_GB.UTF-8",
	LC_ADDRESS = "en_GB.UTF-8",
	LC_IDENTIFICATION = (unset),
	LC_MEASUREMENT = "en_GB.UTF-8",
	LC_PAPER = "en_GB.UTF-8",
	LC_TELEPHONE = "en_GB.UTF-8",
	LC_NAME = (unset),
	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
(Reading database ... 132417 files and directories currently installed.)
Preparing to unpack .../chromium-driver_142.0.7444.175-1~deb13u1_amd64.deb ...
Unpacking chromium-driver (142.0.7444.175-1~deb13u1) over (142.0.7444.162-1~deb13u1) ...
Preparing to unpack .../chromium_142.0.7444.175-1~deb13u1_amd64.deb ...
Unpacking chromium (142.0.7444.175-1~deb13u1) over (142.0.7444.162-1~deb13u1) ...
Preparing to unpack .../chromium-common_142.0.7444.175-1~deb13u1_amd64.deb ...
Unpacking chromium-common (142.0.7444.175-1~deb13u1) over (142.0.7444.162-1~deb13u1) ...
Setting up chromium-common (142.0.7444.175-1~deb13u1) ...
Setting up chromium (142.0.7444.175-1~deb13u1) ...
Setting up chromium-driver (142.0.7444.175-1~deb13u1) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for mailcap (3.74) ...
Processing triggers for desktop-file-utils (0.28-1) ...
Processing triggers for hicolor-icon-theme (0.18-2) ...
Processing triggers for libc-bin (2.41-12) ...
Summary:                        
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
sudo apt autoremove -y
Summary:                        
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

Related to #1 and Benjamin_Loison/bash/issues/5.