小编ion*_*ish的帖子

Debootstrap 语言环境错误,无法安装语言环境来修复它?

我正在编写一个脚本,该脚本使用“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

2
推荐指数
1
解决办法
2454
查看次数

标签 统计

linux ×1