ubuntu 18.04 GTX 1080TI 双显卡
主要是显卡驱动的问题,解决过程(仅供参考):
- 备份文件
- 重装ubuntu 18.04,再安装驱动(390.138)搞定。
$ ubuntu-drivers devices
$ sudo add-apt-repository ppa:graphics-drivers/ppa && sudo apt-get update
$ sudo apt-get install nvidia-driver-390
$ sudo reboot
$ nvidia-smi
- 1
- 2
- 3
- 4
- 5
以下是踩坑过程,可忽略
文章目录
nvidia-driver-450
- 先尝试的安装450
$ ubuntu-drivers devices
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
# 修复依赖,升级软件包,这一步很重要!!!
$ sudo apt update && sudo apt -f install && sudo apt full-upgrade
$ sudo apt-get install nvidia-driver-450
$ sudo reboot
- 1
- 2
- 3
- 4
- 5
- 6
- 7
nvidia-driver-430
2, 如果450还是不行,参考这篇帖子,安装其他驱动,比如430.
Note
注意几个问题:
1,先解决好系统完整性问题(修复软件包依赖),及时将系统软件更新到最新(即打上必要补丁)。
$ sudo apt install -f
$ sudo dpkg --configure -a
- 1
- 2
2,在安装新的驱动之前,之前的驱动要卸载干净
$ sudo apt-get autoremove nvidia-*
$ sudo apt-get purge nvidia-*
$ sudo apt remove --purge nvidia*
- 1
- 2
- 3
ERROR SOLUTION
安装430驱动,
$ sudo ./NVIDIA-Linux-x86_64-430.64.run -no-opengl-files
- 1
失败ERROR: Installation has failed。报错见(/var/log/nvidia-installer.log):
ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA >
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on >
- 1
- 2
解决:
$ sudo apt-get purge nvidia*
$ sudo apt-get autoremove
$ sudo reboot
- 1
- 2
- 3
这时候幸运的话,虽然没有安装上nvidia 430驱动,但是能进桌面了!惊不惊喜,意不意外!其实是直接给我升级到了ubuntu 20.04,跪了。。