Solaris and the dreaded "couldn't set locale correctly" message
[ link: solaris_locale | tags: solaris | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]
On a freshly jumpstarted Solaris 10 box, I was getting the following errors as shown below when logging in:
couldn't set locale correctly
couldn't set locale correctly
Also when I ran the localeadm command, I got:
[root@unixserver]$ localeadm
couldn't set locale correctly
couldn't set locale correctly
[root@unixserver]$
So the problem is that my /etc/default/init file had more locales in it than were installed on the system. So what I did was just trimmed down the entries in this file to be the following:
TZ=US/Eastern
CMASK=022
LANG=en_US.UTF-8
and rebooted the box. Now all is happy.
UPDATE: it seems that another/better solution is to install the following packages and their dependencies which have the missing files that are actually causing the error messages.
pkgadd SUNWi1cs SUNWi15cs SUNWnamos
-db
Like this article? Buy me a beer!