折腾了半天以为是ubuntu的系统和硬件不匹配, 最后发现的确有点关系, 就是显卡驱动的问题
解决办法:
1. 进入到safty模式下, 然后配好网络环境
2. 移除所有的驱动相关的包,
sudo apt-get purge '^nvidia-.*'
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
3. 用下面指令查看合适的驱动安装包
ubuntu-drivers devices
他会列出合适的显卡驱动, 选择推荐的的驱动进行安装
vendor : NVIDIA Corporation
driver : nvidia-driver-535-server - distro non-free
driver : nvidia-driver-535-server-open - distro non-free
driver : nvidia-driver-535 - distro non-free recommended
driver : nvidia-driver-545 - distro non-free
driver : nvidia-driver-545-open - distro non-free
driver : nvidia-driver-535-open - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
sudo apt install nvidia-driver-535
4. 安装后用nvidia-smi 查看, 可能会出现如下错误,别管直接重启, 进入正常ubuntu:
NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
重启之后,系统正常启动, ubuntu UI正常出现