def _add_apt_gpg_keys():
    """Adds GPG keys from all repositories
    """
    env.logger.info("Update GPG keys for repositories")
    standalone = [
        "http://archive.cloudera.com/debian/archive.key",
        'http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc',
        'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
    ]
    keyserver = [
            ("keyserver.ubuntu.com", "7F0CEB10"),
            ("keyserver.ubuntu.com", "E084DAB9"),
            ("keyserver.ubuntu.com", "D018A4CE"),
            ("keyserver.ubuntu.com", "D67FC6EAE2A11821"),
        ]
    standalone, keyserver = env.flavor.rewrite_apt_keys(standalone, keyserver)
    for key in standalone:
        with settings(warn_only=True):
            env.safe_sudo("wget -q -O- %s | apt-key add -" % key)
    for url, key in keyserver:
        with settings(warn_only=True):
            env.safe_sudo("apt-key adv --keyserver %s --recv %s" % (url, key))
    with settings(warn_only=True):
        env.safe_sudo("apt-get update")
        env.safe_sudo("sudo apt-get install -y --force-yes bio-linux-keyring")
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/package/deb.py/_add_apt_gpg_keys/original