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

Bug#855891: upgrade removes packages



severity 855891 wishlist
retitle 855891 Ignore APT::Get::AutomaticRemove during "upgrade"
tags 855891 confirmed
kthxbye

also sprach David Kalnischkies <david@kalnischkies.de> [2017-02-23 17:10 +1300]:
> 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).

No, I did not upgrade apt-get before I ran apt-get upgrade.
I realise now this might make sense in the future ;)

> > APT::Get::AutomaticRemove "true";
> 
> Non-default option and most likely culprit.

It is. I am sorry that I didn't think of that myself. I do have
plenty other systems that are mostly equivalent, and I used one of
them now to figure out that in fact, if this setting is commented
out, then instead the output is

  Calculating upgrade... The following packages were automatically
  installed and are no longer required:
    libasprintf0c2 libjs-jquery libperl4-corelibs-perl libuuid-perl
  Use 'apt-get autoremove' to remove them.

I've not actually been able to get ifupdown back into this list, but
I am willing to assume that this is the cause of the problem I saw.

> 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".

I am unsure what is right and what is wrong here. In some ways I'd
like to say that "upgrade" should still not touch the package set,
but I also did give it permission to remove packages. However, as
you point out, the manpage does limit this to install/remove.

So I've turned this into a wishlist bug to actually implement this
behaviour.


Just tying up loose ends heretoforth

> > Acquire::PDiffs "false";
> 
> Completely unrelated, but reconsider now that you have upgraded.

Noted.

> > -- /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.

Nah, my automation scripts simply removed the backports repo when
they switched the system to stretch, while stretch is still
"testing" and hence backports don't exist.

-- 
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Reply to: