Add base apt class if not defined and remove unnecessary required_packages paramter