Update the GPG key for Treasure Agent

Hi folks,

This article is for Treasure Agent users.

We used SHA1 based GPG key for td-agent package signing, but SHA1 has beed deprecated. For example, apt will remove SHA1 support: Teams/Apt/Sha1Removal - Debian Wiki

So we have updated Treasure Agent's GPG key for deb/rpm to drop SHA1 based signing. It means you need to update imported old GPG key before td-agent update.

If new deployment or if you disable gpg check, no need update action.

Here is an update steps for deb/rpm.


Remove old GPG key

% apt-key del A12E206F

Import new GPG key

% curl -O https://packages.treasuredata.com/GPG-KEY-td-agent
% apt-key add GPG-KEY-td-agent

You can check imported is succeeded or not.

% apt-key list

Error content

Here is error example with old GPG key

W: GPG error: http://packages.treasuredata.com/2/ubuntu/xenial xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 901F9177AB97ACBE


Remove old GPG key

If you found this key in rpm, remove it by following command:

% rpm -e --allmatches "gpg-pubkey-a12e206f-*"

Imoprt new GPG key

Import by rpm import

% rpm --import https://packages.treasuredata.com/GPG-KEY-td-agent

You can check imported is succeeded or not.

% rpm -qi "gpg-pubkey-ab97acbe-*"

Error content

Here is error example with old GPG key

The GPG keys listed for the "TreasureData" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.

 Failing package is: td-agent-2.3.4-0.el7.x86_64
 GPG Keys are configured as: https://packages.treasuredata.com/GPG-KEY-td-agent

Old GPG key

If you need old GPG key for older packages, use following key:


Subscribed to the RSS feed here.

Written by Masahiro Nakagawa

Masahiro (@repeatedly) is the main maintainer of Fluentd. He works on Fluentd development and support full-time. He is also a committer of the D programming language.

About Fluentd

Fluentd is an open source data collector to unify log management.


Want to learn the basics of Fluentd? Check out these pages.

Ask the Community

Couldn't find enough information? Let's ask the community!

Ask the Experts

You need commercial-grade support from Fluentd committers and experts?

Follow Us!