toolbox icon indicating copy to clipboard operation
toolbox copied to clipboard

Missing locales on Arch Linux guest

Open AshkanArabim opened this issue 9 months ago • 3 comments

Describe the bug I have a clean installation of the Arch Linux guest (with an Arch Linux host) that I've installed using toolbox create gnome (I plan to use it for some Gnome development). When I enter the machine to install the fa_IR locale by uncommenting it from /etc/locale.gen and running sudo locale-gen, I get this message:

[ashkan@toolbox gnome-clocks-new]$ sudo locale-gen
Generating locales...
  en_US.UTF-8... done
  fa_IR.UTF-8...[error] cannot open locale definition file `fa_IR': No such file or directory

I assume this is related to the fact that fa_IR isn't listed when I run ls /usr/share/i18n/locales/. There are many locales missing here when I compare it to my host OS.

Steps how to reproduce the behaviour

  1. Get an Arch Linux host and install toolbox. (or manually create the Arch container in the next step using the --distro flag)
  2. Create a container: toolbox create <name> and enter it with toolbox enter <name>
  3. Uncomment the line with fa_IR in /etc/locale.gen and save.
  4. Run sudo locale-gen

Expected behaviour For sudo locale-gen to successfully generate the Persian locale; with an output like this:

Generating locales...
  en_US.UTF-8... done
  fa_IR.UTF-8... done
Generation complete.

Actual behaviour It fails to generate the Persian locale (fa_IR).

Screenshots N/A

Output of toolbox --version (v0.0.90+) toolbox version 0.0.99.5

Toolbx package info (rpm -q toolbox)

$ pacman -Qi toolbox
Name            : toolbox
Version         : 0.0.99.5-1
Description     : Unprivileged development environment
Architecture    : x86_64
URL             : https://github.com/containers/toolbox
Licenses        : APACHE
Groups          : None
Provides        : None
Depends On      : podman  bash  flatpak
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 7.23 MiB
Packager        : Morten Linderud <[email protected]>
Build Date      : Fri 22 Dec 2023 15:09:25 MST
Install Date    : Fri 17 May 2024 09:02:27 MDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Output of podman version e.g.,

Client:       Podman Engine
Version:      5.0.3
API Version:  5.0.3
Go Version:   go1.22.3
Git Commit:   d08315df35cb6e95f65bf3935f529295c6e54742-dirty
Built:        Mon May 13 04:25:15 2024
OS/Arch:      linux/amd64

Podman package info (rpm -q podman)

Name            : podman
Version         : 5.0.3-1
Description     : Tool and library for running OCI-based containers in pods
Architecture    : x86_64
URL             : https://github.com/containers/podman
Licenses        : Apache-2.0
Groups          : None
Provides        : None
Depends On      : catatonit  conmon  containers-common  crun  gcc-libs  glibc  iptables  device-mapper  libdevmapper.so=1.02-64  gpgme  libgpgme.so=11-64  libseccomp  libseccomp.so=2-64  passt
Optional Deps   : apparmor: for AppArmor support [installed]
                  btrfs-progs: support btrfs backend devices [installed]
                  cni-plugins: for an alternative container-network-stack implementation
                  fuse-overlayfs: for storage driver in rootless environment [installed]
                  slirp4netns: for alternative rootless network support [installed]
                  podman-compose: for docker-compose compatibility
                  podman-docker: for Docker-compatible CLI
Required By     : toolbox
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 76.95 MiB
Packager        : David Runge <[email protected]>
Build Date      : Mon 13 May 2024 04:25:15 MDT
Install Date    : Mon 13 May 2024 21:27:31 MDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Info about your OS Arch Linux

Additional context N/A

AshkanArabim avatar May 18 '24 17:05 AshkanArabim