#4869 compatibility with older versions of apt