docker-ubuntu-systemd icon indicating copy to clipboard operation
docker-ubuntu-systemd copied to clipboard

gpg invalid keyring

Open janArb opened this issue 10 months ago • 1 comments

Hi, I use your docker container latest and cannot import gpg keys. Any idea how this could be connected to systemd integration? In normal Ubuntu VM this is working:

sudo /usr/bin/apt-key adv --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv B1998361219BD9C9
Executing: /tmp/apt-key-gpghome.TZfrFmVS9y/gpg.1.sh --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv B1998361219BD9C9
gpg: CRC error; 00C451 - 687B25
gpg: read_block: read error: Invalid keyring
gpg: Total number processed: 0

I found several solutions involving network issues. However this was working before ubuntu removed systemd from the ubuntu containers and I guess this must be connected to the systemd installation.

janArb avatar Apr 16 '24 15:04 janArb

Hi @janArb , have you already tried with ?

apt update && apt install -y dirmngr

then your gpg import:

sudo /usr/bin/apt-key adv --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv B1998361219BD9C9

eniocarboni avatar Apr 19 '24 07:04 eniocarboni