解决Ubuntu”Authentication required. System policy prevents WiFi scans”问题

在一块新的pi4板子上装了ubuntu20.04,结果连wifi一直弹出”Authentication required. System policy prevents WiFi scans”的认证提示,没完没了的弹,点了之后也无法输入密码。

最终解决方法如下:

# 新建一个wifi scan授权配置文件
sudo vim /etc/polkit-1/localauthority/50-local.d/wifi.scan.pkla

[Allow Wifi Scan]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.wifi.scan;org.freedesktop.NetworkManager.enable-disable-wifi;org.freedesktop.NetworkManager.settings.modify.own;org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.network-control
ResultAny=yes
ResultInactive=yes
ResultActive=yes

 

yan 22.5.1

参考:

https://askubuntu.com/questions/1291512/authentication-required-system-policy-prevents-wifi-scans-in-focalfossa

发表评论

邮箱地址不会被公开。