1.
sudo nano /etc/dhcpcd.conf
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
将这后面的内容都删了
2.
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CN
network={
ssid="111"
psk="aaa"
key_mgmt=WPA-PSK
}
3.
sudo reboot