LXC + Ubuntu 18.04: âUnable to fetch GPG key from keyserverâ when trying to create a new container
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:
> lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
Error creating container test
Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?
Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.
Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.
So the question remains - any pointers in how to resolve the issue?
18.04 lxc container
add a comment |Â
up vote
0
down vote
favorite
I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:
> lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
Error creating container test
Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?
Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.
Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.
So the question remains - any pointers in how to resolve the issue?
18.04 lxc container
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:
> lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
Error creating container test
Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?
Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.
Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.
So the question remains - any pointers in how to resolve the issue?
18.04 lxc container
I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:
> lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
Error creating container test
Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?
Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.
Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.
So the question remains - any pointers in how to resolve the issue?
18.04 lxc container
edited May 15 at 5:06
asked May 12 at 22:36
![](https://i.stack.imgur.com/w4oA3.jpg?s=32&g=1)
![](https://i.stack.imgur.com/w4oA3.jpg?s=32&g=1)
voytech
12
12
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
It is weird that it says
lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
create container from template
It should not be saying kde there. That part should be empty.
You are using LXC
, while it is much more user-friendly to use LXD
.
Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It is weird that it says
lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
create container from template
It should not be saying kde there. That part should be empty.
You are using LXC
, while it is much more user-friendly to use LXD
.
Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24
add a comment |Â
up vote
0
down vote
It is weird that it says
lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
create container from template
It should not be saying kde there. That part should be empty.
You are using LXC
, while it is much more user-friendly to use LXD
.
Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24
add a comment |Â
up vote
0
down vote
up vote
0
down vote
It is weird that it says
lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
create container from template
It should not be saying kde there. That part should be empty.
You are using LXC
, while it is much more user-friendly to use LXD
.
Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24
It is weird that it says
lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
create container from template
It should not be saying kde there. That part should be empty.
You are using LXC
, while it is much more user-friendly to use LXD
.
Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24
answered May 13 at 19:48
Simos
1375
1375
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035504%2flxc-ubuntu-18-04-unable-to-fetch-gpg-key-from-keyserver-when-trying-to-crea%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password