我正在尝试自动化一个软件包(steamcmd)的脚本。
案例是脚本的用户已经事先被告知他/她同意了哪个最终用户许可协议。
好了,既然这个问题解决了,下面是一些已经适用于此的软件包:
- ubuntu restricted extras
- corefonts:https://askubuntu.com/a/25614/307184
- 和oracle java jdk:https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
没有人愿意解释他们是如何找出每个软件包独立语法的,但我希望最终能弄清楚这个问题,这样任何使用这个ask ubuntu问题的人都可以自动安装软件包N。
据我所了解,语法应该类似于:
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
虽然我迄今为止无法使其与许多变体一起正常工作:
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections