2

Currently I have a non-functioning machine due to an Ubuntu update. I updated my nvidia-display driver, I ran sudo apt update, and then I rebooted.

Now I can't enter UEFI, the grub boot menu or Ubuntu 18.04.

After boot I get the following screen. This screen loops with a black screen.

black screen 1

I can run Ctrl+Alt+F2 to get a terminal, which gives the following screen. This screen also loops with a black screen.

black screen 2 This console doesn't look like Ubuntu, however Katoolin did this to Ubuntu 18.04 and the question is how to undo it.

I have a dual boot of Ubuntu 18.04 and Windows 10. On Ubuntu Katoolin is installed. Probably this explains the image shown in the second screen photo since I have two OSs installed in some sense.

My GPU is Nvidia RTX 2080Ti and I have an PCI-E wireless ethernet adapter installed.

3

Start Ubuntu from a virtual console

  1. Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.

  2. At the login: prompt type your username and press Enter.

  3. At the Password: prompt type your user password and press Enter.

  4. Now you are logged in to a text-only console, and you can run terminal commands from the console.

Warning about updates after installing Kali linux tools

The LionSec Katoolin GitHub webpage clearly warns Katoolin users to be careful when updating software.

Before updating your system, please remove all Kali-linux repositories to avoid any kind of problem.

enter image description here

All kinds of problems can occur if you don't do this.


  1. Make a backup copy of sources.list.

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  2. Open /etc/apt/sources.list for editing in nano text editor:

    sudo nano /etc/apt/sources.list  
    
  3. Replace the entire contents of your existing sources.list with the following default 18.04 sources.list:

    deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse  
    deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse  
    deb http://archive.canonical.com/ubuntu bionic partner
  4. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.

  5. Remove Katoolin.

    sudo rm -r /usr/bin/katoolin 
    
  6. Reinstall the Ubuntu desktop system.

    sudo apt-cache depends ubuntu-desktop | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y
    
  7. Install grub to the MBR of your boot drive with these commands:

    sudo apt-get --reinstall install base-files/bionic-updates  
    sudo os-prober  
    sudo update-grub   
    
  8. Run this command after changing sources.list to refresh the list of available software. This is the most important step, so please don't skip it.

    sudo apt update  
    
  9. Reboot.

    sudo reboot  
    
  10. Run autoremove.

    sudo apt autoremove
    
  11. Install deborphan

    sudo apt install deborphan  
    
  12. Run deborphan to show a list of packages orphaned after uninstalling Katoolin. These orphaned packages are no longer necessary except if you are still using any of the packages that were installed by Katoolin. These packages are referred to as Kali linux tools by Katoolin which gives the user some warning about the mischief that installing these packages can cause.

  • Thanks for the answer. In order to stop the looping screen I remove the GPU and plugged the monitor to the motherboard. So far so good. I can now enter Windows 10 and I can see the grub menu. I have followed the steps provided by karel. Unfortunately I get stucked in step 6 since my network connection is not working. ping 8.8.8.8 returns: "Connect: Network is unreachable" I can access the internet on the very same machine if I boot into Windows 10. So how can I move forward? – Rayman Aug 10 at 15:47
  • Run lspci -knn | grep Net -A3 to identify your networking device. Then I'll tell you how to download the correct driver. You can download the network driver packages manually by booting into Windows 10. Then boot Ubuntu if you can, and copy them over to the Ubuntu partition. If you can't boot into Ubuntu and I'll give you the code to install the network driver from the console after step 5. Then reboot and hopefully you will have networking enabled. – karel Aug 10 at 16:23
  • $lspci -knn | grep Net -A3: Network controller [0280]. Broadcom Inc. and and subsidiaries Device [14e4:43c3] (rev 04) Subsystem: ASUSTeK Computer Inc. Device [1043:86fb] Kernel driver in use: brcmfmac Kernel modules: brcmfmac I am on cable and the motherboard is a MSI Z87-GD65. Furthermore, I have a wireless internet adapter: "Asus pce-ac88" – Rayman Aug 10 at 16:24
  • Asus PCE-AC88 on Ubuntu 18.04 The answer to WiFi Driver Issues ASUS_PCE-AC88 by chili555 also tells you how to install the Broadcom driver. – karel Aug 10 at 16:26
  • I do not want to waste time installing the wifi adapter right now as It is straight forward once Ubuntu is running again. Instead I want to install the motherboard ethernet controller. I have removed my wireless adapter from my PC. Now the Ethernet controller is a Qualcomm Atheros Killer E220X gigabit Ethernet controller Kernel driver in use: alx kernel modules: alx. I assume this adapter is not working. – Rayman Aug 10 at 16:53
0

Since my eth0 was not working, I could not follow @karels answer. I decided to get a new Ubuntu intallation using a USB drive.

Thanks for the help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.