Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fetching key E1F958385BFE2B6E from keyserver: keys.gnupg.net #1

Open
semla opened this issue Mar 11, 2022 · 1 comment
Open

Comments

@semla
Copy link

semla commented Mar 11, 2022

I am getting the error below:

TASK [x2go : apt_key] *******************************************************************************************************************************************************
task path: /home/user/.ansible/roles/x2go/tasks/add-repo.yml:13
fatal: [root@xxx.xx.xx.xxx]: FAILED! => {
    "changed": false,
    "cmd": "/usr/bin/apt-key adv --no-tty --keyserver keys.gnupg.net --recv E1F958385BFE2B6E",
    "forced_environment": {
        "LANG": "C",
        "LC_ALL": "C",
        "LC_MESSAGES": "C"
    },
    "invocation": {
        "module_args": {
            "data": null,
            "file": null,
            "id": "E1F958385BFE2B6E",
            "key": null,
            "keyring": null,
            "keyserver": "keys.gnupg.net",
            "state": "present",
            "url": null,
            "validate_certs": true
        }
    },
    "msg": "Error fetching key E1F958385BFE2B6E from keyserver: keys.gnupg.net",
    "rc": 2,
    "stderr": "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).\ngpg: keyserver receive failed: Server indicated a failure\n",
    "stderr_lines": [
        "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).",
        "gpg: keyserver receive failed: Server indicated a failure"
    ],
    "stdout": "Executing: /tmp/apt-key-gpghome.uCGF8qmvIk/gpg.1.sh --no-tty --keyserver keys.gnupg.net --recv E1F958385BFE2B6E\n",
    "stdout_lines": [
        "Executing: /tmp/apt-key-gpghome.uCGF8qmvIk/gpg.1.sh --no-tty --keyserver keys.gnupg.net --recv E1F958385BFE2B6E"
    ]
}

@don-rumata
Copy link
Owner

don-rumata commented Mar 11, 2022

Try changing the file /home/user/.ansible/roles/x2go/tasks/add-repo.yml:

v1:

    - apt_key:
        # keyserver: keys.gnupg.net
        # id: E1F958385BFE2B6E
        url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x972fd88fa0bafb578d0476dfe1f958385bfe2b6e
        state: present

v2:

    - apt_key:
        keyserver: keyserver.ubuntu.com
        id: E1F958385BFE2B6E
        state: present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants