Steam在Ubuntu 20.04上无法运行。

Steam的客户端仍然是32位的。Ubuntu 20.04现在已经移除了对32位架构的支持。无法安装lib32bz2-1.0。Steam没有运行。
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
/home/black/.steam/ubuntu12_32/steam -nominidumps -nobreakpad
[2020-04-25 01:22:21] Startup - updater built Apr  4 2020 00:37:13
SteamUpdateUI: An X Error occurred
X Error of failed request:  GLXBadContext
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  152 (GLX)
Minor opcode of failed request:  3 (X_GLXCreateContext)
Value in failed request:  0x0
Serial number of failed request:  51
xerror_handler: X failed, continuing
Major opcode of failed request:  152 (GLX)
Minor opcode of failed request:  6 (X_GLXIsDirect)
Serial number of failed request:  52
xerror_handler: X failed, continuing
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2020-04-25 01:22:21] Checking for update on startup
[2020-04-25 01:22:21] Checking for available updates...
[2020-04-25 01:22:21] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
[2020-04-25 01:22:22] Download skipped: /client/steam_client_ubuntu12 version 1586022601, installed version 1586022601
[2020-04-25 01:22:22] Nothing to do
[2020-04-25 01:22:22] Verifying installation...
[2020-04-25 01:22:22] Performing checksum verification of executable files
[2020-04-25 01:22:22] Verification complete

尝试过
sudo dpkg --add-architecture i386
sudo apt install lib32z1 lib32ncurses6

sudo apt-get install lib32bz2-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'

手动找到了这个包:https://ubuntu.pkgs.org/14.04/ubuntu-main-amd64/lib32bz2-dev_1.0.6-5_amd64.deb.html,显示有未满足的依赖关系。
我有 Nvidia 2060,它工作得很好,甚至支持 CUDA。当我使用 18.04 版本时,我还在玩 CS:GO。现在 Steam/CS:GO 就无法打开了。

你在添加i386架构后运行了sudo apt update吗? - nobody
是的,我做了。@nobody. - Black Chase
今晚从19.10升级到20.04版本。发现Steam不见了。于是从官方网站下载了"steam_latest.deb"文件。执行后,Steam和Dota又重新出现了。两者都正常运行。 - EnverOsmanov
4个回答

这对我来说有效。
sudo apt-get install libnvidia-gl-440:i386

这个方法有效是因为问题出在图形和Ubuntu 20.04的组合上。 这个库有Nvidia显卡的32位文件。在从18.04升级到20.04时,这些32位文件被删除了。
虽然他们问过这个问题,但大多数人只是点击了“确定继续”。我也是这样做的。
编辑:截至2020年7月26日,Nvidia的450驱动可用,但它的i386版本存在问题。所以在那之前请使用440版本。
编辑:现在Nvidia的450 i386驱动也可以正常工作了。

我目前使用的是455.38版本,但在尝试启动CS:GO时仍然遇到问题。 - VnC
问题出在运行CSGO还是整个Steam上?我听说450版本不再引起问题了。如果还有问题,试试使用旧版本的Nvidia库,比如440版本。别忘了安装32位库。 - Black Chase

就像我的情况一样,很有可能你缺少了32位的库。
安装以下库对我来说解决了问题:
$ sudo dpkg --add-architecture i386
$ sudo apt update
$ sudo apt install libxtst6:i386 libxrandr2:i386 libgtk2.0-0:i386 libsm6:i386 libpulse0:i386 ffmpeg:i386

1这个方法对我有效。我添加了i386架构,并重新安装了具有32位兼容性的驱动程序,但在添加这些库之前,Steam无法启动。 - Ubica
1也为我修复了,尽管我没有安装ffmpeg:i386,因为那会导致删除ffmpeg和一堆其他东西。 - Álex
很不幸,这似乎没有解决我的安装问题。 - Erik


我在这里发布了这个非常简单的解决方案,因为我现在已经遇到了几次类似的情况:https://askubuntu.com/a/1301424/787088
  • sudo apt remove steam
  • 重新启动
  • sudo apt install steam(重新添加任何steam自定义设置(例如,我有一个非根目录的steam库))。