This can be refactored to use `apt_key_exists`, to avoid code duplication.