def METHOD_NAME(self, *, key: str) -> None:
    """Install given key.
    :param key: Key to install.
    :raises: AptGPGKeyInstallError if unable to install key.
    """
    cmd = [
        "sudo",
        "apt-key",
        "--keyring",
        str(self._gpg_keyring),
        "add",
        "-",
    ]
    try:
        logger.debug(f"Executing: {cmd!r}")
        env = dict()
        env["LANG"] = "C.UTF-8"
        subprocess.run(
            cmd,
            input=key.encode(),
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            check=True,
            env=env,
        )
    except subprocess.CalledProcessError as error:
        raise errors.AptGPGKeyInstallError(output=error.output.decode(), key=key)
    logger.debug(f"Installed apt repository key:\n{key}")