Run apt in noninteractive mode in custom scripts