我正在尝试以非交互方式安装apt的Steam,但我不知道如何在安装过程中自动接受EULA。
以答案here为指导,我预先设置了必需的debconf参数:
$ echo steam steam/license note '' | sudo debconf-set-selections
$ echo steam steam/question select "I AGREE" | sudo debconf-set-selections
$ sudo debconf-show steam
* steam/license:
* steam/question: I AGREE
通过a = first手动安装Steam并使用sudo debconf-show steam
但是当我去安装时,出现错误:“安装已终止:Steam许可协议已被拒绝。”
$ sudo apt install steam
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
steam:i386
0 upgraded,1 newly installed,0 to remove and 10 not upgraded.
Need to get 0 B/875 kB of archives.
After this operation,2,664 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 327614 files and directories currently installed.)
Preparing to unpack .../steam_1%3a1.0.0.48-1ubuntu4_i386.deb ...
dpkg: error processing archive /var/cache/apt/archives/steam_1%3a1.0.0.48-1ubuntu4_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 30
Installation terminated: Steam License Agreement was DeclINED.
Errors were encountered while processing:
/var/cache/apt/archives/steam_1%3a1.0.0.48-1ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何使它正常工作?