complete auto update code for ubuntu images