The "Unable to fetch release" error during Kali Linux installation typically stems from the installer's inability to download non-free firmware packages. This occurs because the network configuration fails to reach the required repositories, often due to missing drivers or incorrect proxy settings. By manually configuring the network and selecting appropriate firmware sources, you can bypass this block and complete the installation successfully.
Understanding the Firmware Dependency
Modern Linux distributions, including Kali Linux, rely heavily on non-free firmware for hardware components such as Wi-Fi adapters, graphics cards, and network interfaces. During the initial installation phase, the system attempts to detect your hardware and download the necessary binary blobs to ensure full functionality. If the installer cannot establish a stable connection to the repository hosting these firmware files, it triggers the "Unable to fetch release" error. This is not necessarily a bug in the ISO itself but rather a connectivity or configuration hurdle that prevents the installer from provisioning essential drivers.
Many users encounter this issue when installing Kali on laptops or desktops with proprietary wireless cards. The installer expects to find specific firmware packages like
iwlwifi or
ath10k depending on the chipset. Without these, the network interface may remain inactive, creating a circular dependency where you need the network to install the driver that enables the network. Resolving this requires ensuring that the installation media has access to the correct mirrors or that the firmware is available locally if offline installation is preferred.
Verifying Network Connectivity
Before diving into complex configurations, verify that your machine can actually reach the internet during the installation process. The Kali installer provides a network configuration screen early in the setup wizard. If you are using Ethernet, ensure the cable is securely connected and the link light is active. For Wi-Fi, select your network from the list provided by the installer and enter the correct passphrase.
If the network icon shows a disconnected status or fails to acquire an IP address via DHCP, the installer will not be able to fetch release files. In such cases, try switching to a wired connection if possible, as it is generally more reliable during installation. You can also check the system logs by pressing
Alt+F2 to switch to a virtual terminal. Run the command
ping -c 3 8.8.8.8 to test basic connectivity. If this fails, the issue lies with your physical network environment or router settings, not the Kali installer itself.
For those experiencing intermittent drops, consider disabling power-saving modes in your BIOS/UEFI settings, as aggressive power management can sometimes interfere with network card initialization during the boot process. Once connectivity is confirmed, return to the installation menu and retry the step that failed.
Configuring Non-Free Firmware Sources
If network connectivity is confirmed but the error persists, the issue may lie with the repository configuration. The Kali installer uses Debian-based package management systems, which require explicit instructions on where to fetch packages. Ensure that the
non-free component is enabled in your
/etc/apt/sources.list file if you are performing a manual post-installation fix, or select the appropriate options during the guided partitioning and software selection phases.
During the installation, you may be presented with a screen asking about the use of non-free firmware. Always select
Yes to allow the installer to download proprietary drivers. If you skipped this step or if the download timed out, you can manually edit the sources later. Boot into a live session or chroot into the installed system and add the following line to your sources list:
deb http://http.kali.org/kali kali-rolling main contrib non-free
After updating the sources, run
apt update to refresh the package lists. This ensures that the installer knows exactly where to look for firmware packages. It is crucial to include both
contrib and
non-free sections, as many hardware drivers reside outside the main free software repository.
Alternative Installation Methods
If the standard graphical installer continues to fail despite correct network and source configurations, consider using alternative installation methods that offer more control over the process. One effective approach is to perform a netinstall, which downloads only the base system and allows you to select specific packages during setup. This reduces the initial load and gives you the flexibility to skip problematic firmware packages if you plan to install them manually later.
Another option is to use a minimal ISO image. These images contain only the essential tools needed to start the installation process. While this requires more manual configuration after booting, it bypasses the automatic firmware detection phase that often causes errors. You can then install the required firmware packages using
apt install linux-firmware once the system is running.
For users who prefer a GUI-driven experience without the hassle of manual source editing, third-party tools like
Troubleshooting Kali Linux Installation: Failed to Attach Disk might provide insights into broader installation framework issues. Additionally, checking
Troubleshooting Kali Linux ISO Installation on USB Pendrive can help rule out corrupted media as a root cause. Ensuring your USB drive is formatted correctly with FAT32 or exFAT can prevent low-level read errors that mimic network failures.
Post-Installation Verification
Once the installation completes, verify that all hardware components are functioning correctly. Check your network interfaces using
ip a to ensure they have obtained IP addresses. Test Wi-Fi connectivity by scanning for networks with
nmcli device wifi list. If your wireless adapter still does not appear, you may need to manually load the firmware modules using
modprobe.
Regularly update your system with
apt full-upgrade to ensure you have the latest kernel headers and firmware updates. This proactive maintenance helps prevent similar issues in future installations or upgrades. Remember that Kali Linux is a rolling release distribution, so keeping your system current is essential for stability and security.
Frequently Asked Questions
Why does my Wi-Fi stop working after Kali installation?
This usually happens because the proprietary firmware was not installed during the initial setup. Ensure you selected "non-free" firmware during installation or manually install the
linux-firmware-nonfree package after booting.
Can I install Kali Linux without an internet connection?
Yes, but you must prepare an offline repository or use a minimal ISO. Standard installations require internet access to fetch firmware; without it, you must provide the necessary .deb files manually or use a pre-configured offline mirror.
What should I do if the installer hangs at "Detecting Hardware"?
This often indicates a conflict with existing operating systems or disk partitions. Try disconnecting other drives temporarily or use the expert install mode to manually configure partitioning and avoid automatic hardware probing errors.
Is it safe to disable Secure Boot for Kali Linux?
Disabling Secure Boot is recommended for Kali Linux to avoid signature verification issues with third-party drivers and kernels. However, ensure you enable it again if you dual-boot with Windows to maintain system security.
How do I check if my firmware is properly loaded?
Use the command
dmesg | grep firmware to view kernel messages related to firmware loading. Look for any error messages indicating failed loads or missing files, which can guide you to the specific package needing installation.