Validated according to test case from description. No error messages shown, and networking has been correctly configured.
root@halves-lp1907878-j:~# dpkg -l | grep ifupdown ii ifupdown 0.8.36+nmu1ubuntu3.1 amd64 high level tools to configure network interfaces root@halves-lp1907878-j:~# ifdown enp5s0; ifup enp5s0 Killed old client process Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/enp5s0/00:16:3e:a6:40:b0 Sending on LPF/enp5s0/00:16:3e:a6:40:b0 Sending on Socket/fallback DHCPRELEASE of 10.125.177.48 on enp5s0 to 10.125.177.1 port 67 (xid=0x66ead755) Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/enp5s0/00:16:3e:a6:40:b0 Sending on LPF/enp5s0/00:16:3e:a6:40:b0 Sending on Socket/fallback DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 3 (xid=0x58e21111) DHCPOFFER of 10.125.177.48 from 10.125.177.1 DHCPREQUEST for 10.125.177.48 on enp5s0 to 255.255.255.255 port 67 (xid=0x1111e258) DHCPACK of 10.125.177.48 from 10.125.177.1 (xid=0x58e21111) bound to 10.125.177.48 -- renewal in 1555 seconds. ** Tags removed: verification-needed verification-needed-jammy ** Tags added: verification-done verification-done-jammy -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ifupdown in Ubuntu. https://bugs.launchpad.net/bugs/1907878 Title: wrong var declaration in if-up.d/resolved (nm-dispatcher[54417]: /etc/network/if-up.d/resolved: 12: mystatedir: not found) Status in ifupdown package in Ubuntu: Fix Released Status in ifupdown source package in Jammy: Fix Committed Bug description: Syslog error: nm-dispatcher[...]: /etc/network/if-up.d/resolved: 12: mystatedir: not found I think it's because of this line: if systemctl is-enabled systemd-resolved > /dev/null 2>&1; then mystatedir statedir ifindex interface <------------- this is interpreted as a 'mystatedir' command and fails interface=$IFACE if [ ! "$interface" ]; then Perhaps the intention was to 'export mystatedir statedir ...' SRU for Jammy: [ Impact ] * /etc/network/if-{up,down}.d/resolved have a mistype: mystatedir statedir ifindex interface And when this line is executed, mystatedir is not found (not a valid command) and it generates an error log in /var/log/syslog and the terminal output. It's not fatal, and the rest of the code gets executed, but it generates the message. # ifup ens3 /etc/network/if-up.d/resolved: 12: mystatedir: not found # ifdown ens3 /etc/network/if-down.d/resolved: 12: mystatedir: not found The fix accepted in kinetic is only to remove this line. The same fix can be applied to Jammy. [ Test Plan ] With the new package installed, remove netplan configuration and add a valid /etc/network/interfaces file and then use the commands: # ifdown <interface> # ifup <interface> And confirm the messages are not displayed and the network configuration succeeds. [ Where problems could occur ] If mystatedir would be a valid command or function, which is not the case, that could break the script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1907878/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp