try to install packages with ensure_resource