Ubuntu systems (esp. desktop) rely on the default python3 being the version the system shipped (or was upgraded to) as many Ubuntu tools rely on python3
to work.
You should never change the default python3
version especially for desktop systems if you want to rely on your system working reliably. Many Ubuntu tools use (default) python3, and changing the version can cause them to stop working (the best that can happen) or worse they work incorrectly causing corruption due to python3 version change & differences between versions (this normally only destroys the Ubuntu system (such as package databases etc) & not your data, but results can vary being undefined).
Don't change the default python3
version except in protected environments (where you're not changing the default; ie. don't change your system default)
I'm not using focal or 20.04, but a quick exploration of netplan on my own system shows
guiverc@d7050-next:~/uwn/issues/793$ apt-cache depends netplan.io
netplan.io
Depends: libc6
Depends: libglib2.0-0
Depends: libnetplan0
Depends: libsystemd0
Depends: iproute2
iproute2:i386
Depends: python3
Depends: python3-dbus
Depends: python3-rich
Depends: python3-yaml
Depends: python3-netifaces
Depends: systemd
systemd:i386
Conflicts: <netplan>
Breaks: <nplan>
|Suggests: network-manager
Suggests: wpasupplicant
Suggests: openvswitch-switch
Suggests: iw
Replaces: <nplan>
ie. Netplan on my system relies on python3
that came with my system (Ubuntu mantic)