首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Docker tzdata安装卡在gitlab cicd中

Docker tzdata安装卡在gitlab cicd中
EN

Stack Overflow用户
提问于 2022-08-10 03:52:28
回答 1查看 173关注 0票数 1

当试图将tzdata安装到一个ubuntu对接映像中时,这项工作将在这个阶段陷入困境。

代码语言:javascript
复制
Unpacking tzdata (2022a-0ubuntu0.18.04) ...
Setting up tzdata (2022a-0ubuntu0.18.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
  1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area: 
EN

回答 1

Stack Overflow用户

发布于 2022-08-10 03:52:28

经过大量的尝试和研究之后,我终于通过在..gitlab ci.yml中的脚本标记中添加以下内容来修复它

代码语言:javascript
复制
- echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
- DEBIAN_FRONTEND=noninteractive sudo apt-get update && sudo apt-get -y --no-install-recommends install tzdata
- sudo cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73300429

复制
相关文章

相似问题

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