Update upgrade playbook to remove unused packages

This also changes the upgrade mode to dist as we would otherwise depend
on aptitude being installed.