[OpenIndiana-discuss] Workaround: pkg: Unable to set locale 'en_US.UTF-8'

Till Wegmueller toasterson at gmail.com
Mon Jun 28 11:36:15 UTC 2021


Hey Tony

If the target is a zone you may also want to check that locale/en and 
locale/en-extra are installed. They are not part of basic installations 
in zones.

-Till

On 28.06.21 02:41, Tony Brian Albers wrote:
> Just FYI:
> 
> If you ssh to OI from RHEL or a derivative thereoff, you might see:
> 
> root at swan:~# pkg search keepass
> pkg: Unable to set locale 'en_US.UTF-8'; locale package may be broken or
> not installed.  Reverting to C locale.
> root at swan:~#
> 
> This can be fixed by adding:
> AcceptEnv	none
> 
> To /etc/ssh/sshd_config on OI.
> 
> I haven't really studied why this happens, but it's obvious that
> something goes wrong when ssh on RHEL tries to pass environment
> variables to OI. Setting AcceptEnv to 'none' disables the passing of
> variables.
> There might be a more elegant solution to this, like changing the
> client's behaviour, but I have no idea how that would affect ssh'ing to
> other RHEL-machines.
> 
> 
> 
> 
> /tony
> 



More information about the openindiana-discuss mailing list