fix breakage introduced in apt 2.5.0

here's a proposed fix for issue #84