sam bootstrap update apt and fix the state if needed