docker-ubuntu-systemd
docker-ubuntu-systemd copied to clipboard
gpg invalid keyring
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.
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