#4869 compatibility with older versions of apt
Merge pull request #4872 from timurbatyrshin/4869-old-python-apt-fix

 #4869 compatibility with older versions of apt