Ubuntu - A Single Driver History
Today's beautiful day, nothing portended trouble. Therefore, when the Ubuntu Update Manager, as always unexpectedly offered to update the packages, I calmly agreed. He didn’t even suspect anything, when after that he suggested rebooting (Windows roots are affecting) ... But when I started, I saw this:
(EE) NVIDIA (0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA (0): that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA (0): that the NVIDIA device files have been created properly.
(EE) NVIDIA (0): *** Aborting ***
(EE) Screen (s) found. but none have a usuable configuration.
- I really was stunned. Reinstalling drivers with recompilation to the kernel yielded nothing. Well, at least a good ubunt suggested that I boot using the good old VESA to diagnose what happened.
And here I am, sitting at a resolution of 640 by 480, I climb through the forums in search of an answer. I immediately realized that a lot of people were faced with the problem, and, interestingly, everyone solved it differently. Xorg.conf was silent, like a partisan, and pretended that everything was as it should be. Somewhere in my subcortex, I thought that the problem could be in the updated kernel headers ( linux-headers ), and then I found confirmation at all: it turns out that ubunta loads these modules in the opposite order, that is, from old ones to new ones. Then I had to use heavy artillery ...
$ sudo /etc/init.d/gdm stop
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get remove linux-headers * nvidia * restricted * xserver-xorg g ++ gcc
$ sudo aptitude autoclean
$ sudo aptitude clean
And then he returned everything back to his “virgin clean” system:
$ sudo apt-get install build-essential
$ sudo apt-get install linux-headers-'uname -r 'g ++ gcc xserver-xorg
And only after that already
$ sudo sh ./NVIDIA-Linux-x86-180.22-pkg1.run
There were a lot of errors during the installation, but in the end everything seemed to be “successfully”.
Holding his breath, rebooted - cheers! Everything worked, effects, compis, games!
If you encounter such a problem and nothing helps you, try this “heavy artillery method”. And if you think that I did all this in vain - comment :) We will discuss.