I'm trying to run a python script in an ubuntu 16.04 LXC, but it fails with the following message:
If I run those two lines in CLI, then the Python script executes fine, but if the LXC restarts, the issue presents itself again. So how do I permanently enable those locales?
The only things I could find online point to supported locales in a /usr/share/i18n/ directory, which doesn't exist in my LXC. And if I just add those two locales to my /etc/locale.gen file, it just labels them as a "bad entry."
So how do I fix this permanently without having to manually export the locales after each reboot?
Code:
This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the
following environment variables:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
If I run those two lines in CLI, then the Python script executes fine, but if the LXC restarts, the issue presents itself again. So how do I permanently enable those locales?
The only things I could find online point to supported locales in a /usr/share/i18n/ directory, which doesn't exist in my LXC. And if I just add those two locales to my /etc/locale.gen file, it just labels them as a "bad entry."
So how do I fix this permanently without having to manually export the locales after each reboot?