I installed an nvidia driver (340, my display card is GTX970) but I could not log in to Ubuntu afterwards. I get a black screen after logging in. When I enter a tty, in the login part, it will continue showing:
None of the NVIDIA graphics adapters were initialized
Nvidia init module failed
As a result, I could not type any command in the tty.