How to solve Invalid YAML at etc/netplan Ubuntu 18.04

Toggle fullscreen Fullscreen button

Sharing buttons:

hi and welcome to this how-to about a

common problem in Ubuntu's network

configuration file a common situation is

that you should switch from dynamic host

configuration or dynamic IP to static IP

on a server and now you do interchange

it to the configuration file with your

editor and now the network configuration

is saved and you should simply restart

the network so log out and log in on the


and now simply doing a reboot of the

network to the new configuration get in

and there you get an error message about

an invalid configuration file with an

error on line 26 in this case if we now

take a look on the config file again

here is the correct one here is the

fourth one you probably have taken a

look on the manual page for a bundle and

you can see this is more or less and