steam-in-arch
想要在 archlinux 上使用 steam,由于 steam 需要 32 位库支持,首先应当启用 multilib
。
打开文件 /etc/pacman.conf
:
1 | sudo nvim /etc/pacman.conf |
在文件中添加以下内容:
1 | [multilib] |
接着更新软件包数据库:
1 | sudo pacman -Syu |
安装 steam
以及其依赖:
1 | sudo pacman -S steam lib32-nvidia-utils lib32-alsa-plugins lib32-mesa |
配置 xwayland 兼容性:
由于 hyprland
默认使用 wayland, 而 steam 依赖 xwayland,就需要配置一下 hyprland 的 xwayland
1 | nvim ~/.config/hypr/hyprland.conf |
添加以下内容:
1 | xwayland { |
接下来在命令行中启动 steam,方便调试(第一次启动时 steam 会在网上下载更新)
有可能在更新时遇到如下问题:
1
2
3
4
5
6
7 >[2025-05-07 18:15:36] Exhausted list of download hosts
>[2025-05-07 18:15:36] Download Complete.
>[2025-05-07 18:15:36] Saving metrics to disk (/home/HaoIne/.local/share/Steam/package/steam_client_metrics.bin)
>[2025-05-07 18:15:36] Error: Failed to determine download location for universe 1
>UpdateUI: skip show logodlmopen steamui.so failed: steamui.so: cannot open shared object file: No such file or directory
>Failed to load steamui.so - dlerror(): (null)
>[2025-05-07 18:15:56] Shutdown这时候就需要使用
steam
自带的修复工具:
1 $ steam --reset接着再次启动应该就不会有问题了
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 HaoIne!