Skip to main content

convert-trusted-gpg

This tool read the APT key store's single file and creates multiple files, one for each key.

Doing this will prevent the deprecation warning when running apt update

W: https://example.com/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

The tool accomplishes this by

  1. Reading all the keys inside the /etc/apt/trusted.gpg file
  2. For each key, if that key doesn't exist in its own file in /etc/apt/trusted.gpg.d/, the tool creates a new file in the trusted.gpg.d directory containing the key

The tool bases the new file's filename on the name and email address of the key.

The tool assumes that apt version >=1.4 is installed which supports ASCII armored keys with an .asc extension instead of binary keys with a .gpg extension.

Usage

sudo convert-trusted-gpg

Example output

Skipping 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A as it already exists in /etc/apt/trusted.gpg.d/
Skipping 37C84554E7E0A261E4F76E1ED26E6ED000654A3E as it already exists in /etc/apt/trusted.gpg.d/
Creating /etc/apt/trusted.gpg.d/WineHQ_packages_wine-develwinehq.org.asc
Creating /etc/apt/trusted.gpg.d/NodeSource_gpgnodesource.com.asc

Metadata

Release files for convert-trusted-gpg 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convert-trusted-gpg 1.0.0
File Size Uploaded Provenance
convert_trusted_gpg-1.0.0.tar.gz 16.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for convert-trusted-gpg 1.0.0
File Interpreter ABI Platform
convert_trusted_gpg-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.6 kB

Release files / convert_trusted_gpg-1.0.0.tar.gz

Download URL convert_trusted_gpg-1.0.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e2aa658b8cd7add18f11f3db076f7cf3dc387dfc4caa45947ac8469c8b42a009
BLAKE2b-256 checksum
How to use checksums
74e78d3dc76754178aa6bd264a923551c421f64ed37b219d9b078c6050206970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release files / convert_trusted_gpg-1.0.0-py3-none-any.whl

Download URL convert_trusted_gpg-1.0.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48bcea5514e20a78717fedba8a07f5e84a1a7730b77d231f73b6f9531e99d9d2
BLAKE2b-256 checksum
How to use checksums
29b73922c8d25318fe33a902263f97ae32e46a01bc897c349fb11fbb18bb314e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Security for convert-trusted-gpg 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page