Search This Blog

Friday, June 17, 2022

fix gitolite perl error: rebuild locales

I run gitolite3 on a Debian 10 Server. Got this error when try to push from etckeeper by git push:
remote: perl: warning: Setting locale failed.
remote: perl: warning: Please check that your locale settings:
remote:         LANGUAGE = (unset),
remote:         LC_ALL = (unset),
remote:         LANG = "en_CA.UTF-8"
remote:     are supported and installed on your system.
remote: perl: warning: Falling back to the standard locale ("C").
Spent a lot of time try to set the LANGUAG, LC_ALL and LANG on the git client side. None of them works. End up rebuild locales on the gitolite3 host server:
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales

No comments:

Post a Comment