So, I fixed the problem.
First press Ctrl+Alt+F1 and log in with your username and password.
Then you will need to remove the old driver:
sudo apt-get purge ^nvidia-
After that you will need to add the graphics-driver PPA
sudo add-apt-repository ppa:graphics-drivers
and then
sudo apt-get update
Search for the latest Nvidia drivers for your hardware here on the Nvidia site.
In my case I used
sudo apt-get install nvidia-384
And done, just reboot and you should be ready to go.
~
字符。我刚刚测试过了,对我来说是有效的。 - Zanna/etc/X11/xorg.conf
解决了我的启动问题。继续阅读以查看是否有类似的问题。/etc/X11/xorg.conf
已经过时了,需要按照这篇帖子中的建议删除它:https://forums.developer.nvidia.com/t/ubuntu-18-lts-nvidia-440-unable-to-make-nvidia-the-primary-display-driver/107632。sudo ubuntu-drivers install
nomodeset
功能 进入 Ubuntu。/etc/X11/xorg.conf
,删除它(在现代的Ubuntu中,这个文件是与其他文件一起自动管理的)。重新启动,然后尝试。apt remove nvidia-driver-515 --autoremove -yqq && apt install nvidia-driver-510 -yqq
/etc/modprobe.d/blacklist.conf
中的第58行和第59行。尝试将这些行注释掉(在第58行和第59行的文本开头加上#
符号,例如hi you
变成#hi you
)。你需要以root身份打开该文件,例如使用命令sudo -H gedit /etc/modprobe.d/blacklist.conf
并且打开行号显示功能,观察结果如何。虽然不能确定这是否是你问题的源头,但也许能帮助找到问题所在。 - Zanna