Steam 20.04 not working, while i have CUDA

I need Cuda 10.1, for PyTorch, TensorFlow, and MatLab. They don't support Cuda 11. I also need steam to play games. Is there any way I can use Cuda's parallel processing while able to play games on steam. Please help.

Steam requires libnvidia-gl-440:i386.

The following packages have unmet dependencies:
libnvidia-gl-440:i386 : Depends: libnvidia-gl-450:i386 but it is not going to be installed

But installing libnvidia-gl-450:i386, says:

The following packages will be REMOVED:
cuda-10-1 cuda-demo-suite-10-1 cuda-drivers cuda-drivers-450 cuda-runtime-10-1 libnvidia-compute-450 libnvidia-decode-450 libnvidia-encode-450 libnvidia-gl-450 libnvidia-ifr1-450 nvidia-compute-utils-450 nvidia-driver-450 nvidia-utils-450

Tried links: Steam won't launch on Ubuntu 18.04 Steam not working on Ubuntu 20.04 but didn't help with Cuda and steam both at the same time.

Edit:

It's not only with steam, it won't allow me to use any other 32-bit application. Installing libnvidia-gl-450:i386 asks to remove Cuda 10.1 which I can not.

I am looking for a way to run Cuda, as well as use all the 32-bit arch applications. As stated above Matlab, Pytorch, TensorFlow do not support Cuda 11.


I had the same issue (Ubuntu 18.04 and CUDA 11.0, but the issue seems to be the same)

NVidia has 3 install options. An installer by NVidia itself and two options for a .deb. The .debs don't include any i386 packages. The custom installer however does. So for Steam you need to install with the .run file.

I needed TensorRT, but that had some dependencies that didn't seem to be installed via de the .run file. It wouldn't surprise me if TensorFlow will have similar issues. The solution for that was also to install the .deb, but not cuda via the .deb.

  1. Since things could go wrong you better make a backup of your system-files

  2. Remove your old cuda and nvidia drivers

sudo sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*"  "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*"
sudo apt-get --purge remove "*nvidia*"
  1. Blacklist Nouveau:
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u
sudo reboot
  1. Get and install the runfile installer (CUDA 10.1 doesn't seem to be support Ubuntu > 18.10 though?)

  2. Install Steam sudo apt install steam

    Steam should be able to run now

  3. Install TensorFlow. If it complains about dependencies you might also need to install the .deb repository before TensorFlow. But make sure not to do the last step of actually installing cuda