Raspberry Pi 5 not booting into desktop after installing dhcpcd

June 2, 2024, 16:01

0x7d3

After installing dhcpcd on the pi it doenst show the desktop screen when booting, instead it boots headless with a bunch of lightdm errors, how can this be caused by dhcpcd? Everything else works fine except for some DNS issues wich I dont need help with

0x7d3

I have been struggeling together with the help of chatgpt for a whole day now

0x7d3

when doing startx it loads a desktop but not the correct pi one

0x7d3


0x7d3

Here you can see the errors and the way it boots

skitchin

Have you tried running systemctl status lightdm.service as the error log suggests?

0x7d3

yes, ill upload a photo of it

0x7d3


skitchin

Not an expert, but it seems to suggest there are missing dependencies

0x7d3

My project is as follows: I boot the pi wich creates an accespoint and connects to wifi with wlan0 and wlan1. Then I want to remotly connect with vnc to the pi.

skitchin

Did you remove any software lately?

0x7d3

To make the ap work I use dhcpcd wich is well known and popular. Is strange that installing this causes to boot in cmd

0x7d3

Nope, freshly started project today

0x7d3

Everything works except for the fact that it boots headless because of lightdm errors

skitchin

I'd probably start with running apt update and upgrade

0x7d3

Haha

0x7d3

Thx

skitchin

There's a few similar cases if you search for lightdm.service "triggering onfailure= dependencies"

skitchin

Other threads suggested reinstalling lightdm

skitchin

Which seems drastic

0x7d3

Yea, im prob gonna try to do this project without dhcpcd since this causes the problem

0x7d3

<@318815328127942658> fixed it, I just set everything up without dhcpcd, its now even working better then before!!

skitchin

Glad to hear! Wonder what the heck happened with dhcpcd there to make it mess up so spectacularly? Oh well

0x7d3

I guess we never know haha

0x7d3

Now I can take this second mini computer somewhere power it up and vnc into it while having internet acces at the same time, awesome! No idea what to do with it but its still awesome!

idyllicaurora

I didnt read through the whole chat, but I've been having issues with dhcpcd as well. Found out it there were multiple constraints (incomplete versions, netconfig issues, conflicting configurations) kind of just disabled it and had nm handle the DHCP client Glad to hear it's working for you!

0x7d3

<@529518678937698305> I had so many issues with dhcpcd! Now that I removed it and let NetworkManager do its thing it worksflawless! Crazy that it can cause so much trouble!

idyllicaurora

Yep, NM is awesome!