I was the one that helped with that... Since then, some other things recently came into being challenges after that...
See where your kernel upgraded to the 6.5.0 series? And you are on Ubuntu 22.04.3 right?
Ubuntu 22.04.3 is on gcc and g++ version 11.4. The 6.5.0 kernel series was compiled with gcc-12. So when it goes to build the NVidia kernel modules, the modules fail to build, because they are different compiler versions.
First uninstall your nvidia driver so that dpkg starts working again...
Code:
sudo apt remove --purge nvidia-driver-530
Then follow the directions I wrote up here (top half of post) to install gcc-12 and g++-12:
https://ubuntuforums.org/showthread....4#post14175164
Re-install your driver
Code:
sudo apt install --yes nvidia-driver-530
sudo reboot
HINT: What about nvidia-driver-535? It is considered as stable now...
Thinking out loud:
I came up with that work-around, but I guess I "should" really file a bug report at Launchpad recommending that they push through gcc-12 through updates as the new default compiler for 22.04.3. That would solve these issues hitting graphics drivers, VirtualBox, WiFi drivers, and others hitting this module build issue with the 6.5.0 series kernels we are using now... I need to get around to that.
Bookmarks