I would like to install all Kali linux tools on Ubuntu 15.10. Is there any way to do that? I tried using Katoolin, but that broke my Ubuntu. Is there another way to do this safely without breaking Ubuntu?
Ubuntu – How to install Kali linux tools in Ubuntu 15.10
katoolinpackage-managementsoftware installation
Related Solutions
I had the same problem after installing Kali via Katoolin on Ubuntu 16.04 and it took me some time to figure out a solution. In my case Katoolin changed the settings in the lsb_release file.
I could fix it with running:
sudo -i gedit /etc/lsb-release
There I had to change the Kali settings, which do not belong there to:
For 16.04:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus"
In case you have another distro you need to adapt the names (see Wikipedia e.g.).
In your case:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="Ubuntu Wily Werewolf"
For 17.04:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
Then, run the following command to update grub:
sudo update-grub
After doing this everything worked fine again for me.
I hope this helps. Sorry, if the explanation is not perfect; it is my first answer here.
Introduction
Katoolin is a collection of scripts for automating the installation of Kali linux tools in different platforms other than Kali linux, and installing Kali linux tools with Katoolin in other OSs or Windows Subsystem for Linux is always less secure than installing the same tools in Kali Linux. Kali Linux is named after the Hindu goddess of destruction which should give the user some indication that even Kali Linux itself is risky and difficult to manage, especially for new users.
Katoolin draws its tools from a variety of sources including apt and GitHub. Katoolin doesn't know anything about the platform that it is running on, so the safest way to use Katoolin is to install each tool the hard way one tool at a time, checking each time to see if that tool is included in the default Ubuntu repositories and if so installing it that way instead. When the installation is finished, the software sources that were added by Katoolin should be immediately disabled in order to prevent Katoolin from replacing packages that were installed from the default Ubuntu repositories with its own updated packages whenever Ubuntu software is updated.
Installation of Kali linux tools
(Re)install Katoolin as follows:
Open the terminal and type:
sudo apt install git git clone https://github.com/LionSec/katoolin.git && sudo cp katoolin/katoolin.py /usr/bin/katoolin
Make
/usr/bin/katoolin
executable.sudo chmod +x /usr/bin/katoolin
Run Katoolin as follows and you will see the Katoolin interface:
cd /usr/bin/ sudo ./katoolin
View the categories of available software in katoolin interface
Press 0 to install all Kali linux tools.
When you go to View Categories and then enter 0 for all, the installer will immediately return to where you were. Scroll up, and you'll see that a number of the packages can't be found. Those packages are no longer maintained or have been removed from the Kali repositories. Even with this issue, you'll still find a lot of the Kali software available for installation.
So the best option is to install Kali linux tools in a series of distinct steps. Just like if you want to install Forensic tools on your system, then choose its option from the category and then type 0 to install all forensics tools. If this still doesn't work, then you have to install whatever forensic tools that can be installed one package at a time.
This is why the Katoolin interface sometimes hangs when you try to install all of the Kali linux tools at once. Take the time of waiting for the server to respond to a request for a package that is not available and multiply it by how many unavailable Kali linux tools there are in the Katoolin repositories.
If you wish to go back to the main menu, type
gohome
in your katoolin interface. Now select the option 3 or 4 to install either the classicmenu indicator or the Kali menu. Press the y key to continue and then press Enter to start its setup.Once you are done with installation of Kali tools using katoolin, you can quit by pressing the keyboard combination Ctrl+C and you will see the goodbye message.
shutdown requested....Goodbye...
Credit for the above text block goes to Kashif at How To Install Kali Linux Tools On Ubuntu 16 And CentOS 7 with my additions italicized.
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.
Best Answer
Updates
The LionSec Katoolin GitHub webpage clearly warns Katoolin users to be careful when updating software.
All kinds of problems can occur if you don't do this.
Software installation
Katoolin is a nice package management tool, however because Katoolin is a package management tool, problems can come in groups of packages instead of one package at a time, especially if you try to grab all the Kali linux tools at the same time. Many of the tools in Katoolin are otherwise only available as .tar.gz archives, and in order to install them, you would have to track them down and compile them one by one. Before you compile a .tar.gz, you should check whether the executable is provided by another package from the default Ubuntu repositories.
In Katoolin Kali linux tools come from multiple repositories and in these repositories there are more than 300 tools. Some of these tools are duplicates of tools that can be installed from the default Ubuntu repositories, and sometimes they are more up-to-date versions having different dependencies than the same tools from the default Ubuntu repositories. Some tools in Katoolin are packaged as standalone tools, whereas in Ubuntu the same tool is bundled into a larger package that contains additional software. When you add a new Kali repository apt doesn't always know if you are adding conflicting packages to your system's list of software, but you'll find out about it when you try to install the packages. Katoolin is a cross platform package management tool, and the same package that installs perfectly on another operating system can cause errors when trying to install it in Ubuntu.
In Katoolin tools can be installed in three different hierarchical levels of grouping.
Don't be reckless. In order to install Kali linux tools in a safer way, don't install any tools that you don't need. The more Kali repositories that you add to your software sources and the more Kali linux tools that you install, the higher the probability is of breaking something.