21st February 2017, 16:38
The kernel removal is not the problem. It does not matter if you remove all the packages at once or one at a time. It should not leave you with that result.
The kernel itself just is in the big image package. The big headers package is only carrying header code for other modules or apps to compile against. So it does not contain anything necessary for running the kernel itself.
As for the error itself. Second splash means that you'll see a log screen (or when autologin is enabled your mouse cursor) and it hangs after logging in?
Maybe it is loading incompatible OpenGL compositor settings as you switched to using the Intel driver.
When it hangs after the splash can you press shift+alt+f12 to deactivate the effects (compositor) temporary?
Does your desktop show up then?
If it does not or I am mistaken about the second splash try changing back your command
and see if it makes it work again.
That's the only thing that comes to my mind reading your procedure that could break it.
The kernel itself just is in the big image package. The big headers package is only carrying header code for other modules or apps to compile against. So it does not contain anything necessary for running the kernel itself.
As for the error itself. Second splash means that you'll see a log screen (or when autologin is enabled your mouse cursor) and it hangs after logging in?
Maybe it is loading incompatible OpenGL compositor settings as you switched to using the Intel driver.
When it hangs after the splash can you press shift+alt+f12 to deactivate the effects (compositor) temporary?
Does your desktop show up then?
If it does not or I am mistaken about the second splash try changing back your command
Code:
sudo prime-select nvidia
That's the only thing that comes to my mind reading your procedure that could break it.