首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apt-get自动删除在安装了debian测试main的gdal-bin包之后,正在扰乱地区设置。

apt-get自动删除在安装了debian测试main的gdal-bin包之后,正在扰乱地区设置。
EN

Unix & Linux用户
提问于 2022-12-22 15:53:29
回答 1查看 66关注 0票数 1

我正在尝试从以下Dockerfile中的debianun稳定更新gdal-bin包:

代码语言:javascript
复制
FROM postgis/postgis:15-master

RUN echo 'deb http://deb.debian.org/debian testing main' >> /etc/apt/sources.list \
  && apt-get -y update \
  && DEBIAN_FRONTEND=noninteractive \
     apt-get -y install \
       --fix-missing \
       --no-install-recommends gdal-bin \
  && apt-get -y autoremove --purge

但是,当涉及到apt-get autoremove时,它会扰乱区域设置(当我想从这个映像中旋转一个容器时,它反过来会崩溃数据库初始化):

代码语言:javascript
复制
(...)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libaom0* libdav1d4* libgeos-3.9.0* libx265-192*
0 upgraded, 0 newly installed, 4 to remove and 134 not upgraded.
After this operation, 24.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

有什么问题吗?我该怎么解决呢?

以下是一些有用的链接:

EN

回答 1

Unix & Linux用户

发布于 2022-12-23 17:19:48

此警告(不是错误)意味着en_US.UTF-8尚未在系统上配置,并且在执行perl脚本时,perl会对此发出警告。

尝试将其添加到Dockerfile中:

代码语言:javascript
复制
RUN /sbin/locale-gen

它将为/etc/locale.gen中列出的所有地区生成所需的文件。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/729341

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档