Introduction

In this guide, I’m going to show you step by step, how this error is fixed. This error is common when installing or updating packages within your Linux System that cause the System to remove sensitive packages that allow the Graphic User Interface to run and other important system packages as well. We shall see how to fix this here. Over here, I’m using Kali Linux to fix this but this can work on any Linux System with Debian Flavor having this issue.

  1. EMrqwNp2oc26VPvq
    • In the first step, what you want to do is press and hold the power button to power off the PC.

    • Press and hold the power button to power off the PC. Please note that it is highly recommended that you don’t do this on a regular basis as it could corrupt the Hard Disk Drive. Nonetheless, since we don’t have access to the normal interface here. We will just have to shutdown the PC this way so we can access the GRUB Bootloader.

  2. 6kClDHY2Am1LNgZo
    • Since the GUI is what doesn’t work, the CLI can boot easily. In order to do this, from GRUB press E on your keyboard to access GRUB Configuration and scroll to the Linux Section. Navigate to the end of the Linux Section using the right arrow to the end of it and add a number 3 then press F10 on your keyboard to boot into Linux CLI.

  3. A22GZfmMjEolVDGu
    A22GZfmMjEolVDGu
    biWIFZHcjJFsIWXH
    yJTvgxISXsKnsoc6
    • Type your Linux username as it should be and password then login. Since we are going to an administrative task here, it is highly recommended you run as root, so perform sudo su and type your password again. Getting ready for the next step. If you get any firmware error then press CTRL+C

  4. yKjTJsOvvOG1ZBmf
    yKjTJsOvvOG1ZBmf
    gZ1ZCoMnLF4iRNDp
    • Since you’ll be doing tasks that involve a network connection here in order to fix this issue, it is highly recommended that your WiFi is turned on to automatically connect the PC. If you don’t have WiFi or don’t know the WiFi Password, connect via Ethernet Cable to simplify the task. Over here, I’ll be using WiFi. Press CTRL+C after connection.

    • Using CLI to connect to WiFi requires some commands. Simply follow this: sudo iw wlan0 scan | grep SSID. This will show networks around your area. Then use: sudo nmcli dev wifi connect <network-ssid> password <network-password> to connect to the network. Once done. You should be connected.

    • The final step would be to clear the aptitude database, update, upgrade and distribution upgrade: sudo rm /var/lib/apt/lists/lock sudo rm /var/lib/dpkg/lock sudo rm /var/lib/dpkg/lock-frontend sudo dpkg --configure -a sudo apt clean sudo apt update --fix-missing sudo apt install -f sudo dpkg --configure -a sudo apt upgrade sudo apt dist-upgrade

    • If you get an error during the update sequence from the last and previous step then use this to fix and go back to the previous step to finish the process. Look for the sources.list file for your specific distro online (Depends which Linux you’re using) then edit with command nano etc/apt/sources.list and type out every part. Do CTRL+X and then Y.

Conclusion

To reassemble your device, follow these instructions in reverse order.

Alameen Karim Merali

Member since: 12/09/19

269 Reputation

0 comments