I had the same problem on Ubuntu 20.04.1 LTS, 5.4.0-52-generic. I replaced /usr/share/vpnc-scripts/ with current master from https://gitlab.com/openconnect/vpnc-scripts/-/raw/master/vpnc-script, and now it works without errors.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871184 Title: openconnect throws errors and routing issues after connection. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vpnc-scripts/+bug/1871184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs