How do I resolve this locale issue?

Solution 1:

I figured it out!

I needed to follow these steps:

export DEBIAN_FRONTEND=noninteractive
apt-get install locales
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale-gen

and then the rest worked!