New answers tagged

1

Current accepted answer is not sufficient in the troubleshoot strategy because you can have an human error. You setup your system to en_US but you have en_GB enabled in/etc/locale.gen like I had in the thread here for Raspberry Pi 3b. You should have all your used locales enabled in /etc/locale.gen. I had en_GB.UTF-8 UTF-8 only enabled in /etc/locale.gen....


1

You can't use pbuilder-style hooks, no. However, generating locales doesn't require root in principle; it's just the default locale-gen arrangements that write to the system locale directories and therefore require root. You could instead use localedef to generate the locales somewhere under your build directory and point your test process at that using ...


1

Real solution is here: apt-get download libc-bin dpkg -x libc-bin*.deb unpackdir/ sudo cp unpackdir/sbin/ldconfig /sbin/ sudo apt-get install --reinstall libc-bin sudo apt-get install -f enjoy! :)


0

This same problem (LC_CTYPE=UTF-8, which is wrong) can happen when you login over ssh from a Mac to a linux box, and your terminal automatically sets environment variables. There's a checkbox for that. Uncheck it, and you're good to go. In iTerm it's in the profile->Terminal Tab.



Top 50 recent answers are included