[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#34223: APT removes essential packages.

Package: apt
Version: slink
Severity: grave

APT lets the user to remove an essential package.
This is Very Bad(TM).

Packages having the essential flag should be difficult to remove,
by definition. Asking the user a simple Yes/No question is *extremely*
dangerous, even if the default answer is No.

I found this in the packaging manual:

                     Debian packaging manual - chapter 13
                dselect's interface to its installation methods


   The install script should feed all the available .deb files to dpkg
   --iGOEB (this is equivalent to dpkg --install --refuse-downgrade
   --selected-only --skip-same-version --auto-deconfigure). The -R
   (--recursive) option for traversing subdirectories may also be useful

As far as I know, APT does not do this.

This would not bad by itself (other than being a "simple breakage of
policy") if it weren't because what apt does has not the *same* effect as
doing what policy says it should do.

Since one of the APT goals is to do package ordering, policy should be
amended, of course, so that the install script is not forced to do
"dpkg --iGOEB" literally.

However, doing dpkg --iGOEB does not remove any essential packages, and
for this reason, apt should not do it either.


 "76074cf1cb41f64a2cae2220899043b8" (a truly random sig)

Reply to: