Mar 1, 2025 by Zacharia Mansouri | 555 views
https://cylab.be/blog/398/how-to-fix-ubuntu-freezing-after-login-due-to-graphics-driver-issues
If your Ubuntu system freezes right after login, the problem is often related to missing or misconfigured graphics drivers. This issue can arise after installing or removing software that modifies system dependencies, including display-related packages. In this post, we’ll go over common causes and a step-by-step method to resolve the issue.
Two main symptoms should warn you:
Ctrl + Alt + F2
to switch to a terminal session).Multiple causes might be responsible for the issue:
If you can access a terminal (TTY mode, using CTRL+ALT+F2
after entering Ubuntu login screen), follow these steps to restore your system:
sudo apt update && sudo apt upgrade -y
xserver-xorg
(if missing)sudo apt install xserver-xorg
For Intel graphics:
sudo apt install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
For NVIDIA users (if applicable):
sudo apt purge nvidia-*
sudo ubuntu-drivers autoinstall
sudo dpkg-reconfigure xserver-xorg
sudo reboot
Be cautious when removing software, especially if it prompts the removal of critical system packages. For example, use apt autoremove
carefully and verify what will be removed. If using proprietary drivers, ensure they are properly configured using Ubuntu’s built-in ubuntu-drivers
utility.
By following these steps, you should be able to restore your Ubuntu graphical interface and prevent similar issues in the future. If problems persist, checking system logs (journalctl -xe
) can provide more insights.
This blog post is licensed under
CC BY-SA 4.0