Comment 0 for bug 103881

Revision history for this message
Scott Kitterman (kitterman) wrote : apt-get remove does not actually require a "Y" to remove packages

Binary package hint: apt

In Feisty when removing unwanted packages, apt-get asks for confirmation (Y/n) and then proceeds to remove even if the response is not Y. In this case I just hit carriage return. The confirmation should fail unless Y is provided.

$ sudo apt-get remove bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.20-13-generic linux-headers-2.6.20-13
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 807kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 132838 files and directories currently installed.)
Removing bind9 ...
 * Stopping domain name service... bind