在 Debian 9 Stretch 上安装 steamcmd

Nat*_*per 4 debian software-installation

我正在尝试在 Debian 9 上安装 steamcmd。我相信它是这个包:https ://packages.debian.org/stretch/steamcmd

但是,在使用“apt-get install”时出现“找不到包”错误,因为我需要添加非免费存储库。我尝试将“非免费”添加到存储库文件的每一行,我尝试添加我在互联网上找到的新的,但没有任何效果,而且我在很多地方发现了 steamcmd,我不知道一个比另一个好还是那个好是官方的,例如,我什至不确定它们是否相同:
https : //launchpad.net/debian/+source/steamcmd/0~20130205-1
https://launchpad.net/debian /+源/steamcmd

谁能告诉我帮助我在 apt-get 存储库中获取它以便我可以安装它吗?

GAD*_*D3R 9

您应该将non-free组件添加到您的sources.list

编辑您的 sources.list

sudo apt edit-sources
Run Code Online (Sandbox Code Playgroud)

如下:

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)

保存然后运行:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install steamcmd
Run Code Online (Sandbox Code Playgroud)

检查包裹:

$ apt-cache search steamcmd
steamcmd - Command-line interface for Valve's Steam
$apt-cache policy steamcmd
steamcmd:i386:
  Installé : (aucun)
  Candidat : 0~20130205-1
 Table de version :
     0~20130205-1 500
        500 http://deb.debian.org/debian stretch/non-free i386 Packages
Run Code Online (Sandbox Code Playgroud)