3

I'm using Kali Linux version 2.0 and I want to install the isc-dhcp-server package in order to practice on an evil twin attack but unfortunately I wasn't able to do that. I used this command:

apt-get install isc-dhcp-server
apt-get install dhcp3-server

But I get this error:

enter image description here

In order to solve this issue I tried a lot of things from here as well as from Google but I got no result.

Some solution that I have tried:

apt-get update
apt-get dist-upgrade
apt-get install isc-dhcp-server -y

I downloaded the synaptic package manager but I couldn't find the isc-dhcp-server inside it.

enter image description here

apt-cache policy isc-dhcp-server output:

isc-dhcp-server:
  Installed: 4.2.2.dfsg.1-5+deb70u6
  Candidate: 4.2.2.dfsg.1-5+deb70u6
  Version table:
 *** 4.2.2.dfsg.1-5+deb70u6 0
        500 http://http.kali.org/kali/ kali/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy isc-dhcp-common output:

isc-dhcp-common:
  Installed: 4.2.2.dfsg.1-5+deb70u6
  Candidate: 4.2.2.dfsg.1-5+deb70u6
  Version table:
 *** 4.2.2.dfsg.1-5+deb70u6 0
        500 http://http.kali.org/kali/ kali/main i386 Packages
        100 /var/lib/dpkg/status

How can I solve this issue?

  • Could you edit your question and add the output of the following commands? apt-cache policy isc-dhcp-server and apt-cache policy isc-dhcp-common (and please copy-and-paste the output, it's easier to read than a screen capture). – Stephen Kitt Sep 26 '15 at 13:52
  • @StephenKitt I updated the question with the outputs you've requested. – abdelghafour arabs Sep 26 '15 at 13:56
  • Apparently isc-dhcp-server is already installed, but it's an old version... – Stephen Kitt Sep 26 '15 at 13:59
  • Can you tell me how can I updated it to the new version?? – abdelghafour arabs Sep 26 '15 at 14:00
  • Version 4.2.2 should be sufficient to perform an evil twin attack. If you really want to upgrade, you need to check /etc/apt/sources.list and the files in /etc/apt/sources.list.d; your installation seems messed up somehow, because Kali 2.0 has version 4.3.1 of isc-dhcp. – Stephen Kitt Sep 26 '15 at 14:02
5

This fixed the problem for me:

apt-get purge   isc-dhcp-common  &&
apt-get install isc-dhcp-common  &&
apt-get install isc-dhcp-server
| improve this answer | |
1

Go to the website http://www.isc.org/downloads/ and download the 4.3.4 version.

Then unzip the folder content, on the command line cd to the directory and build the dependency tree using ./configure.

After that type make to finish the installation.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.