Skip to content

fix apt-key is not available in newer debian/ubuntu #130

@fwilhe2

Description

@fwilhe2

apt-key(8) will last be available in Debian 12 and Ubuntu 24.04.

https://manpages.debian.org/unstable/apt/apt-key.8.en.html

ubuntu:devel:

   TASK [iesplin.vscode : Add Microsoft signing key] ******************************
  task path: /home/user/roles/iesplin.vscode/tasks/setup-debian-repo.yml:13
  fatal: [localhost]: FAILED! => changed=false 
    msg: 'Failed to find required executable "apt-key" in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
  

debian:testing:

   TASK [docker : Add Docker apt key] *********************************************
  task path: /home/user/roles/docker/tasks/deb.yml:33
  fatal: [localhost]: FAILED! => changed=false 
    cmd: |-
      set -o pipefail
      curl -sSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    delta: '0:00:00.071039'
    end: '2024-12-31 19:18:48.449314'
    msg: non-zero return code
    rc: 127
    start: '2024-12-31 19:18:48.378275'
    stderr: '/bin/bash: line 2: apt-key: command not found'
    stderr_lines: <omitted>
    stdout: ''
    stdout_lines: <omitted>
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions