I run the following command
sudo apt install nvidia-driver-450
But it throws out an error with the following
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information msudo apt install nvidia-driver-450
sudo rebootay help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-450 : Depends: libnvidia-gl-450 (= 450.80.02-0ubuntu1) but 450.80.02-0ubuntu0.20.04.2 is to be installed
Depends: nvidia-dkms-450 (= 450.80.02-0ubuntu1)
Recommends: nvidia-settings but it is not going to be installed
Recommends: nvidia-prime (>= 0.8) but it is not installable
Recommends: libnvidia-compute-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-decode-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-encode-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-ifr1-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-fbc1-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-gl-450:i386 (= 450.80.02-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
I also tried installing nvidia-prime but it said there's no installation candidate. I tried everything I found on askubuntu here and still couldn't solve it. Anything I missed out?