I can’t install nvidia-driver-460 in newly installed ubuntu 20.04.
I ran command sudo ubuntu-drivers autoinstall
then I got errors bellow.
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 may help to resolve the situation:
The following packages have unmet dependencies:
linux-modules-nvidia-460-generic-hwe-20.04 : Depends: linux-modules-nvidia-460-5.8.0-55-generic (= 5.8.0-55.62~20.04.1) but it is not going to be installed
Depends: nvidia-kernel-common-460 (<= 460.80-1) but 460.84-0ubuntu0~0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Got the exactly the same issue, with the same unmet dependencies.
Initially was running 18.04 but after updating the nvidia driver my PC would freeze on startup.
I have tried so many things since I can’ even remember all of it. I event went as far as completely reinstalling Ubuntu. Tried 18.04, 20.04 and 21.04, happens on all of them. Currently sitting on a fresh 20.04 and tried installing the driver using ubuntu-drivers instead of apt and got the same error as @mushin.hudoushin
I don’t use those commands. I use nvidia-driver command, but you should be able to do it GUI way. You need to enable allow 3rd party software. Than go to Additional Drivers and you should be able to enable the Nvidia Driver for the system to use. If it doesn’t work right away it will usually work with in a week. Keep trying a reboot or two usually kicks it in.
linux-modules-nvidia-460-generic-hwe-20.04 will pull the signed kernel modules for your installed kernel in, so that they work without problems with secure-boot on. This is currently for the driver version 460.80 since those are in the Ubuntu repositories.
You do however also have a PPA with the nvidia driver 460.84 enabled, and that PPA does not have the signed precompiled modules.
Just disable the PPA to install 460.80 and wait for it to get updated to 460.84 in the Ubuntu repositories, or do not use the signed precompiled modules, and install nvidia-dkms-460 instead to compile the modules.
I had almost the same problem - at the beginning of ubuntu-driver autoinstall i was getting that error:
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
My solution was to completely remove all nvidia packages with Synaptic Package Manager.
When i selected all to remove them, SPM automatically reselected the current 460.84 driver to install and now it is working like new.
I also had problems the day before. For Ubuntu, you should install the nvidia drivers thru apt-get:
sudo apt-get install nvidia-drivers-470
However, there might be a problem with manually installed drivers with the shell script (NVIDIA-Linux-x86_64-470.74.run). To remove the manually installed drivers, use:
NVIDIA-Linux-x86_64-470.74.run --uninstall
And finally, UEFI Secure Boot requires additional configuration to work with third-party drivers. While installing the nvidia drivers, you will be asked for a password of your choice. On next reboot, you will be shown a text menu prior to the X stuff. Select the 2nd line (Enroll MOK) and re-enter that password. The system will then boot again. Obviously you have to be at the Console.
This procedure seems to be necessary only once, maybe because the Registration Keys of the driver don’t change