[GH-ISSUE #9557] Cockpit installation throws errors/warnings about "locale settings" #2105

Closed
opened 2026-02-26 12:51:19 +03:00 by kerem · 2 comments
Owner

Originally created by @DaKarli on GitHub (Dec 1, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/9557

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

📜 What is the name of the script you are using?

Cockpit

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/ct/cockpit.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

9.1.1

📝 Provide a clear and concise description of the issue.

Installing Cockpit I get some errors/warnings regarding locale settings. I also tried with Debian 12, same output.
Nevertheless installation works afterwards.
To ensure correct locales settings after the installation I checked locales and reconfigured using dpkg-reconfigure:

root@cockpit:# localectl 
System Locale: LANG=de_DE.UTF-8
    VC Keymap: (unset)         
   X11 Layout: (unset)

root@cockpit:# localectl list-locales
C.UTF-8
de_DE.UTF-8

root@cockpit:# locale -a
C
C.utf8
de_DE.utf8
POSIX

root@cockpit:# dpkg-reconfigure locales
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_US.UTF-8... done
Generation complete.

root@cockpit:# locale -a
C
C.utf8
de_DE.utf8
en_US.utf8
POSIX

root@cockpit:# localectl 
System Locale: (unset)
    VC Keymap: (unset)
   X11 Layout: (unset)

### 🔄 Steps to reproduce the issue.

Just plain installation with the a.m. command.

### ❌ Paste the full error output (if available).

  
  🧩  Using Advanced Settings on node proxmox
  🖥️  Operating System: debian
  🌟  Version: 13
  📦  Container Type: Unprivileged
  🔐  Root Password: Automatic Login
  🆔  Container ID: 105
  🏠  Hostname: cockpit4
  💾  Disk Size: 4 GB
  🧠  CPU Cores: 2
  🛠️  RAM Size: 1024 MiB
  🌉  Bridge: vmbr1
  📡  IPv4: DHCP
  📡  IPv6: SLAAC/AUTO
  📡  APT-Cacher IP Address: Default
  ⚙️  Interface MTU Size: Default
  🔍  DNS Search Domain: Host
  📡  DNS Server IP Address: Host
  🏷️  Vlan: Default
  📡  Tags: community-script;monitoring;network
  🔑  Root SSH Access: no
  🗂️  Enable FUSE Support: no
  🔍  Verbose Mode: yes
  🚀  Creating a Cockpit LXC using the above advanced settings
  ✔️   Storage local (Free: 22.8GB  Used: 15.2GB) [Template]
  ✔️   Storage Container (Free: 764.0GB  Used: 5.6GB) [Container]
  ✔️   Template debian-13-standard_13.1-2_amd64.tar.zst [local]
  ✔️   LXC Container 105 was successfully created.
  ✔️   Started LXC Container
  ✔️   Network in LXC is reachable (ping)
  ⏳   Customizing LXC Containerbash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
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 = "en_US.UTF-8",
        LC_CTYPE = (unset),
        LC_NUMERIC = (unset),
        LC_COLLATE = (unset),
        LC_TIME = (unset),
        LC_MESSAGES = (unset),
        LC_MONETARY = (unset),
        LC_ADDRESS = (unset),
        LC_IDENTIFICATION = (unset),
        LC_MEASUREMENT = (unset),
        LC_PAPER = (unset),
        LC_TELEPHONE = (unset),
        LC_NAME = (unset),
        LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
  ✔️   Customized LXC Container
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
  ✔️   Set up Container OS


...several errors/warnings follow, but all regarding locales settings.

### 🖼️ Additional context (optional).

_No response_
Originally created by @DaKarli on GitHub (Dec 1, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/9557 ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? Cockpit ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/ct/cockpit.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? 9.1.1 ### 📝 Provide a clear and concise description of the issue. Installing Cockpit I get some errors/warnings regarding locale settings. I also tried with Debian 12, same output. Nevertheless installation works afterwards. To ensure correct locales settings after the installation I checked locales and reconfigured using dpkg-reconfigure: ``` root@cockpit:# localectl System Locale: LANG=de_DE.UTF-8 VC Keymap: (unset) X11 Layout: (unset) root@cockpit:# localectl list-locales C.UTF-8 de_DE.UTF-8 root@cockpit:# locale -a C C.utf8 de_DE.utf8 POSIX root@cockpit:# dpkg-reconfigure locales Generating locales (this might take a while)... de_DE.UTF-8... done en_US.UTF-8... done Generation complete. root@cockpit:# locale -a C C.utf8 de_DE.utf8 en_US.utf8 POSIX root@cockpit:# localectl System Locale: (unset) VC Keymap: (unset) X11 Layout: (unset) ### 🔄 Steps to reproduce the issue. Just plain installation with the a.m. command. ### ❌ Paste the full error output (if available). 🧩 Using Advanced Settings on node proxmox 🖥️ Operating System: debian 🌟 Version: 13 📦 Container Type: Unprivileged 🔐 Root Password: Automatic Login 🆔 Container ID: 105 🏠 Hostname: cockpit4 💾 Disk Size: 4 GB 🧠 CPU Cores: 2 🛠️ RAM Size: 1024 MiB 🌉 Bridge: vmbr1 📡 IPv4: DHCP 📡 IPv6: SLAAC/AUTO 📡 APT-Cacher IP Address: Default ⚙️ Interface MTU Size: Default 🔍 DNS Search Domain: Host 📡 DNS Server IP Address: Host 🏷️ Vlan: Default 📡 Tags: community-script;monitoring;network 🔑 Root SSH Access: no 🗂️ Enable FUSE Support: no 🔍 Verbose Mode: yes 🚀 Creating a Cockpit LXC using the above advanced settings ✔️ Storage local (Free: 22.8GB Used: 15.2GB) [Template] ✔️ Storage Container (Free: 764.0GB Used: 5.6GB) [Container] ✔️ Template debian-13-standard_13.1-2_amd64.tar.zst [local] ✔️ LXC Container 105 was successfully created. ✔️ Started LXC Container ✔️ Network in LXC is reachable (ping) ⏳ Customizing LXC Containerbash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory 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 = "en_US.UTF-8", LC_CTYPE = (unset), LC_NUMERIC = (unset), LC_COLLATE = (unset), LC_TIME = (unset), LC_MESSAGES = (unset), LC_MONETARY = (unset), LC_ADDRESS = (unset), LC_IDENTIFICATION = (unset), LC_MEASUREMENT = (unset), LC_PAPER = (unset), LC_TELEPHONE = (unset), LC_NAME = (unset), LANG = "de_DE.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("de_DE.UTF-8"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory ✔️ Customized LXC Container bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory ✔️ Set up Container OS ...several errors/warnings follow, but all regarding locales settings. ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:51:19 +03:00
Author
Owner

@DaKarli commented on GitHub (Dec 1, 2025):

@MickLesk : I already thought, this is "not a script issue"... ;-)
But maybe you can lead me into the right direction as where to post this issue?
I believe this would be a better fit: https://github.com/cockpit-project/cockpit
Nevertheless, I could post it there or, up to you, if you have better "connections" to the Devs?
Thanks!

<!-- gh-comment-id:3598581310 --> @DaKarli commented on GitHub (Dec 1, 2025): @MickLesk : I already thought, this is "not a script issue"... ;-) But maybe you can lead me into the right direction as where to post this issue? I believe this would be a better fit: https://github.com/cockpit-project/cockpit Nevertheless, I could post it there or, up to you, if you have better "connections" to the Devs? Thanks!
Author
Owner

@MickLesk commented on GitHub (Dec 1, 2025):

This is not a script issue. Your Proxmox host has LC_ALL=en_US.UTF-8 configured but the locale isn't generated. Run on your Proxmox host:
sed -i 's/^# *en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen && locale-gen

The warnings are harmless - installation works fine regardless.

<!-- gh-comment-id:3598601808 --> @MickLesk commented on GitHub (Dec 1, 2025): This is not a script issue. Your Proxmox host has LC_ALL=en_US.UTF-8 configured but the locale isn't generated. Run on your Proxmox host: sed -i 's/^# *en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen && locale-gen The warnings are harmless - installation works fine regardless.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2105
No description provided.