我最近在笔记本电脑上安装了 Ubuntu 18.04。然后我昨天通过网站安装了 Steam,它运行正常。今天我尝试启动 Steam 时,它因自动更新开始而崩溃。我sudo apt-get purge steam
卸载时使用了它,并尝试使用从网站下载的版本和 重新安装sudo apt-get install steam
。但问题仍然存在。
这是我尝试从终端运行 Steam 时得到的输出:
~$ steam
cp: cannot stat '/usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz': No such file or directory
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1522709999)
Installing breakpad exception handler for appid(steam)/version(1522709999)
Installing breakpad exception handler for appid(steam)/version(1522709999)
Gtk-Message: 16:31:00.768: Failed to load module "atk-bridge"
...
Gtk-Message: 16:31:00.786: Failed to load module "canberra-gtk-module"
dbus[8768]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
crash_20180502163059_1.dmp[8775]: Uploading dump (out-of-process)
/tmp/dumps/crash_20180502163059_1.dmp
/home/magnus/.local/share/Steam/steam.sh: line 927: 8768 Aborted (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
crash_20180502163059_1.dmp[8775]: Finished uploading minidump (out-of-process): success = yes
crash_20180502163059_1.dmp[8775]: response: CrashID=bp-a9833971-19cb-45ce-a771-2cb7f2180502
crash_20180502163059_1.dmp[8775]: file ''/tmp/dumps/crash_20180502163059_1.dmp'', upload yes: ''CrashID=bp-a9833971-19cb-45ce-a771-2cb7f2180502''
答案1
由于文件
/usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz
丢失,看起来好像steam-launcher
未安装。显然,该steam
包已被替换为steam-launcher
。尝试以下操作来卸载旧包并安装新包:
sudo aptitude purge steam steam:i386 sudo aptitude install steam-launcher libatk-bridge2.0-0
如果
steam-launcher
不可用,请尝试安装steam-installer
。sudo aptitude install steam-installer libatk-bridge2.0-0
该软件包
steam-launcher
不会安装 Steam 本身。相反,它是一个程序,会下载并安装 Steam 到用户主目录中$HOME/.local/share/Steam
。如果 Steam 已安装,则会运行它。Steam 在更新期间中断并且现在崩溃表明安装目录存在问题。您可以通过移动安装文件夹来强制重新安装:
mv "$HOME/.local/share/Steam" "$HOME/.local/share/Steam.bak" mkdir "$HOME/.local/share/Steam" cp -rl "$HOME/.local/share/Steam.bak/package" "$HOME/.local/share/Steam/package"
然后在运行时选择“重新安装”选项
steam
。可能需要下载几百兆的数据。成功重新安装并运行 Steam 后,您可以查找旧游戏并将
$HOME/.local/share/Steam.bak
其移动到新安装$HOME/.local/share/Steam
。如果您没有要移动的内容,$HOME/.local/share/Steam.bak
则可以安全删除。最后一招:如果以上方法都无法解决问题,并且您不介意从头开始重新安装 Steam,您可以尝试从主目录中删除所有与 Steam 相关的文件:
\rm -rf $HOME/.steam* \rm -rf $HOME/.local/share/Steam*
答案2
在你的终端中运行这个
〜/ .local/共享/ Steam / ubuntu12_32 / steam
感谢 Steam 社区论坛上的 MaiconKeller