7

As pointed out in how to install steam one is supposed to run:

sudo apt-get install steam

Yet I get the error output that I declined Steam License Agreement:

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)

How to accept the steam license and install steam via apt-get install steam? There was no popup information, no selection to make. It just defaults to declined.

I know I can download the deb file yet I want to use the repository.

muru
  • 197,895
  • 55
  • 485
  • 740
k0pernikus
  • 6,115

4 Answers4

3

This is supposed to work around the issue:

sudo apt purge steam steamcmd
sudo apt install steam steamcmd

I compiled these commands according to this bug tracker comment:

If you purge both steam and steamcmd and then do an apt install steam followed by an apt install steamcmd, both commands will succeed without errors.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
2

When asked with options of I Accept or I Decline, use the and arrow keys to select I Accept

Then use TAB to select OK below the options

Finally, press ENTER.

TheOdd
  • 3,012
fm2617
  • 121
1

You can also "preseed" the answers to the license agreement via debconf so that it doesn't get hung up.

https://askubuntu.com/a/1017487/318507

dragon788
  • 1,556
0

You have to scroll down and click "i agree" ,then 'continue'.