Debian-9-修复wifi-可以搜索看到无线wifi的ssid-但是无法连接

#桌面环境下
#修改添加2行

sudo vim /etc/NetworkManager/NetworkManager.conf
[device]
wifi.scan-rand-mac-address=no
Restart NetworkManager service:

#重启网络
sudo systemctl restart NetworkManager

sudo nmcli device wifi connect ****** password ******