automation - 在 linux/debian 上进行非交互式 Steam 安装(如何自动接受 EULA?)
问题描述
我正在尝试以非交互方式使用 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)
我怎样才能让它工作?
解决方案
推荐阅读
- gremlin - Gremlin:针对多个连接的顶点进行分组的问题
- android - Android Intent 导致屏幕出现蓝色层
- javascript - 如何访问 iddoFeed 节点并获取所有信息?
- python - 如何删除使用 beautifulsoup 创建的列表中的 html 标签?
- go - 关于Go语言初始化(执行)顺序的问题
- jquery - 从具有相同类的跨度中获取文本
- django - 如何使用 Django-tinymce4-lite 在管理员的文本字段中添加动态链接 {% url 'url_name' %}?
- ruby-on-rails - 如何在 Ruby on Rails 中通过黄瓜测试确认弹出窗口
- php - 未正确传递数据
- python - 如何根据索引对一组行数据框进行排名?