[](https://res.cloudinary.com/practicaldev/image/fetch/s--bNb1hH5q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://rtfm.co.ua/ wp-content/uploads/2018/04/archlinux_logo.png) 有一台新电脑,想在这里玩游戏。

World of Tanks 已经可以使用了——查看World of Tanks: 在 Arch Linux 上安装和运行,现在我想安装 Steam。

几年前它在 Ubuntu 上运行没有问题,我可以在那里玩 Civilization V——所以现在让我们尝试在 Arch 设置上运行它。

安装文档在这里>>>。

有几个问题 - 但它也适用于此。

安装 Steam 客户端:

[setevoy@setevoy-arch-pc ~]$ sudo pacman -S steam

VERSION_ID:未绑定变量

运行蒸汽:

[setevoy@setevoy-arch-pc ~]$ steam
Setting up Steam content in /home/setevoy/.local/share/Steam
/home/setevoy/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
/home/setevoy/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
Running Steam on arch  64-bit
/home/setevoy/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Pins potentially out-of-date, rebuilding...
/home/setevoy/.local/share/Steam/steam.sh: line 828: /home/setevoy/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh: No such file or directory
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

好的...

“Steam/ubuntu12_32/steam-runtime/run.sh:没有这样的文件或目录” – 为什么?

第一次讨论在这里搜索了>>>。

尝试启用steam-native(虽然我已经安装了 commonsteam-runtime- 在此处查看>>>了解详细信息):

[setevoy@setevoy-arch-pc ~]$ export STEAM_RUNTIME=1

不起作用。

另一个讨论在这里找到>>>。

让我们试试——编辑/home/setevoy/.local/share/Steam/steam.sh:

...
function detect_release()
{
    if [ -f /etc/lsb-release ]; then
        (. /etc/lsb-release; echo $DISTRIB_RELEASE)
#   elif [ -f /etc/os-release ]; then
    elif $(grep 'VERSION_ID' /etc/os-release > /dev/null 2>&1); then                                                                                                                                                                   
        (. /etc/os-release; echo $VERSION_ID)
    elif [ -f /etc/debian_version ]; then
        cat /etc/debian_version
    else
        # Generic fallback
        uname -r
    fi
}
...

再次运行:

[setevoy@setevoy-arch-pc ~]$ steam
Running Steam on arch 4.20.11-arch2-1-ARCH 64-bit
STEAM_RUNTIME is enabled by the user
Pins up-to-date!
/home/setevoy/.local/share/Steam/steam.sh: line 829: /home/setevoy/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh: No such file or directory
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

好吧......现在好多了。

libGL 错误:加载驱动程序失败:swrast

下一次谷歌搜索将我带到这个>>>讨论 - 让我们试试吧:

[setevoy@setevoy-arch-pc ~]$ sudo pacman -S multilib/lib32-nvidia-utils

啊哈!

有趣的是 -VERSION_ID错误仍然存在:

但 Steam 现在可以工作了。

还不能运行文明——但会解决的。

类似职位

  • 03/04/2019Arch Linux:安装、故障排除和玩 EVE Online(0)

  • 02/24/2019Arch Linux:使用 EFI 和 Windows 双引导安装(0)

  • 05/06/2017Arch Linux:运行暗黑破坏神 2(3)

  • 03/29/2017Arch: Skype - 声音和麦克风(0)

Logo

更多推荐