As I said, simply adding --no-guess-python to ORPHANOPTS does take care of the immediate problem of wanting to delete deluge, but in exchange, it opens up a potential can of worms when there is a python package that is indeed an orphan, which would then not be deleted by upgrade-system.
So, for the time being, I will "err on the side of caution" and add --no-guess-python to ORPHANOPTS. If upgrade-system is as a result less zealous about deleting orphan packages, so be it. I can live with that. If someone wants to track down the underlying cause of deborphan's dislike for python-cffi-backend, I'll be happy to help in any way I can. Rick On Sun, Dec 27, 2020, at 1:02 PM, Martin-Éric Racine wrote: > Right, so in that case, there is no bug in upgrade-system. > > The backend 'deborphan --guess-all' simply makes broad assumptions > about what is superflous libraries and, for some reason, it considers > python-cffi-backend as superflous as explained in bug #918755. > > In your case, the solution indeed is to add --no-guess-python to ORPHANOPTS. > > Martin-Éric