netplan error line 1 column 8
up vote
0
down vote
favorite
Hi I have a problem with ubuntu 18.04. I need edit this file
/etc/netplan/50-cloud-init.yaml
But when I use netplan apply
see error linie 0 kolumn 8 this is ":".
#
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
adresses: [192.168.16.186/24]
dhcp4: no
dhcp6: no
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
$ sudo netplan apply
Error in network definition //etc/netplan/50-cloud-init.yaml line 1 column 8: expected mapping
Please help :)
server 18.04
add a comment |
up vote
0
down vote
favorite
Hi I have a problem with ubuntu 18.04. I need edit this file
/etc/netplan/50-cloud-init.yaml
But when I use netplan apply
see error linie 0 kolumn 8 this is ":".
#
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
adresses: [192.168.16.186/24]
dhcp4: no
dhcp6: no
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
$ sudo netplan apply
Error in network definition //etc/netplan/50-cloud-init.yaml line 1 column 8: expected mapping
Please help :)
server 18.04
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Hi I have a problem with ubuntu 18.04. I need edit this file
/etc/netplan/50-cloud-init.yaml
But when I use netplan apply
see error linie 0 kolumn 8 this is ":".
#
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
adresses: [192.168.16.186/24]
dhcp4: no
dhcp6: no
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
$ sudo netplan apply
Error in network definition //etc/netplan/50-cloud-init.yaml line 1 column 8: expected mapping
Please help :)
server 18.04
Hi I have a problem with ubuntu 18.04. I need edit this file
/etc/netplan/50-cloud-init.yaml
But when I use netplan apply
see error linie 0 kolumn 8 this is ":".
#
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
adresses: [192.168.16.186/24]
dhcp4: no
dhcp6: no
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
$ sudo netplan apply
Error in network definition //etc/netplan/50-cloud-init.yaml line 1 column 8: expected mapping
Please help :)
server 18.04
server 18.04
edited Nov 25 at 15:43
PerlDuck
4,88911230
4,88911230
asked Nov 25 at 9:25
Przemysław Krawiec
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
my file looks like
network:
ethernets:
enp2so:
addresses: [192.168.1.1/24]
dhcp4: no
version: 2
Replace enp2so
with your network adapter name(enp0so3) you could try that
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
|
show 1 more comment
up vote
2
down vote
You MUST retain indentation.
Here is probably what your .yaml file should look like...
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.16.186/24]
gateway4: 192.168.16.1
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
Then, in terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply current configuration
reboot
# reboot the system
Note: see https://netplan.io/examples for more examples
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
my file looks like
network:
ethernets:
enp2so:
addresses: [192.168.1.1/24]
dhcp4: no
version: 2
Replace enp2so
with your network adapter name(enp0so3) you could try that
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
|
show 1 more comment
up vote
2
down vote
my file looks like
network:
ethernets:
enp2so:
addresses: [192.168.1.1/24]
dhcp4: no
version: 2
Replace enp2so
with your network adapter name(enp0so3) you could try that
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
|
show 1 more comment
up vote
2
down vote
up vote
2
down vote
my file looks like
network:
ethernets:
enp2so:
addresses: [192.168.1.1/24]
dhcp4: no
version: 2
Replace enp2so
with your network adapter name(enp0so3) you could try that
my file looks like
network:
ethernets:
enp2so:
addresses: [192.168.1.1/24]
dhcp4: no
version: 2
Replace enp2so
with your network adapter name(enp0so3) you could try that
answered Nov 25 at 9:48
N. Phip
213
213
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
|
show 1 more comment
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
this same linie 0 kolumn 8 :/
– Przemysław Krawiec
Nov 25 at 9:59
2
2
have you used indentation?
– N. Phip
Nov 25 at 9:59
have you used indentation?
– N. Phip
Nov 25 at 9:59
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
No I don't use indentation. This is truth is a new contribution but for me beter will be old.
– Przemysław Krawiec
Nov 25 at 12:39
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
I give Tab but now I have error 0 line 0 colum :/
– Przemysław Krawiec
Nov 25 at 12:44
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
[link] (<a href="fotosik.pl/zdjecie/eb52410568bf060c" </a>)[/link]
– Przemysław Krawiec
Nov 25 at 14:12
|
show 1 more comment
up vote
2
down vote
You MUST retain indentation.
Here is probably what your .yaml file should look like...
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.16.186/24]
gateway4: 192.168.16.1
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
Then, in terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply current configuration
reboot
# reboot the system
Note: see https://netplan.io/examples for more examples
add a comment |
up vote
2
down vote
You MUST retain indentation.
Here is probably what your .yaml file should look like...
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.16.186/24]
gateway4: 192.168.16.1
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
Then, in terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply current configuration
reboot
# reboot the system
Note: see https://netplan.io/examples for more examples
add a comment |
up vote
2
down vote
up vote
2
down vote
You MUST retain indentation.
Here is probably what your .yaml file should look like...
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.16.186/24]
gateway4: 192.168.16.1
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
Then, in terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply current configuration
reboot
# reboot the system
Note: see https://netplan.io/examples for more examples
You MUST retain indentation.
Here is probably what your .yaml file should look like...
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.16.186/24]
gateway4: 192.168.16.1
nameservers:
addresses: [192.168.16.190, 192.168.16.186]
Then, in terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply current configuration
reboot
# reboot the system
Note: see https://netplan.io/examples for more examples
answered Nov 25 at 14:55
heynnema
17.3k22053
17.3k22053
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095861%2fnetplan-error-line-1-column-8%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown