我正在尝试从以下Dockerfile中的debianun稳定更新gdal-bin包:
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时,它会扰乱区域设置(当我想从这个映像中旋转一个容器时,它反过来会崩溃数据库初始化):
(...)
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").有什么问题吗?我该怎么解决呢?
以下是一些有用的链接:
发布于 2022-12-23 17:19:48
此警告(不是错误)意味着en_US.UTF-8尚未在系统上配置,并且在执行perl脚本时,perl会对此发出警告。
尝试将其添加到Dockerfile中:
RUN /sbin/locale-gen它将为/etc/locale.gen中列出的所有地区生成所需的文件。
https://unix.stackexchange.com/questions/729341
复制相似问题