1

Ran basic kernel update via built-in updates this morning.

Now my NVidia 1660 is not recognized.

Tried to install nvidia drivers again using:

$ sudo ubuntu-drivers autoinstall

That fails with erros which look like:

Traceback (most recent call last):
  File "/usr/bin/ubuntu-drivers", line 513, in <module>
    greet()
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func

Now, the graphics show up like:

llvmpipe (LLVM 13.0.1, 256 bits)

Only 1 of my 2 monitors works and my display is at 1024x768.

Have no idea what to do.

Update

I just found this but it seems to be a false positive. nvidia 1660 driver

I attempted to run the NVidia provided .run file to install and saw this:

I believe the important part is :

ERROR: Unable to find the kernel source tree for the currently running kernel.

kernel source

Then i tried switching in the panel and saw this:

error kernel

This must be happening to someone else, also, right?

I have installed the kernel headers in an attempt to get the NVidia drivers to work:

sudo apt-get install linux-headers-$(uname -r)

I'm now downloading Ubuntu 22.04 iso, imaging a USB stick and going to see if I can repair the installation.

So there is no "repair" option but when I run the USB stick version I get both monitors back and at a valid (high) resolution.

This is ridiculous. All because I accepted a kernel update from the official updates. Oy!

Definitive Answer

I had to install Ubuntu 22.04.1 LTS again. I was very lucky because I had just done a complete backup of my system yesterday. Phew...Very lucky.

Beware!

I've always immediately installed kernel updates. I will now wait to install them if I am able.

Restore Previous Kernel

I also attempted to restore the previous kernel. Here is a snapshot of the choices I had:

GRUB kernel list

I tried each one, but none of them got me back to a good place. Even after trying each one I still only had 1 screen & it was stuck at 1024x768.

2022-10-26 I just started my computer up & it is back to 1 screen & 1024x768. I really dislike Ubuntu now. Would this happen on Mint?

raddevus
  • 1,998

3 Answers3

3

I have faced the exact same probelm after updating my ubuntu kernel.

My system details:
Linux ubuntu-linux 5.15.0-52-generic #58-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

The key here is to just remove the new kernel and then remove all the nvidia-drivers associated with that kernel in the system.

Command for removing the kernel.
sudo apt remove linux-*5.17*

As we have removed the kernel, restart the system. Now we'll be fixing the traceback error which we get when we are getting while running sudo ubuntu-drivers install

This problem is occuring as there's a recent change in version formatting naming in the nvidia drivers.

The script which we are going to edit is found in the /usr/lib/python3/dist-packages/UbuntuDrivers.

Inside this just change this
version = int(package_name.split('-')[-1]) to
version = int(package_name.split('-')[2]).

Now if you try to run the command:
sudo ubuntu-drivers install

It'll be fixed and be running again, which will configure the nvidia drivers for you automatically.

If after running you find that you have got nouveau drivers installed instead of nvidia you can simply open the Additional drivers application and select the nvidia driver and install it from there.

1

I had exactly the same issue, and it worked for me as well as raddevus says with installing the 470 driver, however I first had to remove all Nvidia drivers with sudo apt remove --purge '^nvidia-.*' then selecting the 470 from the additional drivers and reboot.

sno
  • 11
0

I started up my computer today & I had the same issue again. It was terrible. Only 1 screen & 1024x768 resolution.

I went into upgrade settings and found the additional drivers tab and chose the following driver:

nvidia 1660 driver

This is the one you have to choose if you're running the NVidia 1660 graphics card. This fixed the issue.
I can't believe it is resolved.

raddevus
  • 1,998