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

Bug#855891: upgrade removes packages



On Thu, Feb 23, 2017 at 11:17:44AM +1300, martin f krafft wrote:
> However, libperl4-corelibs-perl was also removed during the
> "upgrade", and that exists in the previous dpkg.status backup:

Does

apt-get upgrade -s \
  -o Dir::state::status=/path/to/backup/dpkg.status \
  -o Dir::state::extended_states=/path/to/backup/apt.extended_states

show an upgrade involving removals? (No worries if the files are
compressed, apt can uncompress them on the fly – and as that is
a simulation run feel free to run it as user, not as root)


I take it that by now you have upgraded to apt/stretch while your bug
was with apt/jessie? Or did you upgrade apt before that upgrade (in the
same run doesn't count as before).


> APT::Get::AutomaticRemove "true";

Non-default option and most likely culprit. Haven't looked at the code
yet as it gets too … early for that, but I have my doubts that the code
is as limited as the manpage makes it sound with "If the command is
either install or remove".

As such, if the apt command from above has the removal behaviour, try
with --no-autoremove to see if that is all there is to it.

If that is a previously undocumented old feature or a "new" regression
we will see after blame/history digging later. Either way, that is
going to be "fun" to change without changing anything.


> Acquire::PDiffs "false";

Completely unrelated, but reconsider now that you have upgraded.


> -- /etc/apt/sources.list --

mhhh. That file doesn't include the backports.org source you mentioned
earlier. I take it that you have dropped:

> # Put local repository definitions into /etc/apt/sources.list.d/local-*

It would be a good idea to make a note about that next time.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: