Hi,
You will find all command with their result lower in this mail...

Install of dhcp-probe package :
-----------------------------------------

# aptitude install dhcp-probe
Les NOUVEAUX paquets suivants vont être installés :     
  dhcp-probe 
0 paquets mis à jour, 1 nouvellement installés, 0 à enlever et 3 non mis
à jour.
Il est nécessaire de télécharger 64,0 ko d'archives. Après dépaquetage,
112 ko seront utilisés.
Prendre :  1 http://ftp.fr.debian.org/debian/ stable/main dhcp-probe
i386 1.3.0-10.1 [64,0 kB]
64,0 ko téléchargés en 0s (389 ko/s)
Sélection du paquet dhcp-probe précédemment désélectionné.
(Lecture de la base de données... 391226 fichiers et répertoires déjà
installés.)
Préparation du dépaquetage de .../dhcp-probe_1.3.0-10.1_i386.deb ...
Dépaquetage de dhcp-probe (1.3.0-10.1) ...
Traitement des actions différées (« triggers ») pour systemd
(215-17) ...
Traitement des actions différées (« triggers ») pour man-db
(2.7.0.2-5) ...
Paramétrage de 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.wlan0 with new version

Creating config file /etc/dhcp_probe.cf with new version
Traitement des actions différées (« triggers ») pour systemd
(215-17) ...





Result in /etc/dhcp-probe directory
---------------------------------------------

# ls /etc/dhcp-probe/
dhcp-probe.eth0  dhcp-probe.wlan0



Removing dhcp-probe package :
------------------------------------------

# aptitude remove dhcp-probe
Les paquets suivants seront ENLEVÉS :                   
  dhcp-probe 
0 paquets mis à jour, 0 nouvellement installés, 1 à enlever et 3 non mis
à jour.
Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 112
ko seront libérés.
(Lecture de la base de données... 391244 fichiers et répertoires déjà
installés.)
Suppression de dhcp-probe (1.3.0-10.1) ...
Traitement des actions différées (« triggers ») pour man-db
(2.7.0.2-5) ...



State in /etc/dhcp-probe directory :
---------------------------------------------

# ls /etc/dhcp-probe/
dhcp-probe.eth0  dhcp-probe.wlan0




Purging dhcp-probe package :
---------------------------------------

# aptitude purge dhcp-probe
Les paquets suivants seront ENLEVÉS :                   
  dhcp-probe{p} 
0 paquets mis à jour, 0 nouvellement installés, 1 à enlever et 3 non mis
à jour.
Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o
seront utilisés.
Voulez-vous continuer ? [Y/n/?] 
(Lecture de la base de données... 391220 fichiers et répertoires déjà
installés.)
Suppression de dhcp-probe (1.3.0-10.1) ...
Purge des fichiers de configuration de dhcp-probe (1.3.0-10.1) ...
dhcp-probe purge done !



Reinstall the dhcp-probe package :
---------------------------------------------

# aptitude install dhcp-probe
Les NOUVEAUX paquets suivants vont être installés :     
  dhcp-probe 
0 paquets mis à jour, 1 nouvellement installés, 0 à enlever et 3 non mis
à jour.
Il est nécessaire de télécharger 0 o/64,0 ko d'archives. Après
dépaquetage, 112 ko seront utilisés.
Sélection du paquet dhcp-probe précédemment désélectionné.
(Lecture de la base de données... 391226 fichiers et répertoires déjà
installés.)
Préparation du dépaquetage de .../dhcp-probe_1.3.0-10.1_i386.deb ...
Dépaquetage de dhcp-probe (1.3.0-10.1) ...
Traitement des actions différées (« triggers ») pour systemd
(215-17) ...
Traitement des actions différées (« triggers ») pour man-db
(2.7.0.2-5) ...
Paramétrage de 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.wlan0 with new version

Creating config file /etc/dhcp_probe.cf with new version
Traitement des actions différées (« triggers ») pour systemd
(215-17) ...



It seems that there are no problem on my laptop. I will go futher in my
investigations to solve the problem.
I will investigate in removing/purging scripts. I don't think the
problem lies in the architecture (i386 / amd64)

Best regards,
Laurent



-------- Message initial --------De: Rogier <[email protected]>
Reply-to: Rogier <[email protected]>, [email protected]
À: Laurent Guignard <[email protected]>
Cc: [email protected]
Objet: Bug#661795: dhcp-probe: deleted conffiles not purged from ucf in
postrm script
Date: Fri, 24 Apr 2015 10:01:33 +0200



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 # 

 

 


Reply via email to