Updates
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](https://i.stack.imgur.com/6oBSA.png)
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.
- Install all Kali linux tools.
- Select a category and install all Kali linux tools in the selected category.
- Select a single tool and install it.
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.
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
![enter imageterminal an description here](https://i.stack.imgur.com/3uxio.png)
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.
![enter image description here](https://i.stack.imgur.com/KJvrK.png)
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.
![enter image description here](https://i.stack.imgur.com/6oBSA.png)
Best Answer
Start Ubuntu from a virtual console
Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.
At the
login:
prompt type your username and press Enter.At the
Password:
prompt type your user password and press Enter.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.
All kinds of problems can occur if you don't do this.
Make a backup copy of sources.list.
Open
/etc/apt/sources.list
for editing in nano text editor:Replace the entire contents of your existing sources.list with the following default 16.04 sources.list:
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.
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.
Remove Katoolin.
Reinstall the Ubuntu desktop system.
Install grub to the MBR of your boot drive with these commands:
Reboot.
Run autoremove.
Install deborphan.
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.