我正在尝试以非交互方式使用 apt 安装 steam,但我不知道如何在安装过程中自动接受 EULA。
使用此处的答案作为指导,我预先设置了所需的 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 并检查它们来确认这些是正确的参数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)
我怎样才能让它工作?