我正在编写一个脚本,该脚本使用“debootstrap”下载各种版本并在其上安装一些必要的包(包括语言环境),然后将其打包以在另一个脚本中使用。
在 chroot 中运行命令时出现以下错误:
# locale-gen en_US.UTF-8;update-locale LANG=en_US.UTF-8
Generating locales (this might take a while)...
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: …Run Code Online (Sandbox Code Playgroud) linux ×1