I tried to install nvidia-driver-430 while I was on nvidia-driver-418, and my computer froze (I'm assuming from a kernel panic due to future information).
Any help is welcome, be it about fixing the kernel panic or about how to get my computer working at all again. Also, I can get into my system, but it doesn't use a graphics driver so the quality is extremely low.
I went to recovery mode root and tried fixing broken packages:
$ dpkg --configure -a # I'm already root due to being in recovery mode
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-4.19.59-041959-generic
Setting up nvidia-dkms-430 (430.26-0ubuntu0~gpu18.04.1) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-4.15.0-54-generic
I'm sorry about the screenshot, but I tried redirecting and it doesn't seem to redirect kernel panics: https://i.sstatic.net/jm5zI.jpg
The following is the output of some commands I feel might help you understand my issue (Sorry, looks like markdown doesn't support collapsible sections, so I'm using pastebin):
- $ sudo apt list --installed | grep vidia
- $ cat /var/log/apt/history.log (I can't do the link because of my reputation, but the pastebin is uJ7r71eY)
- $ cat /var/log/dpkg.log
- EDIT: Boot and sysctl logs removed, I fixed the issue they had by deleting a stray character from sysctl conf)
- $ lshw
- $ lspci
- $ dmesg
Solutions I've considered but don't work:
- I can't
apt remove nvidia-driver-430since I get a message `E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.' - I've tried using multiple kernel versions (4.15.0-53-generic, 4.18.0-24-generic, 4.19.59-041959-generic). The first two both have the same issue when trying to fix packages, as mentioned above. They also both have the same error in the boot log (see boot log above). The third one, which is the kernel version I usually use, will not boot; it freezes at "Loading initial ramdisk", and stays there for as long as I've tested (up to ten minutes).
- Switching back to Nouveau and then fixing packages. I can't switch back via terminal because I'd need apt, and when I tried via the GUI my computer froze during the progress bar of installing Nouveau drivers. After the freeze, nothing changes when I try to fix broken packages.