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

Bug#583517: autoremove wants to remove insserv then discovers it can't



tags 583517 + pending
thanks

2010/5/28 peter green <plugwash@p10link.net>:
> David Kalnischkies wrote:
>> Could you attach the following files (from your chroot) for easier
>> reproduction please?
>> /var/lib/apt/extended_states
>> /var/lib/dpkg/status
>
> Sure

Thanks for your off-list reply!

>> But the first thing i see is that sysv-rc is priority 'required' and
>> depends
>> on insserv which is only 'optional'. That is normally not allowed.
>> Maybe this is confusing the autotremover… (but it should not).

My first tip was already correct, APT assumes that a required
package conforms to the debian policy §2.5.
> Packages must not depend on packages with lower priority
> values (excluding build-time dependencies).
> In order to ensure this, the priorities of one or more packages
> may need to be adjusted.
(Is already reported as #551745 against insserv)

APT didn't do his mark operation on required packages
as it later in the process just skips required packages - with the
assumption that a required package can only depend on required
packages so all will be skipped and nothing can break.

That is a good assumption, but as it doesn't hurt to much to
be a bit nicer APT will in the future simply run the mark
also for required packages. :)


Thanks again for your report & best regards,

David Kalnischkies

Attachment: mark-also-required-packages.diff
Description: Binary data


Reply to: