Questions tagged [apt-key]

20 questions
114
votes
11 answers

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead

I was installing elasticsearch following this guide, but elasticsearch is not really the part of this question. In the first step, I need to add the key: wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - and got the…
dibery
  • 2,760
  • 4
  • 16
  • 25
21
votes
3 answers

How can I manage keyring files in trusted.gpg.d with ansible playbook since apt-key is deprecated?

Before apt-key was deprecated, I was using Ansible playbooks to add and update keys in my servers. At the moment, apt-key no longer updates the keys. In few searches, I found that I need to use gpg now. However, I have many servers and I don't want…
ecemnaz
  • 311
  • 1
  • 2
  • 3
12
votes
1 answer

apt-key command works on shell but fails on Dockerfile

The following command seems to work when running it in a shell apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF but fails when executed in a Dockerfile as follows: Warning: apt-key output…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
7
votes
1 answer

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

I am trying to use Ubuntu 20 or Ubuntu 22 in Docker. My Dockerfile is: from ubuntu:22.04 run DEBIAN_FRONTEND=noninteractive apt update I build this with docker build .. The result is: Sending build context to Docker daemon 2.048kB Step 1/2 : from…
WikiLover
  • 413
  • 2
  • 8
4
votes
1 answer

apt-key Warning: apt-key output should not be parsed (stdout is not a terminal)

OS: Debian 10 I've tried the solution provided here: How to circumvent "apt-key output should not be parsed"? this: APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn - didn't work. Then I tried to do: DOCKER_GPG="9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C…
jodobear
  • 51
  • 1
  • 6
3
votes
4 answers

W: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details

I have installed gazebo on my ubuntu 22.04 LTS following the steps in https://classic.gazebosim.org/tutorials?tut=install_ubuntu via their alternative installation. I am getting the following error when I try to update the packages using sudo apt…
Jishnu
  • 151
  • 1
  • 2
  • 12
3
votes
1 answer

Trying to replace apt_key in Ansible playbook

I have a working playbook to create a Ubuntu 20.04 VPS and then install a load of software including Docker. I am trying to use it for a Ubuntu 22.04 VPS. It does work, but when using APT, I get warnings that "Key is stored in legacy trusted.gpg…
devra
  • 63
  • 7
3
votes
1 answer

W: GPG error: Unknown error executing apt-key

While running "sudo apt-get update", I getting below error: Err:1 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease Unknown error…
3
votes
2 answers

Error occurring during the signature verification of apt-get update

I follow official docker instructions to install docker on ubuntu 18.04 LTS from https://docs.docker.com/install/linux/docker-ce/ubuntu/ Using the setting up repository I ran: sudo apt-get install \ apt-transport-https \ ca-certificates \ …
marc
  • 365
  • 1
  • 2
  • 10
2
votes
1 answer

What commands (exactly) should replace the deprecated apt-key?

I am trying to set up Kubernetes in my instance on a ubuntu 22.04 virtual machine. While in the installation process i am trying to add a gpg key for intra cluster communication. After running the command: sudo curl -s…
Moni 93
  • 23
  • 1
  • 5
1
vote
1 answer

Puppet unable to fetch gpg key

I am automating the following task with puppet https://www.getenvoy.io/install/envoy/ubuntu/ curl -sL 'https://getenvoy.io/gpg' | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://dl.bintray.com/tetrate/getenvoy-deb…
spuder
  • 17,437
  • 19
  • 87
  • 153
1
vote
0 answers

Can't import the MongoDB public GPG Key : "Connection timed out"

I am trying to install mongodb on Ubuntu 18.04.1 LTS. I am stuck on the very first step: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 Gives me the following error message: Executing:…
jast17
  • 11
  • 3
0
votes
0 answers

NO_PUBKEY after sudo apt update

I wanted to update my repos on Raspbian server on which I have installed OMV and Jellyfin but I still get this error: Err:6 http://httpredir.debian.org/debian bullseye-backports InRelease The following signatures couldn't be verified because the…
furtake
  • 9
  • 2
0
votes
0 answers

gpg: no valid OpenPGP - https://pkg.cloudflare.com/ [FAILED]

I am trying to add a repository CloudFlare,through this manual. curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add - I am met with the following error: gpg: no valid OpenPGP data found. How to fix this problem?
0
votes
0 answers

Problem with apt-key in Microsoft ODBC driver installation for Ubuntu?

These commands are pulled from this site: https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16#ubuntu18 sudo su curl https://packages.microsoft.com/keys/microsoft.asc…
ceej pie
  • 105
  • 1
  • 8
1
2