further compatibility with older versions of python-apt (#5853)