Page 1 of 1

Some dhcpcd stuff still runs after a purge

Posted: Thu Jan 17, 2019 8:26 pm
by davef
Even though I have done a:

Code: Select all

sudo apt-get purge dhcpcd

I still get a lot of dhcpcd-related entries in syslog.

Doing a :

Code: Select all

 sudo find -name dhcpcd* -print

The following files still remain:

Code: Select all

./etc/systemd/system/dhcpcd.service.d/wait.conf
./etc/dhcpcd.secret
./etc/dhcpcd.duid
./run/dhcpcd
./run/dhcpcd.unpriv.sock
./run/dhcpcd.sock
./run/dhcpcd.pid
./sys/fs/cgroup/systemd/system.slice/dhcpcd.service

Hers's a snippet of syslog:

Code: Select all

Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: carrier acquired
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: IPv6 kernel autoconf disabled
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: adding address fe80::a60:6eff:fe63:f301
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: script_runreason: /lib/dhcpcd/dhcpcd-run-hooks: WEXITSTATUS 127
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: IAID 6e:63:f3:01
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: soliciting an IPv6 router
Jan 17 23:59:16 raspberrypi dhcpcd[10397]: wlan0: soliciting a DHCP lease
Jan 17 23:59:19 raspberrypi dhcpcd[10397]: wlan0: offered 192.168.43.8 from 192.168.43.1
Jan 17 23:59:25 raspberrypi dhcpcd[10397]: wlan0: leased 192.168.43.8 for 3600 seconds
Jan 17 23:59:25 raspberrypi dhcpcd[10397]: dhcp_bind: write_lease: No such file or directory
Jan 17 23:59:25 raspberrypi dhcpcd[10397]: wlan0: adding route to 192.168.43.0/24
Jan 17 23:59:25 raspberrypi dhcpcd[10397]: wlan0: adding default route via 192.168.43.1
Jan 17 23:59:25 raspberrypi dhcpcd[10397]: script_runreason: /lib/dhcpcd/dhcpcd-run-hooks: WEXITSTATUS 127
Jan 17 23:59:29 raspberrypi dhcpcd[10397]: wlan0: no IPv6 Routers available
Jan 17 23:59:31 raspberrypi dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
Jan 17 23:59:31 raspberrypi dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Jan 17 23:59:31 raspberrypi dhclient: DHCPOFFER from 192.168.43.1
Jan 17 23:59:31 raspberrypi dhclient: DHCPACK from 192.168.43.1
Jan 17 23:59:31 raspberrypi dhcpcd[10397]: wlan0: removing IP address 192.168.43.8/24
Jan 17 23:59:31 raspberrypi dhcpcd[10397]: wlan0: deleting route to 192.168.43.0/24
Jan 17 23:59:31 raspberrypi dhcpcd[10397]: wlan0: deleting default route via 192.168.43.1
Jan 17 23:59:31 raspberrypi dhcpcd[10397]: script_runreason: /lib/dhcpcd/dhcpcd-run-hooks: WEXITSTATUS 127
Jan 17 23:59:31 raspberrypi dhclient: bound to 192.168.43.8 -- renewal in 1453 seconds.
Can I just delete those files?

Thanks,
Dave

Re: Some dhcpcd stuff still runs after a purge

Posted: Thu Jan 17, 2019 8:28 pm
by DougieLawson
You'll need to reboot after making that kind of radical change to the default networking set-up.

Re: Some dhcpcd stuff still runs after a purge

Posted: Fri Jan 18, 2019 2:20 am
by davef
Pretty sure I rebooted several times, but will try again.

Thanks,
Dave

Re: Some dhcpcd stuff still runs after a purge

Posted: Fri Jan 18, 2019 10:10 am
by hortimech
Have you tried:

Code: Select all

sudo apt-get purge dhcpcd5

Re: Some dhcpcd stuff still runs after a purge

Posted: Fri Jan 18, 2019 6:41 pm
by davef
I will try that and report back in about a week. The Pi is in a remote location.

Thanks,
Dave

Re: Some dhcpcd stuff still runs after a purge

Posted: Tue Jan 22, 2019 10:02 pm
by davef
Thanks Dougie. Looks like after the last session of removing dhcpcd5/dhcpcd I didn't reboot.

Now, all that remains is:

Code: Select all

./etc/systemd/system/dhcpcd.service.d/wait.conf
./etc/dhcpcd.secret
./etc/dhcpcd.duid
and it doesn't run. Gr8

Dave