web-dev-qa-db-fra.com

apt-get remove ne supprime pas

Après avoir installé, puis supprimé un paquet, l'application est toujours présente:

$ Sudo apt-get install dhcp3-server

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'isc-dhcp-server' instead of 'dhcp3-server'
The following packages were automatically installed and are no longer required:
  libindicate-gtk3 libindicate5 python-gst0.10 python-indicate
  python-twisted-words
Use 'apt-get autoremove' to remove them.
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  isc-dhcp-server
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 762 kB of archives.
After this operation, 2,138 kB of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu/ trusty/main isc-dhcp-server AMD64 4.2.4-7ubuntu12 [762 kB]
Fetched 762 kB in 0s (3,544 kB/s)       
Preconfiguring packages ...
Selecting previously unselected package isc-dhcp-server.
(Reading database ... 437078 files and directories currently installed.)
Preparing to unpack .../isc-dhcp-server_4.2.4-7ubuntu12_AMD64.deb ...
Unpacking isc-dhcp-server (4.2.4-7ubuntu12) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up isc-dhcp-server (4.2.4-7ubuntu12) ...
Generating /etc/default/isc-dhcp-server...
isc-dhcp-server start/running, process 18678
isc-dhcp-server6 stop/pre-start, process 18732
Processing triggers for ureadahead (0.100.0-16) ...


$ Sudo apt-get remove dhcp3-server

[Sudo] password for gauthier: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'isc-dhcp-server' instead of 'dhcp3-server'
The following packages were automatically installed and are no longer required:
  libindicate-gtk3 libindicate5 python-gst0.10 python-indicate
  python-twisted-words
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


$ dhcpd

Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
unable to create icmp socket: Operation not permitted
Can't open /var/lib/dhcp/dhcpd.leases for append.

Pourquoi dhcpd reste-t-il?

Comment puis-je l'enlever pour de vrai?

(Purge n'a pas réussi non plus à supprimer l'application (bien sûr, mais au moins j'ai essayé). L'application n'était pas installée auparavant.)

1
Gauthier

si vous regardez la commande de sortie, vous avez installé isc-dhcp-server au lieu de dhcp3-server. Donc tout ce que vous avez à faire est

Sudo apt-get remove isc-dhcp-server
4
AlexGreg

utilisez la commande Sudo apt purge isc-dhcp-server

0
Image