[Bug 2059415] Re: netplan crash when using command netplan
jenloi
2059415 at bugs.launchpad.net
Fri Mar 29 05:50:06 UTC 2024
For whatever reason, what I did was
1. rename the dir of /usr/share/netplan to /usr/share/netplan.old
2. reinstall netplan
3. pip uninstall netplan (guess this is the culprit)
And my netplan finally works
~ netplan status
Online state: online
** Changed in: netplan.io (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2059415
Title:
netplan crash when using command netplan
Status in netplan.io package in Ubuntu:
Invalid
Bug description:
➜ ~ netplan status
Traceback (most recent call last):
File "/sbin/netplan", line 20, in <module>
from netplan_cli import Netplan
File "/usr/share/netplan/netplan_cli/__init__.py", line 18, in <module>
from .cli.core import Netplan
File "/usr/share/netplan/netplan_cli/cli/core.py", line 24, in <module>
from . import utils
File "/usr/share/netplan/netplan_cli/cli/utils.py", line 28, in <module>
from netplan import NetDefinition, NetplanException
ImportError: cannot import name 'NetDefinition' from 'netplan' (/usr/share/netplan/netplan/__init__.py)
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Noble Numbat (development branch)
Release: 24.04
Codename: noble
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2059415/+subscriptions
More information about the foundations-bugs
mailing list