How to fix Perl warning setting locale failed on Raspbian 发表评论 Solution You can fix the issue by setting the locale to en_US.UTF-8 for example: export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 dpkg-reconfigure locales