Background
Today I have to use an very old environment to do experiment, which uses ubuntu16.04 and cuda9.0.
I deploy a docker system and create an nvidia-docker container.
When I run “apt install vim”, I met this problem:
perl: warning: Falling back to the standard locale (“C”).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = “zh_CN.UTF-8”,
LC_MONETARY = “zh_CN.UTF-8”,
LC_ADDRESS = “zh_CN.UTF-8”,
LC_TELEPHONE = “zh_CN.UTF-8”,
LC_NAME = “zh_CN.UTF-8”,
LC_MEASUREMENT = “zh_CN.UTF-8”,
LC_IDENTIFICATION = “zh_CN.UTF-8”,
LC_NUMERIC = “zh_CN.UTF-8”,
LC_PAPER = “zh_CN.UTF-8”,
LANG = “C”
Solutions
Obvisouly, it’s because the system is set to use Chinese as default laguage evirenment. But the system don’t have Chinese supports.
So we need to add the support or reset the system language to English. I choose the the first solution:
apt install locales
dpkg-reconfigure locales
choose:
471
choose:
2
OK!