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