Fix pallet api update error and add a package manager update.