ubuntu 16.04 LTS login loop after updating driver nvidia-396

穿精又带淫゛_ 提交于 2019-12-08 07:02:08

问题


I have an issue on login to my computer when nvidia-396 is installed. It returns to login screen after giving error message pop up. When I remove the nvidia* and restart lightdm it works fine.

Could you please help me fixing this.

Thanks.


回答1:


I had the same issue with this driver. my system is:

Nvidia gtx 1060 (6gb)
AMD Fx 8350
ASUS motherboard

I was using the 390 driver ( 394.48 ), then upgraded to 396 and got this 'lightdm<->nvidia driver' problem.

It seems that mostly users are getting this bug too.

Unfortunately there's no solution yet, the nvidia-396 driver is still in beta according to Nvidia drivers page. Just purge the 396 driver and switch back to an older version, then everything should work fine.

If not, see this askubuntu question and this Nvidia topic (only step 2, 4 and 5 are necessary for you, but yet the whole tutorial may become usefull) , it helped me to get the drivers working again after i messed up badly some files and packages.




回答2:


This is what i did, no login screen after upgrading the Nvidia driver, it works for me.

login with console Ctrl+Alt+F1

  1. login as root and remove the read-only file system by mounting mount -o remount,rw /
  2. stop lightdm , /ete/init.d/lightdm stop. (if this is in inactive(dead) just copy backup xorg.conf.new file in your root directory and copy file to /ete/X11/xorg.conf and reboot)
  3. then remove old nvidia Drivers, apt-get remove --purge nvidia-*
  4. add the driver repository add-apt-repository ppa:graphics-drivers/ppa
  5. apt-get update
  6. apt-get install nvidia-387
  7. apt-get install ubuntu-desktop
  8. start lightdm /etc/init.d/lightdb start. or reboot.(Finished)



回答3:


I was able to fix by fully removing nvidia drivers with bumblebee.

sudo apt purge nvidia* bumblebee

And reinstalling

sudo apt install nvidia-396



回答4:


  1. Problem description Nvidia-396, which you have installed intently or unawarely auto-installed by other related package, such as swig, can not properly used in ubuntu 16.04.

  2. Solution The best way to solve the problem would be ever find the miss-operation firstly. To do this, firstly, you need to check your command history by :

    vi ~/.bash_history

and then search "sudo" keywords which indicate essential command, and find suspects. In my case, it is

sudo install swig

Finally, revert it by :

sudo apt-get purge swig

CAUTION : PLEASE NEVER DO

sudo apt-get upgrade

It will install newest package of your whole system which will include nivida-396



来源:https://stackoverflow.com/questions/50131428/ubuntu-16-04-lts-login-loop-after-updating-driver-nvidia-396

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!