The bug is in the main.py file. Editing the file as follow allows Calamares to complete the install (neon-Unstable 20240225_ISO).
The bug is also in the latest neon-Testing ISO.
Before launching the install edit the main.py file. Save, exit and run Calamares after.
/usr/lib/x86_64-linux-gnu/calamares/modules/networkcfg/main.py
Delete line 141 to 161
# Set NetworkManager to be the default renderer if Netplan is installed
# TODO: We might rather do that inside the network-manager package, see:
# https://bugs.launchpad.net/ubuntu/+source/ubuntu-settings/+bug/2020110
default_renderer = os.path.join(root_mount_point, "usr/lib/netplan",
"00-network-manager-all.yaml")
if not os.path.exists(default_renderer):
renderer_file = os.path.join(target_netplan,
"01-network-manager-all.yaml")
nm_renderer = """# This file was written by calamares.
Let NetworkManager manage all devices on this system.
For more information, see netplan(5).
network:
version: 2
renderer: NetworkManager
“”"
with open(renderer_file, ‘w’) as f:
f.writelines(nm_renderer)
os.chmod(f, 0o600)
# Copy existing Netplan configuration
for cfg in glob.glob(os.path.join(source_netplan, "*.yaml")):
Copy this to Line 141:
for cfg in glob.glob(os.path.join(source_netplan, “90-NM-*”)):
End result: Line 140 to 146:
if os.path.exists(source_netplan) and os.path.exists(target_netplan):
for cfg in glob.glob(os.path.join(source_netplan, "90-NM-*")):
source_cfg = os.path.join(source_netplan, cfg)
target_cfg = os.path.join(target_netplan, os.path.basename(cfg))
if os.path.exists(target_cfg):
continue
The new file has 167 lines. 1 addition, 21 deletions.
This solution comes from the main.py file neon-Dev_ISO 20240207.
All the best,