启动时安装 mrtg
我正在尝试在启动时安装 mrtg 。
apt-get install mrtg
是所需的命令。但安装时它会出现一个 GUI,要求我说“是/否”。如果我手动运行脚本,这很好,但在启动时它会卡住。有解决办法吗?
我得到的提示不是正常的 Y/N 问题。 (这可以使用 apt-get -y install 修复),但我得到的是一种蓝屏,并弹出一个窗口询问“是/否”
I am trying to install mrtg on boot.
apt-get install mrtg
is the required command. But when installing it comes up with a GUI asking me to say "Yes/No". This is good if I am running the script manually, but on boot it gets stuck. Is there a work around?
The prompt I get is not the normal Y/N thingy. ( This can be fixed using apt-get -y install ), but what I get is a kind of blue screen with a window popping up asking "Yes/No"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么您需要在启动时安装它?您应该只需要安装它一次...
考虑使用 dpkg 预配置来回答是/否问题。有关更多详细信息,请参阅 http://www.debian-administration.org/articles/394预置以自动安装。
Why would you need to install it at boot? You should only need to install it once...
Consider using dpkg preconfiguration, to seed the answer to the Yes/No question. See http://www.debian-administration.org/articles/394 for more details on preseeding to automate installs.