World Of Warcraft and many others games won't launch

Hello, it’s been a while when I don’t touch Lutris, and even if I try uninstall wine and lutris using apt and I don’t know how to fix this issue.
Thanks, WiBlum.

Logs :
[…]

wiblum@WiBlumMint:~$ lutris
2024-03-07 00:43:14,368: Starting Lutris 0.5.9.1
2024-03-07 00:43:14,396: No cores found
2024-03-07 00:43:14,684: Failed to get runtimes: HTTP Error 426: Upgrade Required
2024-03-07 00:43:15,037: Failed to read content length on response from https://api.github.com/repos/lutris/dxvk/releases
2024-03-07 00:43:15,366: Failed to read content length on response from https://api.github.com/repos/lutris/dxvk-nvapi/releases
2024-03-07 00:43:15,674: Failed to read content length on response from https://api.github.com/repos/lutris/vkd3d/releases
2024-03-07 00:43:15,953: Startup complete
2024-03-07 00:43:15,956: Using NVIDIA drivers 535.161.07 for x86_64
2024-03-07 00:43:15,956: GPU: NVIDIA GeForce GTX 1080
2024-03-07 00:43:15,957: GPU: 10DE:1B80 1462:3362 (nvidia drivers)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/exceptions.py", line 57, in wrapper
    return function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 420, in configure_game
    gameplay_info = self.get_gameplay_info()
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 398, in get_gameplay_info
    gameplay_info = self.runner.play()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 825, in play
    launch_info = {"env": self.get_env(os_env=False)}
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 749, in get_env
    env = super(wine, self).get_env(False)
  File "/usr/lib/python3/dist-packages/lutris/runners/runner.py", line 186, in get_env
    runtime_env = self.get_runtime_env()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 789, in get_runtime_env
    for proton_path in get_proton_paths():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 49, in get_proton_paths
    for path in _iter_proton_locations():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 38, in _iter_proton_locations
    for path in [os.path.join(p, "common") for p in steam().get_steamapps_dirs()]:
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 243, in get_steamapps_dirs
    library_config = self.get_library_config()
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 149, in get_library_config
    return read_library_folders(self.steam_data_dir)
  File "/usr/lib/python3/dist-packages/lutris/util/steam/config.py", line 161, in read_library_folders
    library["libraryfolders"].pop("contentstatsid")
KeyError: 'contentstatsid'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_games_lutris.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/exceptions.py", line 57, in wrapper
    return function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 420, in configure_game
    gameplay_info = self.get_gameplay_info()
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 398, in get_gameplay_info
    gameplay_info = self.runner.play()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 825, in play
    launch_info = {"env": self.get_env(os_env=False)}
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 749, in get_env
    env = super(wine, self).get_env(False)
  File "/usr/lib/python3/dist-packages/lutris/runners/runner.py", line 186, in get_env
    runtime_env = self.get_runtime_env()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 789, in get_runtime_env
    for proton_path in get_proton_paths():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 49, in get_proton_paths
    for path in _iter_proton_locations():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 38, in _iter_proton_locations
    for path in [os.path.join(p, "common") for p in steam().get_steamapps_dirs()]:
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 243, in get_steamapps_dirs
    library_config = self.get_library_config()
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 149, in get_library_config
    return read_library_folders(self.steam_data_dir)
  File "/usr/lib/python3/dist-packages/lutris/util/steam/config.py", line 161, in read_library_folders
    library["libraryfolders"].pop("contentstatsid")
KeyError: 'contentstatsid'
2024-03-07 00:43:35,633: The game has run for a very short time, did it crash?

The game won’t launch and I need to manually Stop it (2024-03-07 00:43:35,633: The game has run for a very short time, did it crash?)
Also, at 4-7l it say Failed to read content length on response from … but all files are accessible and seems to be readable.

It tells you the problem in the log…

2024-03-07 00:43:14,684: Failed to get runtimes: HTTP Error 426: Upgrade Required

Go to the downloads section here and follow the links for Ubuntu to the git site, download the 0.5.16 deb file then in the download folder run:

sudo apt install ./lutris (press the tab key here to complete the file name)

Once it installs, run lutris -d to verify your version and get the latest runtime files, set your vulkan ICD loader (preferences → global Options → enable Advanced at the top) to nvidia proprietary and you are set ready to fix bnet
BNet had an update last year which is a pain to work around, easier to just reinstall bnet and use locate in game to find your existing downloaded games (eg WoW). To do this, make sure you rename the folder ~/Games/battlenet if it exists then press the + button on lutris title bar → search lutris.netbattle.net → standard install, remembering not to login during installation.
Most other games should be fine.