docker制作镜像 apt-get 安装文件报错debconf: unable to initialize frontend: Dialog
2017-10-16 16:15
841 查看
错误信息
原因是在使用apt-get安装依赖时,可能会有对话框,制作镜像时如果不选择会导致失败,解决办法也很简单
在docker file中增加一句:
debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:
原因是在使用apt-get安装依赖时,可能会有对话框,制作镜像时如果不选择会导致失败,解决办法也很简单
在docker file中增加一句:
ENV DEBIAN_FRONTEND noninteractive
相关文章推荐
- python 3安装错误 Fatal Python error: Py_Initialize: Unable to get the locale encoding
- ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package的解决办法
- 【转】ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package
- 使用UNetbootin工具制作的CentOS 6.9镜像U盘在启动安装过程中出现:unable to read package metadata.this may be due to a missing repodata directory
- Openwrt下安装Python3.5运行出现异常:Fatal Python error: Py_Initialize: Unable to get the locale encoding
- apt-get安装软件Unable to locate package错误解决办法
- apt-get安装软件Unable to locate package错误解决办法
- apt-get安装软件Unable to locate package错误解决办法
- docker学习笔记3【 E: Unable to locate package docker镜像无法安装软件】
- Ubuntu中用sudo apt-get install安装某软件,结果出错:E: Unable to locate
- Struts2上传文件报错Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadExcept
- ubuntu 安装报错unable to find medium
- Struts2上传文件报错Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadExcept
- 报错:Unable to get the default Bean Validation factory
- 简单两步自己动手制作联想windows7 sp1 64位旗舰版安装镜像文件windows7旗舰版主
- android eclipse 导入工程报错unable to get system library for the project
- Dialog(四)——报错Unable to add window -- token null is not for an application
- 用apt-get install安装的文件被放到哪里
- Adobe Dreamweaver CS5安装错误之:ERROR: Unable to get root from inChildPath .