containers / containers/toolbox
Missing locales on Arch Linux guest
- Dominant language
- Go
- Stars
- 3.5k
- Forks
- 262
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Description
**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 ` and enter it with `toolbox enter `
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
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
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
Contributor guide
Research direction
Reproduce with `toolbox create` and `toolbox enter` on an Arch Linux host, then inspect `/etc/locale.gen` and `/usr/share/i18n/locales/` before running `sudo locale-gen`. Trace how the Arch guest image or its packages provide locale definitions; the issue is done when `fa_IR.UTF-8` and other expected locales generate successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100