Solution to the problem that ubuntu18.04 cannot enter the system after booting

Solve the problem that ubuntu18.04 cannot enter the system when booting

Problem Description:

Insert picture description hereThe reason for this error is that the nvidia-smi installation package is installed. The Ubuntu18.04 kernel bug causes the gdm3 and nvidia driver conflicts, which makes gdm3 unable to start the graphical interface normally, and the result of gdm's continuous attempts to start is the screen flickering.

Solution

1、在当前界面中按Alt+F2 键进入tty2界面,进入界面后输入你的Ubuntu用户名和密码进入终端(Terminal)

2、在终端中输入以下命令

    1)sudo apt-get remove  --purge nvidia-*    #卸载nvidia相关组件

    2)sudo apt purge gdm gdm3    #卸载gdm和gdm3

    3)sudo apt install gdm3 ubuntu-desktop   #重新安装gdm3

    4)systemctl restart gdm        #重新启动gdm3服务

3、完成第  4)步后系统会自动进入桌面。

Guess you like

Origin blog.csdn.net/m0_45388819/article/details/109316218