我正在使用最新的 Ubuntu GNOME。当我下载 steam-installer 软件时,它可以运行,之后什么都没有发生,没有更新,也无法启动。
这是我尝试在终端中启动 steam 时收到的错误消息:
$ steam
Running Steam on ubuntu
16.04 64-bit STEAM_RUNTIME is enabled automatically
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
Installing breakpad exception handler for appid(steam)/version(1461972496)
libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast
答案1
这最终起作用了(在终端类型中):
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpcre.so.3{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpcre.so.3.12.1{,.disable}
答案2
您无需下载 Steam 安装程序,因为它已存在于官方 Ubuntu 存储库中。请执行以下操作:
1. 删除 Steam,修复损坏的依赖项,更新已安装的软件包
sudo su
apt remove --purge steam
apt autoremove
apt -f install
apt update
apt upgrade
2.1 选项 1:安装 Aptitude:
apt install aptitude
aptitude install steam
2.2 选项 2:安装 Synaptic:
apt install synaptic
synaptic
出现 Synaptic 弹出框。在搜索面板上输入 steam。列表中会出现一些应用程序。其中一个是 steam。单击其左侧的框。它将要求确认安装依赖项。单击是。单击应用。完成后关闭窗口。
3. 如果全部失败,删除libstdc++
cd ~/.local/share/Steam/ubuntu12_32/steam-runtime/
rm \
amd64/installed/libstdc++6-4.6-pic_4.6.3-1ubuntu5+srt4_amd64 \
amd64/installed/libstdc++6-4.6-pic_4.6.3-1ubuntu5+srt4_amd64.md5 \
amd64/installed/libstdc++6_4.8.1-2ubuntu1~12.04+steamrt2+srt1_amd64 \
amd64/installed/libstdc++6_4.8.1-2ubuntu1~12.04+steamrt2+srt1_amd64.md5 \
amd64/usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++_pic.a \
amd64/usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++_pic.map \
amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18 \
amd64/usr/share/doc/libstdc++6 \
amd64/usr/share/doc/libstdc++6-4.6-pic \
i386/installed/libstdc++6-4.6-pic_4.6.3-1ubuntu5+srt4_i386 \
i386/installed/libstdc++6-4.6-pic_4.6.3-1ubuntu5+srt4_i386.md5 \
i386/installed/libstdc++6_4.8.1-2ubuntu1~12.04+steamrt2+srt1_i386 \
i386/installed/libstdc++6_4.8.1-2ubuntu1~12.04+steamrt2+srt1_i386.md5 \
i386/usr/lib/gcc/i686-linux-gnu/4.6/libstdc++_pic.a \
i386/usr/lib/gcc/i686-linux-gnu/4.6/libstdc++_pic.map \
i386/usr/lib/i386-linux-gnu/libstdc++.so.6 \
i386/usr/lib/i386-linux-gnu/libstdc++.so.6.0.18 \
i386/usr/share/doc/libstdc++6 \
i386/usr/share/doc/libstdc++6-4.6-pic \
~/.local/share/Steam/ubuntu12_32/steam-runtime.old/i386/usr/share/doc/libstdc++6
4. 删除libgcc_s
cd ~/.local/share/Steam/ubuntu12_32/steam-runtime/
rm \
amd64/lib/x86_64-linux-gnu/libgcc_s.so.1 \
i386/lib/i386-linux-gnu/libgcc_s.so.1
5. 另外
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1
6. 然后重复上述任一方法
答案3
cd $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
它对我有用
答案4
您必须使用以下命令删除 steam 自己的库:
find ~/.steam/root/ -name "libgpg-error.so*" -print -delete
在这里找到解决方案:https://bugs.archlinux.org/task/48994