Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Error fetching because apt-key is deprecated on Ubuntu 22.04 jammy #18

@markfickett

Description

@markfickett

I tried installing using this role. I installed the role with ansible-galaxy install humio.java.

I'm on Ubuntu:

$ lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy

The error was:

"Error fetching key 27BC0C8CB3D81623F59BDADCB1998361219BD9C9 from keyserver: keyserver.ubuntu.com", "rc": 1, "stderr": "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).\ngpg: key B1998361219BD9C9: public key "Azul Systems, Inc. (Package signing key.)

A pattern for solving a similar problem is like this:

       - name: Add OpenHab GPG key
         ansible.builtin.get_url:
           url: https://openhab.jfrog.io/artifactory/api/gpg/key/public
           dest: /etc/apt/trusted.gpg.d/openhab.asc
       - name: Add OpenHab apt source
         ansible.builtin.apt_repository:
           repo: "deb [signed-by=/etc/apt/trusted.gpg.d/openhab.asc] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main"
           state: present
       - name: Install OpenHab apt package
         ansible.builtin.apt:
           # Setting update_cache: yes does not seem necessary; apt_repository may take care of it.
           # This install also sets up an openhab user.
           name: openhab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions