This is not the best way to go about getting any old program running in Kali, but it works in this case and is quicker and easier than compiling from source, which I couldn't get to work.
To get the PPA repository working in Kali we need to get add-apt-repository working:
apt-get install python-software-properties
apt-get install apt-file
apt-file update
This can take a minute or more. Then try searching for add-apt-repository:
apt-file search add-apt-repository
Which should output something like this:
python-software-properties: /usr/bin/add-apt-repository
python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz
If it doesn't, like in my first attempt, we need to clean out some old packages
apt-get remove python-software-properties
apt-get autoremove
Then start from the beginning again and you should get the correct search output. Next we supply the code for add-apt-repository:
cd /usr/sbin
nano add-apt-repository
Then copy the following into nano, save and exit:
#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
ppa_name=`echo "$1" | cut -d":" -f2 -s`
if [ -z "$ppa_name" ]
then
echo "PPA name not found"
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ppa:user/ppa-name"
else
echo "$ppa_name"
echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list
apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
rm -rf /tmp/${NAME}_apt_add_key.txt
fi
else
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ppa:user/ppa-name"
fi
Quickly fix ownership and permissions:
chmod o+x /usr/sbin/add-apt-repository
chown root:root /usr/sbin/add-apt-repository
Then add the PPA repository and install WinUSB:
add-apt-repository ppa:colingille/freshlight
apt-get update
apt-get install winusb
It's probably a good idea to remove the PPA repository from your sources once you've installed WinUSB to avoid installing other incompatible packages:
nano /etc/apt/sources.list
And delete the last line before closing and saving. The WinUSB GUI is now in the System Tools sub-menu and the command line tools should also work. Best of luck!
1
Does this help? http://www.unixmen.com/winusb-create-bootable-windows-usb-linux/
– MC10 – 2015-08-24T21:09:53.950@MC10 - "sudo add-apt-repository ppa:colingille/freshlight" in kali linux termial says "sudo: add-apt-repository: command not found" – Deepak Kumar – 2015-08-25T04:25:21.330
you could try using ultraiso,whats the problem you were facing while installing or writing os to it could u breif a little? – BlueBerry - Vignesh4303 – 2015-08-26T09:55:21.453
@DeepakKumar ppa:colingille/freshlight has recently been updated to support all currently supported versions of Ubuntu, so you shouldn't get the error:
sudo: add-apt-repository: command not found
anymore. There is up-top-date information about how to install Win/USB in Kali Linux in my answer below. – karel – 2015-10-13T05:26:15.577