尝试访问密钥服务器时出现奇怪的错误

时间:2019-01-26 15:47:21

标签: docker ssh

我正在使用一个经过充分测试(https://github.com/bpinaya/robond-docker/blob/master/Dockerfile)的Dockerfile。我已经将其复制并尝试使用以下命令在本地构建:

docker build --rm -f "Dockerfile" -t rosdocker:latest .

它会产生此错误:

Step 4/17 : RUN apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
 ---> Running in 7cd4ab35cbe8
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.FMEeqkram4/gpg.1.sh --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.FMEeqkram4/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
The command '/bin/sh -c apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116' returned a non-zero code: 2

我不愿意尝试安装dirmngr,因为我认为还有其他问题。

0 个答案:

没有答案