Ubuntu 20.04 nmtui "device is strictly unmanaged"
苦逼兼职运维的第六年,已经无力吐槽Ubuntu了= =
症状:在nmtui
里激活网卡,提示Could not activate connection: XXX because device is strictly unmanaged.
懒人解决方案:
sudo su -c 'echo ",except:type:ethernet" >> /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf'
sudo service network-manager restart
原因大致是Ubuntu的NetworkManager默认将以太网卡设置为了不管理模式,因而无法通过nmtui
对以太网卡进行开关操作,即使配置了网络设置也不管用。而上面这段except则是反向操作,告诉NetworkManager不要不管理以太网卡。
咕果上翻了半天没找到合适的解决方案,感谢这位知乎网友:https://zhuanlan.zhihu.com/p/514966896