Update 12.04 logic to handle outdated apt cache on distro
Merge pull request #265