1

I'm unable to install Nvidia driver, and got stuck in a login loop after trying to install the Nvidia driver from ppa:graphics-drivers/ppa. I tried installing version 396, but I am not able to understand the error. I tried the following commands.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-396

I got the following error:

enter image description here

I'm also unable to login into my account and coming back to the login screen after putting the login credentials.

karel
  • 114,770
prb
  • 111
  • Did you try to remove the nvidia-driver-396 or nvidia-396 first before installing the nvidia-driver-415? I think you have to remove the old driver first since the system will try to upgrade instead of remove and install the new driver. – Terrance Feb 26 '19 at 03:25
  • yes. Sorry by mistake I wrote 415 . But I deleted the previous version before installing the new. – prb Feb 26 '19 at 03:34
  • nvidia-396 is the incorrect name for the install from the PPA. It is nvidia-driver-396 for the install. You will probably now need to do the install from launching a TTY to run the install by pressing Ctrl+Alt+F2 to Ctr+Alt+F6. After the installation type in reboot so that the new driver can take effect. – Terrance Feb 26 '19 at 03:49
  • Thanks @Terrance . I just followed the post on askubuntu – prb Feb 26 '19 at 03:57
  • @Terrance i tried with sudo apt install nvidia-driver-396 . But it is unable to locate the package nvidia-driver-396 – prb Feb 26 '19 at 04:03
  • OK, your question does not state what version of Ubuntu you are using and what is the Flavor of it. Please edit your question and put in what version you are using and more details. Also fix any discrepancies you have there. Ubuntu 16.04 installs the NVIDIA drivers from the PPA as nvidia-396 or whatever version you are trying to install. Ubuntu 18.04 does the driver installation as nvidia-driver-396. – Terrance Feb 26 '19 at 04:10
  • @Terrance I am still stuck. i have tried almost everything on this platform but nothing worked – prb Feb 26 '19 at 10:26
  • Please edit your question and add more details like what your system type / model is, what is your video card, etc. Any more details of errors and things that you have tried will really help us help you instead of us trying to guess at things you have tried or what will work. Thank you! – Terrance Feb 26 '19 at 14:32
  • Oh, also, you might need to disable Secure Boot in the BIOS for these drivers to work properly. – Terrance Feb 26 '19 at 14:34

1 Answers1

0

you can press Ctr+F1 (or Ctr+Fn+F1) and login in your account and enter this command

sudo ubuntu-drivers autoinstall
slava
  • 3,887