ERROR: Ansible could not initialize the preferred locale: unsupported locale setting

Jin·2025년 1월 2일
2

환경
rocky-linux-8

ansible를 설치를 한 뒤 버전을 불러올 수가 없었다.
에휴
이것은 Ansible이 “.UTF-8”로 끝나는 locale을 찾을 수 없음을 의미한다.
locale을 확인한 다음에 LC_ALL 변수를 UTF-8로 끝나는 locale 중 하나로 export 하면 된다.

locale -a
export LC_ALL=C.UTF-8


다시 버전 확인하면 잘 되는 것을 볼 수 있다.

출처

https://fabianlee.org/2023/08/21/ansible-resolving-could-not-initialize-the-preferred-locale-unsupported-locale-setting/

profile
go-getter

0개의 댓글

관련 채용 정보