Comment 0 for bug 1949104

Revision history for this message
Stefan Greiner (sgreiner) wrote :

I hava a freshly installed Ubuntu Server 20.04 LTS.
I am using a static IP config (100% sure it is correct, also the YAML is correct)

If you then enter "netplan try" I get this:
--------------------------------------------------------------------------------
Warning: Stopping systemd-networkd.service, but it can still be activated by:
  systemd-networkd.socket

An error occurred: 'NetplanApply' object has no attribute 'state'

Reverting.
Warning: Stopping systemd-networkd.service, but it can still be activated by:
  systemd-networkd.socket
--------------------------------------------------------------------------------

"netplan generate && netplan apply" does work.
I found some other people having these issues too on freshly installed 20.04 and 21.10 and online forums.

System Infos:

lsb_release -rd:
Description: Ubuntu 20.04.3 LTS
Release: 20.04

apt-cache policy netplan.io:
netplan.io:
  Installed: 0.103-0ubuntu5~20.04.2
  Candidate: 0.103-0ubuntu5~20.04.2
  Version table:
 *** 0.103-0ubuntu5~20.04.2 500
        500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.99-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages

systemd --version:
systemd 245 (245.4-4ubuntu3.13)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

Thank you!