Upgrade correctly on debian-based systems