在 Linux/debian 上进行非交互式 Steam 安装(如何自动接受 EULA?)

问题描述 投票:0回答:1

我正在尝试使用 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

我通过手动安装 steam 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)

我怎样才能让它发挥作用?

automation debian steam debconf
1个回答
0
投票

我在另一个帖子中找到了答案https://askubuntu.com/a/1017487

您需要使用的要点

debconf-set-selections

echo steam steam/question select "I AGREE" | sudo debconf-set-selections
echo steam steam/license note '' | sudo debconf-set-selections
© www.soinside.com 2019 - 2024. All rights reserved.