Skip to content

apt-key is deprecated for key usage on debian and ubuntu #1106

Open
@aqueos

Description

@aqueos

## Describe the Bug

apt::key use tha apt-key command which is deprecated

https://manpages.debian.org/bullseye/apt/apt-key.8.fr.html

NAME
apt-key - Deprecated APT key management utility

## Expected Behavior

The module should put keys in

/etc/apt/trusted.gpg.d/${name}.gpg

## Steps to Reproduce

Use apt::key in any modern debian and you will got the error:
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

each time you use apt.

## Environment

  • Version debian 10+, ubuntu 22.04+
  • Platform all the debian familly

Additional Context

as apt-key is deprecated the module should add the keys in /etc/apt/trusted.gpg.d
and not anymore use the debian deprecated utility apt-key.

best regards,
Ghislain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions