lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
620 stars 140 forks source link

Locale not set properly for EL8 Vagrantboxes (centos8, centos8s, alma8, rocky8, oracle8) #262

Closed stdevel closed 1 year ago

stdevel commented 1 year ago

I stumbled upon that locales seem to be set incorrectly on EL8 boxes:

# dnf install htop
Failed to set locale, defaulting to C.UTF-8
...

This is problematic as some applications (e.g. PostgreSQL database) might break because of this.

The following command fixes this issue:

# dnf install -y langpacks-en glibc-all-langpacks

On Oracle Linux 8, this doesn't work. It still shows the same error message.

It seems EL9 is not affected.

ladar commented 1 year ago

Can you see if this is still a problem, and let me know command should be run to fix it?

stdevel commented 1 year ago

I downloaded and tested the following Vagrantboxes:

$ vagrant box list
generic/alma8      (libvirt, 4.2.12)
generic/centos8    (libvirt, 4.2.12)
generic/centos8s   (libvirt, 4.2.12)
generic/oracle8    (libvirt, 4.2.12)
generic/rocky8     (libvirt, 4.2.12)

None of the machines have the issue mentioned above anymore. Looks like the missing packages have been installed in the mean time:

$ rpm -qa|grep lang
langpacks-en-1.0-12.el8.noarch
slang-2.3.2-3.el8.x86_64
glibc-langpack-en-2.28-224.el8.x86_64

Closing the issue.