4

I upgraded wheezy to jessie and there is no dhcpcd installed. I installed it with apt-get install dhcpcd but I cannot start the service. When I do sudo service dhcpcd start I get Failed to start dhcpcd.service: Unit dhcpcd.service failed to load: No such file or directory. Is there a way to manually install dhcpcd?

  • What service do you want to start? dhcpcd is a DHCP client. – nsilent22 Feb 21 '16 at 21:57
  • Which runs as a daemon service: wiki.archlinux.org/index.php/dhcpcd – Reto Feb 21 '16 at 22:10
  • So maybe you are looking for dhcpcd5 package? – nsilent22 Feb 21 '16 at 22:14
  • systemctl enable dhcpcd@eth0 (if it is eth0) – Ghanima Feb 21 '16 at 22:24
4

Do sudo apt-get install dhcpcd5

  • Does that also start the service? – Ghanima Feb 21 '16 at 22:19
  • @Ghanima: Yes it does. – nsilent22 Feb 21 '16 at 22:21
  • Ok, cool.... :) – Ghanima Feb 21 '16 at 22:28
  • Installing worked but now there is an error: â— dhcpcd.service - dhcpcd on all interfaces Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled) Active: failed (Result: exit-code) since Mon 2016-02-22 20:25:52 CET; 1min 13s ago Process: 416 ExecStart=/sbin/dhcpcd -q -b (code=exited, status=1/FAILURE) – Reto Feb 22 '16 at 19:29
  • 1
    @Reto: Did you removed old dhcpcd package? I think you messed up a little your installation, because this message: dhcpcd[416]: Usage: dhcpcd [options] <interface> looks like system tried to run dhcpcd from dhcpcd package, not from dhcpcd5 package. Just apt-get remove dhcpcd and you'll be fine. – nsilent22 Feb 22 '16 at 19:33

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.