Update apt-get repos before doing installations in system update script and proper checksumming