Docker LXC - Installation Failure - Locale Configuration Error #2069

Closed
opened 2026-02-05 03:39:11 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @styxadmin on GitHub (Nov 25, 2025).

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?

Docker LXC

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docker.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

pve-manager/9.1.1/42db4a6cf33dac83 (running kernel: 6.17.2-1-pve)

📝 Provide a clear and concise description of the issue.

I get the following error when attempting to install the Docker LXC on Proxmox 9.1.1

[ERROR] in line 1341: exit code 0: while executing command pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen"

🔄 Steps to reproduce the issue.

Step 1: Paste & Run command in Proxmox VE Shell

Step 2: Select Default Settings with Verbose Output

Step 3: Receive Error

Paste the full error output (if available).

____             __

/ __ ____ / / _____
/ / / / __ / / /// _ / /
/ /
/ / /
/ / /
/ ,< / / /
/
/_/_//||__/_/

⚙️ Using Default Settings on node proxmox (🔍 Verbose)
🆔 Container ID: 101
🖥️ Operating System: debian (12)
📦 Container Type: Unprivileged
💾 Disk Size: 4 GB
🧠 CPU Cores: 2
🛠️ RAM Size: 2048 MiB
🔍 Verbose Mode: Enabled
🚀 Creating a Docker LXC using the above default settings

✔️ Storage local (Free: 30.2GB Used: 32.6GB) [Template]
✔️ Storage KC600 (Free: 742.6GB Used: 126.7GB) [Container]
✔️ Template debian-12-standard_12.12-1_amd64.tar.zst [local]
✔️ LXC Container 101 was successfully created.
✔️ Started LXC Container
✔️ Network in LXC is reachable (ping)
Customizing LXC Containersed: -e expression #1, char 0: no previous regular expression

[ERROR] in line 1341: exit code 0: while executing command pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen"

🖼️ Additional context (optional).

Image
Originally created by @styxadmin on GitHub (Nov 25, 2025). ### ✅ 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? Docker LXC ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docker.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? pve-manager/9.1.1/42db4a6cf33dac83 (running kernel: 6.17.2-1-pve) ### 📝 Provide a clear and concise description of the issue. I get the following error when attempting to install the Docker LXC on Proxmox 9.1.1 `[ERROR] in line 1341: exit code 0: while executing command pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen"` ### 🔄 Steps to reproduce the issue. Step 1: Paste & Run command in Proxmox VE Shell Step 2: Select Default Settings with Verbose Output Step 3: Receive Error ### ❌ Paste the full error output (if available). ____ __ / __ \____ _____/ /_____ _____ / / / / __ \/ ___/ //_/ _ \/ ___/ / /_/ / /_/ / /__/ ,< / __/ / /_____/\____/\___/_/|_|\___/_/ ⚙️ Using Default Settings on node proxmox (🔍 Verbose) 🆔 Container ID: 101 🖥️ Operating System: debian (12) 📦 Container Type: Unprivileged 💾 Disk Size: 4 GB 🧠 CPU Cores: 2 🛠️ RAM Size: 2048 MiB 🔍 Verbose Mode: Enabled 🚀 Creating a Docker LXC using the above default settings ✔️ Storage local (Free: 30.2GB Used: 32.6GB) [Template] ✔️ Storage KC600 (Free: 742.6GB Used: 126.7GB) [Container] ✔️ Template debian-12-standard_12.12-1_amd64.tar.zst [local] ✔️ LXC Container 101 was successfully created. ✔️ Started LXC Container ✔️ Network in LXC is reachable (ping) ⏳ Customizing LXC Containersed: -e expression #1, char 0: no previous regular expression [ERROR] in line 1341: exit code 0: while executing command pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen" ### 🖼️ Additional context (optional). <img width="1217" height="560" alt="Image" src="https://github.com/user-attachments/assets/c02fb1ce-d2df-44cf-af6d-a9a9afa92e3b" />
OVERLORD added the bug label 2026-02-05 03:39:11 +03:00
Author
Owner

@MickLesk commented on GitHub (Nov 25, 2025):

Your lang Settings failed. Not docker

/etc/default/locale whats the output?

@MickLesk commented on GitHub (Nov 25, 2025): Your lang Settings failed. Not docker /etc/default/locale whats the output?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2069