我试图启动lxc容器。但当我给
sudo lxc-create -t download ubuntu -n web1它显示了这个错误。
错误:无法从keyserver获取GPG密钥
如何解决这个问题?
发布于 2022-04-24 21:36:41
尽管我尝试了以上所有的方法,但它们都没有起作用,而且我一直在用。
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: priv-cont: lxccontainer.c: create_run_template: 1616 Failed to create container from template
lxc-create: priv-cont: tools/lxc_create.c: main: 319 Failed to create container priv-cont所以,这里我找到了标志--不验证选项,注意,这是不安全的,但对我的学习过程有效。执行如下:DOWNLOAD_KEYSERVER="keyserver.ubuntu.com" sudo lxc-create --template download --name priv-cont -- --no-validate
发布于 2022-08-16 13:31:03
就像@starbeam彩虹实验室说的那样,使用旗子--keyserver hkps://keyserver.ubuntu.com。注意协议字符串末尾的"s“。没有它它就不再起作用..。
完整的工作示例:
lxc-create -n mycontainer -t download -- -d debian -r bullseye -a amd64 --keyserver hkps://keyserver.ubuntu.com
https://askubuntu.com/questions/1355969
复制相似问题