如何解决“Vagrant Up”期间没有名为“netifaces”的模块
执行 vagrant up
时,出现以下错误:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command Failed!
mv -f '/tmp/vagrant-network-entry-1624290630' '/etc/netplan/50-vagrant.yaml'
chown root:root '/etc/netplan/50-vagrant.yaml'
chmod 0644 '/etc/netplan/50-vagrant.yaml'
netplan apply
Stdout from the command:
Stderr from the command:
Traceback (most recent call last):
File "/usr/sbin/netplan",line 20,in <module>
from netplan import Netplan
File "/usr/share/netplan/netplan/__init__.py",line 18,in <module>
from netplan.cli.core import Netplan
File "/usr/share/netplan/netplan/cli/core.py",line 24,in <module>
import netplan.cli.utils as utils
File "/usr/share/netplan/netplan/cli/utils.py",line 25,in <module>
import netifaces
ModuleNotFoundError: No module named 'netifaces'
我已经“sudo -H pip3 install netifaces”了,这似乎并没有解决问题。谢谢!
解决方法
您可以先尝试sudo apt-get update -y
,然后再尝试sudo apt-get install -y python3-netifaces
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。