在安装Steam时如何接受Steam许可协议?

如何安装Steam中所指出的,应该运行:

sudo apt-get install steam

我收到了一个错误输出,显示我拒绝了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 0 not upgraded.
Need to get 0 B/874 kB of archives.
After this operation, 2.662 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 718351 files and directories currently installed.)
Preparing to unpack .../steam_1%3a1.0.0.48-1ubuntu3_i386.deb ...
dpkg: error processing archive /var/cache/apt/archives/steam_1%3a1.0.0.48-1ubuntu3_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-1ubuntu3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

如何接受Steam许可协议并通过"apt-get install steam"安装Steam?没有弹出窗口信息,也没有选择项可供操作。它默认为拒绝状态。
我知道可以下载deb文件,但我想使用软件源进行安装。

1这似乎是一个已知的错误:https://bugs.launchpad.net/ubuntu/+source/steam/+bug/1530491 - You'reAGitForNotUsingGit
1如果你运行sudo apt-get purge steam,然后是sudo apt-get purge steamcmd,接着是sudo apt-get update,再然后是sudo apt-get install steam,最后是sudo apt-get install steamcmd,那么它会起作用吗? - You'reAGitForNotUsingGit
4个回答

这个应该解决问题的方法是:
sudo apt purge steam steamcmd
sudo apt install steam steamcmd

我根据这个错误跟踪评论编写了以下命令:
如果你清除了steam和steamcmd,然后执行apt install steam,再执行apt install steamcmd,两个命令都会成功执行而没有错误。

当被要求选择“我接受”或“我拒绝”时,使用箭头键(→和←)来选择“我接受”。
然后使用TAB键来选择选项下方的“确定”。
最后,按下回车键。

弹出窗口不会显示出来,因为这个错误。 - k0pernikus
我和你遇到了完全相同的问题,但是其他人发布的清除命令解决了我的问题。 - bonesnatch
我能够按照这个答案的建议点击“确定”。 - Char


你需要向下滚动并点击“我同意”,然后点击“继续”。

1这个错误的弹出窗口不会显示出来。 - k0pernikus