Added retry to update operation

Sometimes I'll get transient DNS or HTTP errors when `apt-get update` runs. This is an attempt to compensate for these errors.