Skip to content

[Bug]: Armbian-config Net Problem #543

@danielmendoncabr

Description

@danielmendoncabr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it shouldGood first issueFeel free to contribute :)Not armbian-config bugBug in 3rd party component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions