Explicit check of return code for autoinstallation of python-apt added

This will allow easier debugging through more meaningful error message.
Merge pull request #7094 from radeksimko/apt-autoinstall-fix

Add check of return code for autoinstallation of python-apt