我正在尝试创建一个自动下载新服务器包的脚本.但是,某些诸如"mysql-server"之类的东西无法自动安装,因为您需要先在ncurses接口中进行配置.我查看了手册页,找不到合适的东西.
我不在乎以后是否必须上传/编辑conf文件 - 我只需要安装相应的软件包.
任何人都知道该怎么做除了抓住tarball并自己构建它们?
UPDATE 发现,对于像mysql-server这样的东西,你可以这样做:
DEBIAN_FRONTEND='noninteractive' apt-get install -yq mysql-server
然而,期望看起来像sun-java6-jdk需要的东西; 尚未评估它
我正在mailutils通过dockerfile图像安装ubuntu。
我通过以下方式执行此操作:
RUN apt-get install -y mailutils
然而,在这一行我得到以下信息:
Please select the mail server configuration type that best meets your needs.
No configuration:
Should be chosen to leave the current configuration unchanged.
Internet site:
Mail is sent and received directly using SMTP.
Internet with smarthost:
Mail is received directly using SMTP or by running a utility such
as fetchmail. Outgoing mail is sent using a smarthost.
Satellite system:
All mail is sent to another machine, …Run Code Online (Sandbox Code Playgroud)