Fixing apt-get upgrade on unsupported Linux versions

Follow