Score:1

Keyboard and mouse not working after upgrading nvidia drivers on Ubuntu 20.04

ng flag

After installing the latest nvidia drivers on ubuntu 20.04 I can no longer use mouse/keyboard. I used this recipe: How can I install Nvidia drivers on Ubuntu 18.04 with secure boot?.

I believe this must be something to do with secure boot since I was asked to set a password at the bios screen after rebooting.

Since I can still access via ssh, I have followed the instructions here.

However, the following message comes up:

WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
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-470-generic-hwe-20.04 : Depends: linux-modules-nvidia-470-5.11.0-37-generic (= 5.11.0-37.41~20.04.2) but it is not going to be installed
                                              Depends: nvidia-kernel-common-470 (<= 470.63.01-1) but 470.74-0ubuntu0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I first tried to purge nvidia packages but when I try to remove the package with have unmet dependencies directly (linux-modules-nvidia-470-generic-hwe-20.04), it fails saying it is not installed!

And whilst this is going on, it seems that nvidia-driver-390 is named as well.

So I've stopped before I do anything more damaging...

The main problem is the keyboard and mouse, not the driver atm. I cannot use the keyboard to enter bios.

Has anyone got any ideas?

I have tried the following:

MarcoZen avatar
cn flag
Remove the packages with unmet dependencies and redo ... Use nouveau if you have to get yr system stable .... Pls do post inxi -F
ng flag
As I said, I have tried to remove the `linux-modules-nvidia-470-generic-hwe-20.04` but it is apparently not installed so that does nothing even though it is listed. I don't know what ` Use nouveau if you have to get yr system stable` means. I don't know what `do post inxi` means. The main problem is the keyboard and mouse
MarcoZen avatar
cn flag
Try 'sudo apt-get update --fix-missing' . then 'sudo apt-get install -f'. This will fix broken packages. 'inxi -F' will detail your full hardare info. Alternatives are like 'lshw' or 'hwinfo'
Mubin Icyer avatar
me flag
Same problem, I didn't find a solution.
Mubin Icyer avatar
me flag
Did you try `sudo apt-get install ubuntu-desktop`
Score:1
in flag

I got the exact same error concerning the unmet dependencies and for me the following worked: Paste each code line by line into the terminal

sudo su

(enter root password)

for FILE in $(dpkg-divert --list | grep nvidia-470 | awk '{print $3}'); do dpkg-divert --remove $FILE; done
exit

After that:

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade

Then:

sudo apt-get autoclean
sudo apt-get autoremove

Then I rebooted the system, ran sudo apt-get update && sudo apt-get upgrade again and could install the correct driver in the Additional Drivers tab from Software & Updates. Hope it helps!

us flag
This solution did not work for me. `dpkg-divert --list` does not give anything including `nvidia`. I'm going to jump in the dark and guess it's Nvidia's fault when packaging the latest driver.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.