davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Some dhcpcd stuff still runs after a purge

Thu Jan 17, 2019 8:26 pm

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

User avatar
DougieLawson
Posts: 40246
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Some dhcpcd stuff still runs after a purge

Thu Jan 17, 2019 8:28 pm

You'll need to reboot after making that kind of radical change to the default networking set-up.
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Re: Some dhcpcd stuff still runs after a purge

Fri Jan 18, 2019 2:20 am

Pretty sure I rebooted several times, but will try again.

Thanks,
Dave

hortimech
Posts: 444
Joined: Wed Apr 08, 2015 5:52 pm

Re: Some dhcpcd stuff still runs after a purge

Fri Jan 18, 2019 10:10 am

Have you tried:

Code: Select all

sudo apt-get purge dhcpcd5

davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Re: Some dhcpcd stuff still runs after a purge

Fri Jan 18, 2019 6:41 pm

I will try that and report back in about a week. The Pi is in a remote location.

Thanks,
Dave

davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Re: Some dhcpcd stuff still runs after a purge

Tue Jan 22, 2019 10:02 pm

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

Return to “Networking and servers”