When I was installing a Kali virtual machine, I came across an error in the “Software selection” step
After confirming the software, the installation shows an “Installation step failed” message.
After browsing through some sites and forums, apparently the problem could be related to not configuring enough space and a suggestion is configuring more than 30-40 GB. But no luck, I configure a new virtual machine with the size increased and the problem persists.
So, I tried to search for errors while reproducing the problem:
Alt + F2 to open a shell
Please press Enter to activate this console
BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in-commands.
~ # cd /var/log
/var/log # tail -f syslog
Alt + F1 to return to the installer and “Select and install software” again to make the error be logged.
The recently opened terminal shows an error related to unmet python packages dependencies
Trying to update apt package list returns error
# apt-get update
-/bin/sh: apt-get: not found
After knowing the hard disk where the installation is being performed is mounted in /target…
# df -h
...
/dev/sda1 ... ... /target
...
… I changed the chroot
# chroot /target
Now apt-get update works, but after running it I realized the CD sources still were configured, so I edited the /etc/apt/sources.list, to comment the CD related lines and uncomment the deb-src one, leaving the file this way:
#deb cdrom:[Kali GNU/Linux 2020.3rc2 _Kali-last-snapshot_ - Official amd64 NETINST with firmware 20200728-20:31]/ kali-rolling contrib main non-free
#deb cdrom:[Kali GNU/Linux 2020.3rc2 _Kali-last-snapshot_ - Official amd64 NETINST with firmware 20200728-20:31]/ kali-rolling contrib main non-free
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
Update the package list…
# apt-get update
Get:1 http://mirror.neostrada.nl/kali kali-rolling InRelease [30.5 kB]
Get:2 http://mirror.neostrada.nl/kali kali-rolling/non-free Sources [126 kB]
Get:3 http://mirror.neostrada.nl/kali kali-rolling/main Sources [13.5 MB]
Get:4 http://mirror.neostrada.nl/kali kali-rolling/contrib Sources [61.9 kB]
Fetched 31.0 MB in 19s (1,599 kB/s)
Reading package lists... Done
…and after resuming the installation, the problem is fixed
Thank you.
It solved my problem too, but in the end I had to use “apt update” instead of erroring “apt -get update”.
You have no idea how much trouble this saved me,thank you so much.
worked a treat, thanks!
I LOVE U !
Thanks a lot 😉
It is unclear what you do after “chroot /target”. Can you explain further?
– Edit the /etc/apt/sources.list the way I show in the post.
– “Run apt-get update” again
In the installer I go to Execute a shell. What do I type in here . And what exactly do I have to do in sources.list?
nano /etc/apt/sources.list opens the sources.list and I can edit. But what do I have to edit exactly. It is not showing in the same way as you describe
I got it to work by adding
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
In the sources.list
Then presed CTRL+X and save. And then type apt-get update and after type apt-get upgrade
And now everything gets installed. By the way I am not in virtual machine. I am Installing kali directly on laptop
I got it to work by only adding
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
And then I presed CTRL+X and saved it and dis apt-get update and apt-get upgrade and tried to resume kali instalation. It worked
This solution really works, and shines light to the root of the problem (incorrect pathing to the source from ‘cdrom’ to the current online repository).
There are dozens and dozens of online guides, tutorials, forum posts, articles, wikis, and maybe even testimonials, that claim to solve the issue above. This.
Which solution?
This what am getting on the logs,
configuring “pkgsel” failed with error code 1
Menu item “pkgsel failed
what is the full command on the :
# df -h
…
/dev/sda1 … … /target
…
not understanding what the … … is about
Thank you so much i installed 21 march 2022
WOW! You saved my day.
Cheers!