我在 Raspberry 4 Model B 上安装了 ubuntu LTS 20.04 服务器,并且我测试了 wifi,它运行良好,但是当我升级 ubuntu 时,升级后 wifi 无法使用,你知道这个问题吗?
先感谢您。
答案1
我会这么做:
ls /lib/systemd/system/NetworkManager.service
再次检查输出是否未找到
- 如果文件不存在,请重新添加服务单元
[Unit]
Description=Network Manager
Documentation=man:NetworkManager(8)
Wants=network.target
After=network-pre.target dbus.service
Before=network.target
[Service]
Type=dbus
BusName=org.freedesktop.NetworkManager
ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0
#ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/sbin/NetworkManager --no-daemon
Restart=on-failure
# NM doesn't want systemd to kill its children for it
KillMode=process
CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT
ProtectSystem=true
ProtectHome=read-only
[Install]
WantedBy=multi-user.target
Also=NetworkManager-dispatcher.service
# We want to enable NetworkManager-wait-online.service whenever this service
# is enabled. NetworkManager-wait-online.service has
# WantedBy=network-online.target, so enabling it only has an effect if
# network-online.target itself is enabled or pulled in by some other unit.
Also=NetworkManager-wait-online.service
保存到NetworkManager.service
- 跑步
sudo mv NetworkManager.service /lib/systemd/system/
- 使用启动服务
systemctl start NetworkManager.service
然后更新升级。