ubuntu20.04 Two methods of connecting wifi of

  • 2021-08-17 01:55:09
  • OfStack

I recently installed ubuntu 20.04 and found that I can't connect wifi, and I don't have wifi icon. It seems that there is no driver

Solution

Method 1

1. Connect the computer with the network cable first

2. Execute at the terminal


sudo apt update

3. Execute at the terminal


sudo apt-get install bcmwl-kernel-source

Step 4 Restart

Method 2


# List your network 
ip a

/etc/netplan/There is an YAML configuration file below

Modify the configuration file


ubuntu@ubuntu:~$ cat /etc/netplan/50-cloud-init.yaml
 
network:
  ethernets:
    eth0:
      dhcp4: true
      optional: true
  version: 2
  wifis:
      wlan0:
          dhcp4: true
          access-points:
              " Yours wifi Adj. ssid":
                  password: " Your password "

netplan try
netplan apply

I restarted it once at that time,


Related articles: