Added package manager update and fail if unsuccessful