Debian's most annoying warning message: "Setting locale failed"

Christian Aichinger
Thu, 03 Dec 2015 00:00:00 +0100
blog, debian, ubuntu

The Perl "Setting locale failed." comes up frequently when working with non-standard locales, especially when creating chroots/Docker containers/virtual machines. Fortunately, the warning message is easy to fix with locale-gen.