You are not logged in.

#1 2016-06-16 17:44:11

renanmarcs
Member
Registered: 2016-06-16
Posts: 9

[SOLVED] Dependency failed for dhcpd on lo

Hello! I installed Arch recently manually with GNOME and yesterday had an error when I had only system base: internet not working. So, I searched for solution and typed:

$ ls /sys/class/net

result: enp3s0  lo

$ systemctl enable dhcpd@enp3s0.service
$ systemctl start dhcpd@enp3s0.service
$ systemctl enable dhcpd@lo.service
$ systemctl start dhcpd@lo.service

But these codes doesn't worked... And I shutdown PC and let to configure today. For my surprise, internet is working fine. So, I think that's was a problem with my internet yesterday. I continued with configuration, installing gnome and all packages... And everything works well. But now, I had an error: everytime that I boot Arch, he shows these messages:

A start job is running for sys-subsystem-net-devices-lo.device (1min/1min 30s)

Dependency failed for dhcpd on lo

The system starts and everything works normally. The problem is that I need to wait 1min 30s to this message disappear and the system boot.
I think that I pointed an unknow service with "dhcpd@lo.service"... And I try disable and stop with "systemctl stop dhcpd@lo.service" and "systemctl disable dhcpd@lo.service" .. But with no success.

How to take out this error but without damaging my connection?

P.s: I use wired connection, is an PC Desktop (don't have Wi-Fi board).

Sorry for bad english and thank you for attention.

Last edited by renanmarcs (2016-06-16 18:46:29)

Offline

#2 2016-06-16 18:02:31

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Dependency failed for dhcpd on lo

Are you sure that you have run

systemctl start ...

and not

systemctl enable ...

by accident? For only the latter creates a persistent service file. In any case, your assumption seems reasonable. Try

systemctl disable dhcpd@lo.service

Furthermore you may want to read up on this to see if you don't want to use NetworkManager which is the standard networking solution for Gnome.

Edit: You also may want to read up on systemd here.

Last edited by robg (2016-06-16 18:03:43)

Offline

#3 2016-06-16 18:02:55

loqs
Member
Registered: 2014-03-06
Posts: 17,310

Re: [SOLVED] Dependency failed for dhcpd on lo

Systemd Specifically the difference between stop and disable.

Offline

#4 2016-06-16 18:22:55

renanmarcs
Member
Registered: 2016-06-16
Posts: 9

Re: [SOLVED] Dependency failed for dhcpd on lo

robg wrote:

Are you sure that you have run

systemctl start ...

and not

systemctl enable ...

by accident? For only the latter creates a persistent service file. In any case, your assumption seems reasonable. Try

systemctl disable dhcpd@lo.service

Furthermore you may want to read up on this to see if you don't want to use NetworkManager which is the standard networking solution for Gnome.

Edit: You also may want to read up on systemd here.

Sorry, I wrote wrong in first post... Actually I typed "enable" and then "start". I tried disabling "lo.service" with this command but appears: "Failed to disable unit: No such file or directory"

I have already installed NetworkManager.

Offline

#5 2016-06-16 18:25:29

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Dependency failed for dhcpd on lo

Don't do dhcpcd on the loopback interface.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2016-06-16 18:45:14

renanmarcs
Member
Registered: 2016-06-16
Posts: 9

Re: [SOLVED] Dependency failed for dhcpd on lo

Hey guys, I got it! I disabled these two services and now all works fine. I do:

$ systemctl disable dhcpcd@enp3s0
$ systemctl disable dhcpcd@lo

instead of "dhcpd@lo.service" and "dhcpd@enp3s0.service"

Thanks for everything.

Offline

Board footer

Powered by FluxBB