Skip to content

Generate en_US.UTF-8 in base container image to remove shell locale warnings#285

Open
Copilot wants to merge 6 commits intomainfrom
copilot/bug-fix-shell-error-locales
Open

Generate en_US.UTF-8 in base container image to remove shell locale warnings#285
Copilot wants to merge 6 commits intomainfrom
copilot/bug-fix-shell-error-locales

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

Shell sessions in containers were inheriting LANG/LC_* = en_US.UTF-8 without the locale being generated, producing repeated setlocale warnings on login. Since LXC instances are built from this image, the root cause is image-level locale provisioning.

  • Base image locale provisioning

    • Updated /images/base/Dockerfile to install locales in the base layer.
    • Ensured en_US.UTF-8 is present in /etc/locale.gen.
    • Generated the locale and set system default locale to LANG=en_US.UTF-8.
  • Resulting behavior

    • Containers built from this image include en_US.utf8 locale data by default.
    • Interactive shells no longer emit LC_CTYPE/LC_COLLATE warnings when environment variables are set to en_US.UTF-8.
RUN apt-get update && \
    apt-get install -y ... locales && \
    echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
    locale-gen en_US.UTF-8 && \
    update-locale LANG=en_US.UTF-8 && \
    ...

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • download.proxmox.com
    • Triggering command: /usr/bin/curl curl REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix locale errors on every shell in the containers Generate en_US.UTF-8 in base container image to remove shell locale warnings Apr 14, 2026
Copilot AI requested a review from horner April 14, 2026 23:36
@horner horner requested a review from runleveldev April 14, 2026 23:40
Copy link
Copy Markdown
Collaborator

@runleveldev runleveldev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@runleveldev runleveldev marked this pull request as ready for review April 15, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: errors on every shell in the containers

3 participants