[OpenIndiana-discuss] Workaround: pkg: Unable to set locale 'en_US.UTF-8'
    Tony Brian Albers 
    tba at kb.dk
       
    Mon Jun 28 05:41:44 UTC 2021
    
    
  
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
-- 
Tony Albers - Systems Architect - Data Department, Royal Danish Library, 
Victor Albecks Vej 1, 8000 Aarhus C, Denmark
Tel: +45 2566 2383 - CVR/SE: 2898 8842 - EAN: 5798000792142
    
    
More information about the openindiana-discuss
mailing list