apt get life

Life around technology

  • Technology
    • Guides
    • Linux
    • Development
      • Laravel
    • Misc
    • Raspberry Pi
  • Writing
  • Crafts
    • Crochet
    • Model Making
    • Painting
  • Privacy Policy
You are here: Home / Technology / Fixing Ubuntu black screen with blinking cursor

Fixing Ubuntu black screen with blinking cursor

2023/02/16 by sudo 6 Comments

After doing a system update, my Ubuntu 22.04 desktop would not present a login screen. Instead it displayed a black screen with a white blinking cursor at the top. Resetting the PC didn’t fix the issue. The following outlines steps I took to solve the problem.

The first thing to do is drop into a terminal using ctrl + alt + F4 This should present you with a command line login screen. Since in my case the cursor appears before the login screen it’s probably that there’s an issue with a graphics driver or gnome display manager. Running sudo systemctl restart gdm may yield a result if you then return to the original session using ctrl + alt + F1 however if you still see the blinking cursor return to the terminal session on F4.

Knowing my issue occurred after an update, I decided the next best thing to do would be purge the nvidia drivers from the system. They’ve caused me problems in the past and splatting them has fixed the issue before. To remove all references to the nvidia drivers on the system run the following commands one after the other (note that they do prompt in their current state and the first one may take some time to complete):

sudo apt pruge ~nvidia
sudo apt autoremove
sudo apt clean

Once that’s done, I ran the following update and upgrade commands to make sure the system was as up to date as it could be:

sudo apt update
sudo apt full-upgrade

finally I rebooted the system

sudo reboot

This brought up the login prompt – all be it in the wrong resolution, which given that the display drivers have been stripped from the system is to be expected. I was able to login and then I could use the additional drivers tool to select a new set of nvida drivers. After installing those and rebooting again the system resolution was restored to default and the login was still working.

Related

Filed Under: Guides, Technology Tagged With: nvidia issues, ubuntu, ubuntu 22.04

Comments

  1. Dietmar says

    2023/08/07 at 09:35

    Thank you for this workaround. This fixed 🙌 my issue of the black screen with frozen cursor after the splash boot when I updated from Ubuntu Mate 22.10 to 23.04. I used the recovery mode to go into the terminal and used the commands you listed.

    Reply
    • Andre Burwell says

      2024/09/17 at 16:57

      Thank you so much. This fixed my issue.

      Reply
  2. Neal says

    2024/01/10 at 23:20

    Yo this fixed my issue! Thanks!

    Reply
  3. Michael says

    2024/02/07 at 22:10

    I had this problem updating to 23.04 on my Lenovo T430. I could not even get into a terminal. It was due to a problem with the proprietary Nvidia driver. I changed graphics to Intel integrated graphics in the bios and it came right up. From there i should be able to fix the problem.

    Reply
  4. Tony Fert says

    2024/11/20 at 00:26

    Thank you!! This worked for me and I was running nvidia gpu with Ubuntu version 22.04

    Reply
  5. Dhananjay Bhardwaj says

    2024/12/28 at 09:58

    Hi, just came in to say thank you.

    After multiple searches and going through Ubuntu forums and StackExchange, finally landed on this page. Also learnt a few things along the way. So, thanks again!

    Reply

Leave a ReplyCancel reply

Recent Posts

  • System Hang on Ubuntu 24.04 “e1000_print_hw_hang”
  • Disable iLO on HP Microserver Gen8
  • Ubuntu Desktop 24.04 Change Wallpaper Settings
  • Customising Ubuntu Desktop 24.04
  • Remove domains from Let’s Encrypt using Certbot

Tags

API auditing crochet data recovery debian debudding development Dingo API docker email Getting started with Laravel 5 & Dingo API hard drive health HP Microserver KVM Laravel larvel 5 lenovo Linux Minion mint netgear nas networking network shares php PHP development Postfix raspberry pi review samba security SMART smartctl smartmontools smb testing traefik ubuntu ubuntu 18.04 ubuntu 20.04 ubuntu 22.04 ubuntu server vagrant Virtual machines xdebug xubuntu

© Copyright 2015 apt get life