Update packages before installing dependencies