-
-
Notifications
You must be signed in to change notification settings - Fork 47
Description
What happened?
i've compiled my own .img with Armbian Build (i think official img there is no problem)
v25.05 rolling for Orange Pi PC + running Armbian Linux 6.12.23-current-sunxi
Debian rolling (bullseye)
and when trying to edit Network with Armbian-config the follow error occurs
Traceback (most recent call last): File "/usr/sbin/netplan", line 23, in <module> netplan.main() File "/usr/share/netplan/netplan/cli/core.py", line 50, in main self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 257, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/set.py", line 48, in run self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 257, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/set.py", line 58, in command_set self.write_file(set_tree, self.origin_hint + '.yaml', self.root_dir) File "/usr/share/netplan/netplan/cli/commands/set.py", line 108, in write_file new_tree = self.merge(config, set_tree) File "/usr/share/netplan/netplan/cli/commands/set.py", line 85, in merge if key in a: TypeError: argument of type 'NoneType' is not iterable
How to fix:
sudo nano /usr/share/netplan/netplan/cli/commands/set.py
add
import shutil
and search for
os.replace(tmpp, absp)
and change for
shutil.move(tmpp, absp)
if still doesn't work edit
sudo nano /etc/netplan/armbian.yaml
erase everything and paste
because i cannot format here every # means 1 space click, ok? '-'
network:
##version: 2
##renderer: networkd
##ethernets:
####eth0:
######dhcp4: true
(if still doesn't work, erase everything in /etc/netplan/ [must be two *.yaml files] and create a new armbian.yaml with the code above)
How to reproduce?
open armbian-config > Network > Basic Network Setup > Anything from here
Branch
other (only relevant in corner cases)
On which host OS are you running the build script and observing this problem?
Other
Are you building on Windows WSL2?
- Yes, my Ubuntu/Debian/OtherOS is running on WSL2
Relevant log URL
No response
Code of Conduct
- I agree to follow this project's Code of Conduct