Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Log in Problems after Running Updates in the Ubuntu Operating System

Summary: The following article provides information about how to resolve a start-up or log-in issue in Ubuntu when restarting after running driver and software updates.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

Are start up issues at login seen after running operating system, driver, and software updates in Ubuntu?

 

Are you seeing start-up issues? (For example: Black Screens, the computer fails to boot, it loops at the log-in screen after performing computer, driver, or software updates.)

The following accordion drawers take you through using recovery mode in Ubuntu. Using the terminal commands that are required to remove those most recent updates. (The instructions are split to address the type of symptoms that you see.) 

Optionally, we give terminal instructions on how to reinstall the updates for testing the startup. (Updates are known to cause issues when they go wrong during installation, which may not be seen on reinstallation.)

Uninstall the Update

 

Bring up the recovery prompt

  1. Restart your computer and press the Esc key once the Dell Splash screen disappears. (Press once on the Esc key. However, this may take several attempts and should bring up the Grand Unified Bootloader(GRUB) menu.)

  2. Select the option ending with…(Recovery Mode).

  3. Select the option Drop to root shell prompt to open a terminal prompt.

Is there information in the logs?

  1. Check the usual log files. Check if they indicate where the computer is unresponsive and if so while it is carrying out what operation? Try the following commands followed by pressing the Enter Key: (If these do not work, try changing cat for less.)

    cat ~/.xsession-errors

    cat /var/log/Xorg.0.log

    cat /var/crash

Troubleshoot further

The information in the logs directs your troubleshooting to one of the following steps. If not, start at the first step and work your way through them to a resolution:

  1. Type the following command to give the following commands administrator rights: (You must be part of the admin group for this. Enter your user password when it asks.)

    sudo su

  2. Try manually starting lightdm by typing and running the following command:

    lightdm

  3. Do you get redirected back to the log in screen after entering the password into a display manager like lightdm or GDM? Run the following command to remove the Xauthority file from your home folder and try it again:

    rm ~/.Xauthority

  4. If that did not work, you can use the following command to purge the NVIDIA driver from the computer:

    apt-get purge nvidia*

  5. Can you now log in? If you can, but the graphics are basic you can update the video driver. If you cannot, then you may be looking at reinstalling Ubuntu once you have saved your data off the computer.

Updating the NVIDIA driver

  1. Run the following command again: (Enter your user password when it asks.)

    sudo su

  2. Run the following commands in this order: (This only works if your computer ships with a NVIDIA Graphical Processor Unit (GPU).)

    add-apt-repository ppa:graphics-drivers/ppa

    apt update

    apt upgrade

    ubuntu-drivers list

  3. Pick your version from the list of NVIDIA drivers and then run the following command to update it:

    apt install nvidia-driver-VERSION_NUMBER_HERE

  4. The following command restarts the computer:

    shutdown -r


Reinstall the update

 

  1. Ensure that you have a wired or wireless Ethernet connection to the computer.

  2. Connect to the Internet.

  3. Open a terminal window.

  4. Run the following command again: (Enter your user password when it asks.)

    sudo su

  5. Run the following command to update the driver and software package database:

    apt-get update

  6. Run the following command to update from the new driver and software packages:

    apt-get upgrade

  7. Restart the computer and test if the computer still logs in as it should:

    shutdown -r

Uninstall the Update

 

Bring up the recovery prompt

  1. Restart the computer and press down the Esc key once the Dell Splash screen disappears. (Press only once on the Esc key. However, this may take several attempts and should bring up the GRUB menu.)

  2. Roll back to the previous version of the operating system.

    (You should boot to the older kernel version listed in the GRUB recovery Menu)

  3. Uninstall the new (faulty) kernel by changing the text between the <> brackets with the version number seen in GRUB:

    sudo apt remove <linux-image-4.15.0.1066-oem>

  4. Update the GRUB program using the following command:

    sudo update-grub

  5. The following command restarts the computer:

    shutdown -r


Reinstall the update

 

  1. Ensure you have a wired or wireless Ethernet connection on the computer.

  2. Connect to the Internet.

  3. Open a terminal window.

  4. Type the following command to give the following commands administrator rights: (You must be part of the admin group for this. Enter your user password when it asks.)

    sudo su

  5. Run the following command to update the list of kernel updates:

    apt update

  6. Run the following command to update from the operating system updates:

    apt upgrade

  7. Restart the computer and test if the computer still logs in as it should. The following command restarts the computer:

    shutdown -r

Article Properties


Affected Product

G Series, Inspiron, Latitude, Vostro, XPS, Fixed Workstations

Last Published Date

26 Apr 2024

Version

5

Article Type

How To