Hi,
> I try this evening to install dhcp-probe-1.3.0-10 on my laptop.
> Interface detection work fine and file is created.
> When I purge the package the entire /etc/dhcp-probe is purged (no
> file is left in directory, itself deleted).
I just retested this issue on a freshly apt-get-update-d jessie (virtual)
machine, and reproduced the problem.
Steps to reproduce:
$ apt-get install dhcp-probe(never previously installed on this
machine; Tested on a machine with two ethernet interfaces: eth0 and eth1)
$ rm /etc/dhcp-probe/dhcp-probe.eth1
$ apt-get purge dhcp-probe
$ apt-get install dhcp-probe
See the log below. The error (/warning) message in question is 9 lines from the
bottom.
After purging dhcp-probe, apparently some information relating to its config
files remains (or can remain ?) stored on the system, even though the files
themselves were removed. IMO, such information should be erased as well
when purging.
Regards,
Rogier.
----------------------------------------------------------------------------------------
Reproduction log:
jessie:root ~ 5 # apt-get install dhcp-probe
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-amd64
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
libnet1 libpcap0.8
The following NEW packages will be installed:
dhcp-probe libnet1 libpcap0.8
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 201 kB/263 kB of archives.
After this operation, 579 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.nl.debian.org/debian/ jessie/main libpcap0.8 i386 1.6.2-2 [137
kB]
Get:2 http://ftp.nl.debian.org/debian/ jessie/main dhcp-probe i386 1.3.0-10.1
[64.0 kB]
Fetched 187 kB in 0s (613 kB/s)
Selecting previously unselected package libnet1:i386.
(Reading database ... 22119 files and directories currently installed.)
Preparing to unpack .../libnet1_1.1.6+dfsg-3_i386.deb ...
Unpacking libnet1:i386 (1.1.6+dfsg-3) ...
Selecting previously unselected package libpcap0.8:i386.
Preparing to unpack .../libpcap0.8_1.6.2-2_i386.deb ...
Unpacking libpcap0.8:i386 (1.6.2-2) ...
Selecting previously unselected package dhcp-probe.
Preparing to unpack .../dhcp-probe_1.3.0-10.1_i386.deb ...
Unpacking dhcp-probe (1.3.0-10.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libnet1:i386 (1.1.6+dfsg-3) ...
Setting up libpcap0.8:i386 (1.6.2-2) ...
Setting up dhcp-probe (1.3.0-10.1) ...
Creating config file /etc/dhcp-probe/dhcp-probe.eth0 with new version
Creating config file /etc/dhcp-probe/dhcp-probe.eth1 with new version
Creating config file /etc/dhcp_probe.cf with new version
Starting dhcp-probe daemon on interface eth0:
start_daemon - Waiting for an ip on iface eth0, round: 1
waited 1s to get an ip on eth0Waiting for pid file round: 1
Waited 2s to find a eth0 pid file
Done.
Starting dhcp-probe daemon on interface eth1:
start_daemon - Waiting for an ip on iface eth1, round: 1
waited 1s to get an ip on eth1Waiting for pid file round: 1
Waited 2s to find a eth1 pid file
Done.
Processing triggers for libc-bin (2.19-18) ...
jessie:root ~ 6 # rm /etc/dhcp-probe/dhcp-probe.eth1
jessie:root ~ 7 # apt-get purge dhcp-probe
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnet1 libpcap0.8 linux-image-amd64
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
dhcp-probe*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 112 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 22165 files and directories currently installed.)
Removing dhcp-probe (1.3.0-10.1) ...
Stopping dhcp-probe daemon on interface eth0: dhcp-probe.
Purging configuration files for dhcp-probe (1.3.0-10.1) ...
dhcp-probe purge done !
Processing triggers for man-db (2.7.0.2-5) ...
jessie:root ~ 8 # apt-get install dhcp-probe
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-amd64
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
dhcp-probe
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/64.0 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Selecting previously unselected package dhcp-probe.
(Reading database ... 22138 files and directories currently installed.)
Preparing to unpack .../dhcp-probe_1.3.0-10.1_i386.deb ...
Unpacking dhcp-probe (1.3.0-10.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up dhcp-probe (1.3.0-10.1) ...
Creating config file /etc/dhcp-probe/dhcp-probe.eth0 with new version
Not replacing deleted config file /etc/dhcp-probe/dhcp-probe.eth1
Creating config file /etc/dhcp_probe.cf with new version
Starting dhcp-probe daemon on interface eth0:
start_daemon - Waiting for an ip on iface eth0, round: 1
waited 1s to get an ip on eth0Waiting for pid file round: 1
Waited 2s to find a eth0 pid file
Done.
jessie:root ~ 9 #