Hi all,
we have set up a brand new Solaris 11.4 system and selected de.UTF-8 for the locale but kept english for the installation language. After rebooting we get
Failed to set locale: unsupported locale setting. Falling back to C.
pkg: Unable to set locale; locale package may be broken or
not installed. Reverting to C locale.
at every second command. This is our system:
pkg info entire
Name: entire
Summary: entire incorporation including Support Repository Update
(Oracle Solaris 11.4.20.4.0).
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system.
For more information see:
https://support.oracle.com/rs?type=doc&id=2433412.1
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 11.4 (Oracle Solaris 11.4.20.4.0)
Branch: 11.4.20.0.1.4.0
Packaging Date: Thu Mar 26 17:29:32 2020
Last Install Time: Sat Apr 18 13:24:45 2020
Size: 2.52 kB
FMRI: pkg://solaris/entire@11.4-11.4.20.0.1.4.0:20200326T172932Z
locale
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
We have tried
pkg install system/locale
pkg install system/locale/en_us
pkg install system/locale/de_de
pkg install text/locale
nlsadm install-locale de_DE.UTF-8
pkg change-facet locale.de=True locale.de_DE=True
to no avail. We also tried
svccfg -s svc:/system/environment:init setprop environment/LANG = astring: "C"
svcadm refresh svc:/system/environment
svccfg -s svc:/system/environment:init listprop environment/LANG
to get rid of the annoying message but still get it. What can we do??
By the way: Rebooting does not solve this problem. I rebooted many times to no avail!
Thanks a lot!!!