upgraded pallet dependency versions and adapted script for ubuntu.