Kali linux not installing

Fix installation errors in Kali Linux

Since the Kali Linux 2020.1 is released on 28 th January 2020, so I thought to give it a try and install it on my HP Pavilion 15 laptop. I went over to https://www.kali.org/downloads page and downloaded the Kali Linux 64-Bit (Installer) which is about 2GB. I used Rufus on Windows to write the bootable ISO images onto my USB drive.

When I booted up and started the installation of Kali, I came across various errors, which took quite a lot of time to fix all the errors and get the new Kali 2020.1 version up and running on my laptop. I am sharing all the possible errors and how to fix them so that it can help others.

Problem 1: Your installation CD-ROM couldn’t be mounted.

Solutions

You have three options to fix this error:

Solution 1:

  1. Just unplug the USB storage drive that you’re installing from for a few moments and plug it in again.
  2. Select Yes on Retry mounting installation media? and click on Continue button to try again. The installation should now go ahead without any error.
  3. If this solution doesn’t work, try the next one.

Solution 2:

  1. On “Retry mounting the CD-ROM?” option, select the No and click Continue.cdrom-detect_retry_0.png
  2. You will see an installation step failed page but that is okay, just click on Continue.
  3. Now you will see an installer menu with various options. Navigate and select “Execute a shell” option and click on Continue twice.debian-installer_main-menu_0.png
  4. You will get a terminal window where you can execute commands. From here, we will manually mount our bootable USB to cdrom directory so the installer can continue.
    • First, to determine the block ID of USB drive, use the “blkid” command without quotes.Usually it is the last option in the list. Take a note of the device name i.e. /dev/sdb1 and file system type i.e. vfat. You will need these two things to manually mount the USB.
    • Now type “ls cdrom” command without quotes. If you do not get anything, you can skip the next command but if you get an error like “No such file or directory”, continue to next command.
    • Type “mkdir cdrom” command
    • Type “mount -t vfat /dev/sdb1 cdrom” command. Make sure you adjust the device name noted in first step
    • If above command is successful, you can verify the contents of cdrom directory using “ls cdrom” command.
    • Now type exit and hit enter. (see the following image for all the commands)debian-installer_shell-plugin_0.png
  5. You will get back to the list of installer menu with various options. You need to start over; Just highlight the first option i.e. Choose Language and click Continue.debian-installer_main-menu_1.png
  6. Hopefully, your system will now detect and mount the CDROM since you manually mounted it this time.

If above steps do not work for you, you can follow the next solution.

Читайте также:  Linux zip with tar

Solution 2:

For this, you will need to re-format your USB device. You can download and use rufus to write the bootable kali iso image onto your USB drive.

rufus

    1. Launch rufus.
    2. Rufus will auto detect your USB drive, just make sure right device is selected, then select the kali iso image and click on Start button.
    3. As soon as you hit the Start button, rufus will detect that the selected ISO image is ISOHybrid type and gives you two ways of writing this image to USB.
    4. Just select the second option i.e. Write in DD image mode and click OK.
    5. No matter what software you use for writing the Kali iso to USB, you need to do it via DD mode. Once your USB is ready, plug it in and start the installation.
    6. Now you will not get CD-ROM detect and mount error.

Tip: The problem with DD image mode is that you can no longer make any changes to your USB device i.e. you will not be able to add or delete any file to/from your USB device (until you re-format it). To be able to use the USB again you will have to clean it and remove the Kali Linux image from it.

Amazon Music Disney Promo

Problem 2: Some of your hardware needs non-free firmware files to operate.

debian-installer_firmware

To fix this error you will need a PC with an active internet connection. Just take a note of the missing firmware file names. In my case, it is “rtlwifi/rtl8723befw.bin”.

  1. Launch any web browser and open https://www.debian.org/distrib/packages#search_contents URL.
  2. Under keywords text box type the firmware file name noted initially, and then select “packages that contain files named like this” under display and then click on the Search button.debian_package_search.jpg
  3. If your firmware matches the search criteria, you will get a list of files. Click on the link under Packages and you will be redirected to package contents page.debian_package_search_result
  4. Now, scroll down until you see download firmware section, just click on the all link under Architecture column.debian_package_download
  5. You will now see a list of servers in various geographical regions. Click on the link of sever which is nearest to you and a .deb package will be downloaded.
  6. You will need to repeat the steps 2 – 5 for each missing firmware file.
  7. Now connect the bootable USB containing kali image to your computer. Make sure your USB device is not written using DD mode. If it is in DD mode, you won’t be able to copy files across. You will need to re-format it in ISO mode.
  8. Browse to USB device via File Explorer and navigate to F:\pool\non-free\ (USB device is mounted under F: drive, you need to adjust it accordingly)
  9. You will see some subdirectories in there. You need to go inside each subdirectory, copy all the files and paste them right inside F:\firmware\. If there are already some files with same name, just click replace.
  10. After copying all the files from F:\pool\non-free subdirectories, you also need to copy the firmware files that you downloaded earlier into same F:\firmware folder. Please see the following image for reference.kali_firmware_dir
  11. That is it. Now plug-in your USB and start the kali installation again.
  12. Hopefully, you will no longer get any missing non-free firmware error. If you do get the error, just repeat the steps 2 – 5 to download the missing firmware files.
Читайте также:  Steam games windows and linux

Problem 3: No GUI after successful installation of Kali 2020.1

Problem Description

After installation is successful, GRUB is installed to MBR, but when I rebooted the system there was no grub splash screen; just a text based booting menu. After Kali is booted up, there was no GUI; but only a text based login option.

Reason of Problem

By spending some time on googling it, I found that there is bug in 2020.1 installer ISO and about 140+ packages are missing in offline installer. Also, there are a few packages that are missing in APT package manager. To install Kali Linux with default options (XFCE DE), installer needs Internet connection to download missing packages from Kali repository. If you try to install Kali Linux offline, you will end up with text mode install.

Workaround

To remediate the situation, we can connect the Kali Linux to internet, convert our installation to GUI mode, and install any missing firmware and packages.

You will need an Android phone with good internet connection, USB cable that can connect your phone to PC where you just installed the Kali Linux. The idea is to use USB tethering option to share mobile’s internet connection on PC. Just to mention that I don’t really use an iPhone. So, I don’t know if there is any option to use USB tethering in iPhone as well. If there is, you can surely use iPhone too.

Tip: If your mobile internet is not too fast, first connect your mobile to a WiFi network which is fast enough and then follow these steps.

Since you don’t have any GUI in Kali Linux yet, so you will have to do everything in text mode.

    1. Login to kali linux in text mode
    2. Connect the USB cable to your PC and phone.
    3. Go to settings in your phone and enable USB tetheringUSB-Tethering
    4. Now wait a few seconds and use the following commands in right order. We will make sure that kali linux can connect to internet using USB.
      • Type “ip a” command without quotes and hit enter.This command will list all the network adapters and their IP configurations. The last device i.e. usb0 will probably be the USB network adapter created by USB tethering. If you see it, you are good to go to next step.
      • Now type “sudo dhclient” command without quotes and hit enter.
      • The command could take a few seconds. When completed, use “ip a” command again to verify that usb0 adapter has successfully received the IP configuration.usb_ip_config
      • If you see the IP address assigned (as highlighted in picture above), you are connected to internet.
    5. Now that you are connected to internet, make sure that the sources.list is updated with following information:
deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib
cat deb http://http.kali.org/kali kali-rolling main non-free contrib > deb-src http://http.kali.org/kali kali-rolling main non-free contrib > EOF

kali-repo

  • Use “cat /etc/apt/sources.list” command to view the file and comment out if there is any other line except above two
  • Now type “sudo apt update ” command and wait for it to complete.
  • Make sure your platform microcode is updated. Use following command just in case:
    sudo apt install intel-microcode -y && sudo apt install amd64-microcode -y

    After following this guide, you will be able to get latest version of Kali Linux up and running. Let me know if you still face any error that is not mentioned in this guide and I will try to get back to you with a solution as soon as possible.

    Читайте также:  Samsung 970 evo linux

    Источник

    Kali linux not installing

    There can be a wide variety of reasons for a Kali Linux installation to fail. This could include issues such as a corrupt or incomplete ISO download, not enough disk space on the target machine, etc. The following article will give you some pointers on what to look for when your Kali Linux installation has failed. The following is an example of the dreaded “Red Screen”, indicating the installation encountered a problem.

    Hitting the continue button should take you to the Debian installer main menu. From that main menu, browse to the “save debug logs”:

    Going into the debug logs, you are presented with several ways of transferring the installation log files away from the failed installation. The most convenient way is usually to start a web server on the machine undergoing the installation.

    Once you choose this option, a web server is started from which you are able to download or view several installation log files.

    Look over the logs files for anything irregular, or any error messages which look like they might be the cause of your failed installation. In this case, the target machine did not have enough disk space to install Kali Linux, as was seen towards the end of the syslinux log file

    Updated on: 2023-Mar-06
    Author: g0tmi1k

    Источник

    Thread: Troubleshooting — Installing Kali-Linux

    g0tmi1k is offlineAdministrator

    Troubleshooting — Installing Kali-Linux

    When installing Kali-Linux, you may run into issues during the setup process.
    Depending on the the issue & the error message displayed, you may see to get a better understanding of the issue before you can find the solution. This is where log files are highly useful.

    When posting issues regarding bad setups of the Kali-Linux, please provide your log file(s) . as well as basic system information.
    Without them, it is very hard to understand what the issue is that your facing.

    Stage 1.
    Below are two different issues demonstrations two different error message for two different problems.
    You will notice, one of them is very vague (doesn’t include any details), and the other hints at what is wrong (and also where to check).
    We need to ‘go back’ to the install menu that is automatically walkthrough during the setup process. However, the ‘go back’ option isn’t always available (sometimes you need to select ‘continue’ before the ‘go back option’ is available).

    Note: Very vague error message. Only option is ‘Continue’.

    Note: Brief error message. Options are either ‘Continue’ or ‘Go Back’.

    Stage 2.
    Locate the ‘Save debug logs’ option in the install menu.

    Note: There are various troubleshooting options to select

    Stage 3.
    You then have the option where to store & how to access the log files. In this example we will select ‘web’, as we have an network connection & another device on the network that has a web browser to be able to access them.

    Источник

  • Оцените статью
    Adblock
    detector