When I ran sudo apt install cuda. I got error message below.
sudo apt-get -y install cuda
Error Message:
This problem was caused by installing a wrong version of CUDA. I downloaded CUDA for Ubuntu 22.04 instead of my Ubuntu version 20.04. Please follow instruction below and install correct CUDA solved this problem.
sudo apt clean
sudo apt update
sudo apt purge nvidia-*
sudo apt autoremove