如果卡在进入安装界面的地方,可以在u盘启动过程中,出现选择界面:try ubuntu 、install ubuntu等,此时点“e”键,会出现一个黑框,此时在倒数第二行左右,找到:
quiet splash - - - 改成 quiet splash acpi=off
1. 更换清华源 (附:删除失效PPA)
(Only removing /etc/apt/sources.list.d/nvidia-docker.list
)
1 Backup the sorces file
cd /etc/apt/
sudo cp sources.list sources.list.bak
2 Change sorce (https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/)
sudo vim sources.list
i
ctrl+shift+v
esp
wq
3 update sorces
sudo apt-get update
sudo apt-get upgrade
前处理
sudo gedit /etc/modprobe.d/blacklist.conf
add:blacklist nouveau
options nouveau modeset=0
保存退出;
sudo update-initramfs -u # 此时可以用lsmod | grep nouveau #查看没有输出即下载成功
Ctrl+Alt+F1
sudo service lightdm stop #关闭图形化界面,最后还要打开
2. 安装显卡驱动
0. System settings
uncheck the settings : Software&Update -> Ubuntu Software -> Proprietary drivers for devices(restricted)
1. check the Graphics device model
ubuntu-drivers devices ( i recommend this commend)
or
lspci |grep -i vga
lspci |grep -i nvidia
2. Install the driver
sudo ubuntu-drivers autoinstall (for recommended version)
sudo apt install nvidia-390 (for another version)
This work well, too:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-390
3. reboot
sudo reboot
3. 后处理
就进入tty(ctrl + Alt +F3),然后安装了lightdm:
sudo apt-get install lightdm,选择lightdm
退出,一切正常。
4. 卸载显卡驱动
sudo /usr/bin/nvidia-uninstall
sudo /usr/local/cuda-8.0/bin/uninstall_cuda_8.0.pl
sudo rm -rf /usr/local/cuda-8.0
sudo apt-get --purge remove nvidia*
sudo apt autoremove
To remove CUDA Toolkit:
$ sudo apt-get --purge remove "*cublas*" "cuda*"
To remove NVIDIA Drivers:
$ sudo apt-get --purge remove "*nvidia*"