In Fedora/CentOS9, the PostgreSQL initialization fails with the following message: initdb: invalid locale settings; check LANG and LC_* environment variables This patch installs the required packages and configure the system locale before calling the initialization process. Closes-Bug: #2083482 Change-Id: I2c83e896819b20cd7a1ee8d8ee33354fb047a6d9