How do I know what the proper syntax for netplan is? I've looked up the netplan docs online and everything I try gives me KEY errors when I try to use netplan generate.
How do I know what the proper syntax for netplan is? I've looked up the netplan docs online and everything I try gives me KEY errors when I try to use netplan generate.
In a Ubuntu Desktop installation, you should be using NetworkManager, not netplan, to manage wireless connections.
Your
/etc/netplan/*.yaml
file should look like this...then:
sudo netplan --debug generate
# generate script filessudo netplan apply
# apply new configurationIn a Ubuntu Server installation, you should be using netplan, and examples of netplan scripts can be seen here.
Minimal example...
then:
sudo netplan --debug generate
# generate script filessudo netplan apply
# apply new configurationIf you have key-errors then probably your netplan software is too old. Ubuntu LTS 18.04 has an old version. So you should upgrade your netplan.io package to make this work.
The ubuntu repository on http://nl.archive.ubuntu.com/ubuntu/pool/main/n/netplan.io/ contains a version like netplan.io_0.96-0ubuntu0.18.04.4_amd64.deb, or whatever architecture you might have.
I installed this on my ubuntu 18.04 LTS with:
dpkg -i netplan.io_0.96-0ubuntu0.18.04.4_amd64.deb
and it installs without further dependencies, so it is a drop-in replacement.