一、循环登录问题
二、任务栏菜单栏不见了
https://blog.csdn.net/terence1212/article/details/51340595
第二步:安装compizconfig-settings-manager。
命令行输入:sudo apt-get install compizconfig-settings-manager
第三步:运行compizconfig-settings-manager软件
DISPLAY=:0 ccsm
第四步:如果第一步是进入了命令行模式,这里需要返回到图形界面,按下Ctrl+Alt+F7或者F8。
第六步:重启计算机,就能看到久违的菜单栏和任务栏了!如果第一步是进入命令行模式,这里还需要返回到命令行模式。
sudo reboot
三、使用系统自带的数据驱动后循环登录
卸载安装的数据驱动
卸载驱动并重启电脑:
sudo apt-get remove --purge nvidia-* sudo apt-get autoremove #特别重要 sudo apt-get install -f #特别重要 sudo reboot
sudo apt-get --purge remove nvidia-*
四、使用.run文件安装驱动
4.1禁用nouveau驱动和相关的驱动包
用编辑器打开blacklist.conf配置文件
sudo gedit /etc/modprobe.d/blacklist.conf
- 1
在文件的最后一行加入下面的命令,屏蔽有影响的驱动包(这里有的博客添加了blacklist amd76x_edac,但是经测试后不加也是可以安装成功的)
blacklist rivafb blacklist vga16fb blacklist nouveau blacklist nvidiafb blacklist rivatv
- 1
- 2
- 3
- 4
- 5
4.2:卸载所有安装的nvidia驱动
如果之前没安装过nvidia驱动,也可以不执行此步骤,但是推荐执行,无害
sudo apt-get --purge remove nvidia-*
- 1
卸载完以后,重启。
4.3:安装显卡驱动
在http://www.geforce.cn/drivers
安装需要的依赖
sudo apt update sudo apt install dkms build-essential linux-headers-generic
- 1
- 2
安装驱动包
最后,使用指令sudo service lightdm stop
关闭图形界面,再利用cd指令进入下载好的驱动目录
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
判断显卡驱动是否安装成功
nvidia-smi #输入指令查看显卡信息
- 1
卸载已存在驱动版本
uname -r,比如我的结果是4.4.0-45-generic
sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-4.4.0-45-generic
屏蔽开源驱动nouveau
sudo vim /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
sudo update-initramfs -u
五、第四种方法失败
.问题详细描述:
Installing the NVIDIA display driver... The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly. If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.
3.解决办法:
(1)install dkms:
六、执行sudo apt-get update 出错
E: Sub-process returned an error code
七。安装结束后的结果
执行完后再次执行sudo apt-get update命令就正常了。
错误2.
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by this NVIDIA Linux graphics driver release.