web-dev-qa-db-ja.com

apt-get removeは削除しません

パッケージをインストールしてから削除しても、アプリケーションは引き続き存在します。

$ 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.

なぜdhcpdが残るのですか?

どうすれば実際に削除できますか?

(パージはアプリケーションを削除することもできませんでした(もちろん、少なくとも試してみました)。アプリケーションは以前にインストールされていませんでした。)

1
Gauthier

出力コマンドを見ると、isc-dhcp-serverの代わりにdhcp3-serverがインストールされています。だからあなたがしなければならないのは

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

コマンドSudo apt purge isc-dhcp-serverを使用します

0
Image