您的位置:首页 > 产品设计 > UI/UE

[置顶] ubuntu 16.04 循环登录 && An error occurred while performing the step : " Building kernel modules "

2018-01-22 20:39 861 查看
ubuntu 16.04 循环登录问题解决办法

问题描述:Ubuntu16.04系统,在某次重启之后发现循环登录,或者分辨率变小(显示的非常大)。

问题原因:NVIDIA驱动出现了问题,可能由很多原因引起。

解决方法:

(1)进入文本模式:CTRL+ALT+F1

(2)Uninstall any previous drivers :

sudo apt-get remove nvidia-*
sudo apt-get autoremove


(3)Uninstall the drivers from the .run file :

sudo nvidia-uninstall


(4)此时,重启可login normally.

(5)驱动重新安装:

Ctrl+Alt+F1
sudo service lightdm stop
sudo ./NVIDIA-Linux-x86_64-381.22.run -no-x-check -no-nouveau-check -no-opengl-files


-no-x-check安装驱动时关闭x服务;
-no-nouveau-check 安装驱动时禁用Nouveau
-no-opengl-files 安装时只装驱动文件,不安装Opengl


(6)sudo service lightdm restart(可正常登录)

(7)重启不会出现循环登录

安装NVIDIA显卡驱动是可能遇到的问题:

出现:ERROR : An error occurred w
4000
hile performing the step : ” Building kernel modules “. See /var/log/nvidia-installer.log for details.

问题原因:Linix系统的内核是在不断更新的,而安装的NVIDIA驱动是之前下载好的,没有更新,因此安装过程中无法创建内核。

解决方法:

Google上有人提出下载patch来解决,但是比较麻烦。最高效的方法是下载最新版的显卡驱动(选择对应的版本)。下载地址:http://www.nvidia.cn/Download/index.aspx?lang=cn.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐