Package: dpkg
Version: 1.22.22
Severity: normal

When doing `apt purge', apt runs `dpkg --set-selections' as one of the
steps.  And during this step, dpkg updates some fields of installed
packages from its `available' database.

On one of my machines where this issue has been found, the file
/var/lib/dpkg/available seems to has been created during initial
install, and never updated.  It contains information about packages
which were available back in 2015.  And `dpkg --set-selections'
updates some info about installed packages from this file.  For
example, it "fixed" Priority for e2fsprogs from optional to
required, changed libcap2 priority from optional to standard,
changed tzdata section from localization to libs and so on -
more than 50 changes in total.  Obviously this is all wrong now
for current packages, but it was correct back 11 years ago.

Apparently we shoud decide whenever we should keep this file
up to date, or drop it.  But doing it this way is wrong.

Thanks,

/mjt

Reply via email to