[Bug 1752247] Re: Can't Connect to Open Network

Lukas Märdian 1752247 at bugs.launchpad.net
Thu Oct 13 10:09:23 UTC 2022


This is explained here: https://netplan.io/examples#connecting-to-an-
open-wireless-network

** Changed in: netplan.io (Ubuntu)
       Status: Triaged => Fix Released

** Changed in: netplan
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1752247

Title:
  Can't Connect to Open Network

Status in netplan:
  Fix Released
Status in netplan.io package in Ubuntu:
  Fix Released

Bug description:
  The man page states:

  access-points (mapping)

  ...

      password (scalar)
          Enable WPA2 authentication and set the passphrase for it. If not given, the network is assumed to be open. Other authentication modes are not currently supported. 

  If I configure Netplan this way:

    wifis:
      wlp1s0:
        dhcp4: yes
        access-points:
          "My Open Network":

  Upon "sudo netplan apply":

  Error in network definition //etc/netplan/01-netcfg.yaml line 16
  column 28: expected mapping

  If I configure Netplan this way:

    wifis:
      wlp1s0:
        dhcp4: yes
        access-points:
          "My Open Network":
            password:

  Syslog shows:

  Feb 28 16:10:08 dionach systemd[1]: Starting resolvconf-pull-resolved.service...
  Feb 28 16:10:08 dionach systemd[1]: Started resolvconf-pull-resolved.service.
  Feb 28 16:10:08 dionach kernel: [71993.278797] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
  Feb 28 16:10:08 dionach systemd[1]: Starting resolvconf-pull-resolved.service...
  Feb 28 16:10:08 dionach systemd[1]: Started WPA supplicant for netplan wlp1s0.
  Feb 28 16:10:08 dionach wpa_supplicant[27188]: Successfully initialized wpa_supplicant
  Feb 28 16:10:08 dionach systemd[1]: Started resolvconf-pull-resolved.service.
  Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 13: Invalid passphrase length 0 (expected: 8..63) '"'.
  Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 13: failed to parse psk '""'.
  Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 14: failed to parse network block.
  Feb 28 16:10:08 dionach wpa_supplicant[27188]: Failed to read or parse configuration '/run/netplan/wpa-wlp1s0.conf'.
  Feb 28 16:10:08 dionach systemd[1]: netplan-wpa at wlp1s0.service: Main process exited, code=exited, status=255/n/a
  Feb 28 16:10:08 dionach systemd[1]: netplan-wpa at wlp1s0.service: Failed with result 'exit-code'.

  Netplan will happily connect to any access-point that has a password.

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1752247/+subscriptions




More information about the foundations-bugs mailing list