V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
phithon
V2EX  ›  Docker

Dockerfile 执行 apt-get install 遇到会弹出窗口的程序……

  •  
  •   phithon ·
    phith0n · 2017-06-11 02:55:16 +08:00 · 5263 次点击
    这是一个创建于 2714 天前的主题,其中的信息可能已经有所发展或是发生改变。

    docker 容器( ubuntu16.04 )里执行如下代码

    apt-get update && apt-get install -y krb5-user
    

    在安装krb5-*的时候,会弹出要求我填写Default Kerberos version 5 realm的提示:

    ...
    debconf: unable to initialize frontend: Dialog
    debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
    debconf: falling back to frontend: Readline
    debconf: unable to initialize frontend: Readline
    debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
    debconf: falling back to frontend: Teletype
    Configuring Kerberos Authentication
    -----------------------------------
    
    When users attempt to use Kerberos and specify a principal or user name without specifying what administrative Kerberos realm that principal belongs to, the system appends the
    default realm.  The default realm may also be used as the realm of a Kerberos service running on the local machine.  Often, the default realm is the uppercase version of the
    local DNS domain.
    
    Default Kerberos version 5 realm:
    

    然后这里就中断了…… Dockerfile 没法自动编译……

    这种情况怎么办? apt-get 加了-y,也不行……

    2 条回复    2017-06-11 03:12:46 +08:00
    zeyexe
        1
    zeyexe  
       2017-06-11 03:08:44 +08:00 via iPhone   ❤️ 3
    你需要先去了解下 debconf 静默安装
    phithon
        2
    phithon  
    OP
       2017-06-11 03:12:46 +08:00
    @zeyexe 要的就是你这个关键字……感谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5617 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:36 · PVG 14:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.