Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have created a chroot jail and when I log in I get a bash warning bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

I tried to google the error, but wasn't able to find a solution

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Sounds like you're missing /usr/lib/locale inside your chroot. Try copying them into place from your non-chroot'd /usr/lib/locale or chroot with LANG=C.

share|improve this answer
Chrooting with LC_ALL=C fixed it for me. –  Torben Jul 3 at 16:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.