B
B
BadCats2021-10-14 22:04:19
linux
BadCats, 2021-10-14 22:04:19

Problem with wifi ubuntu server 21 raspberry pi 3B?

On Raspberry Pi 3b - problem with wifi.
ifconfig output:

[email protected]:/etc/network# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.62  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::ba27:ebff:fe6e:e330  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:6e:e3:30  txqueuelen 1000  (Ethernet)
        RX packets 2544  bytes 172128 (172.1 KB)
        RX errors 0  dropped 522  overruns 0  frame 0
        TX packets 451  bytes 84554 (84.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 101  bytes 7901 (7.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 101  bytes 7901 (7.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether b8:27:eb:3b:b6:65  txqueuelen 1000  (Ethernet)
        RX packets 169  bytes 8936 (8.9 KB)
        RX errors 0  dropped 56  overruns 0  frame 0
        TX packets 20  bytes 3805 (3.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I want to connect to wifi - first I tried to set my network in /etc/netplan/50-cloud-init.yaml
It turned out the following:
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    version: 2
    wifis:
        wlan0:
             dhcp4: true
             optional: true
             access-points:
                    " my ESSID":
                        password: "my_pwsd"

- then sudo netplan apply- reloaded the raspberry. Did not help.
( https://itsfoss.com/connect-wifi-terminal-ubuntu/ )
Further, as the second option, I tried to connect via nmcli, but when checking the device status I saw this: it
nmcli dev status
gives the following:
DEVICE  TYPE      STATE        CONNECTION
wlan0   wifi      unavailable  --
eth0    ethernet  unmanaged    --
lo      loopback  unmanaged    --

Installed Network-Manager - gives an error when trying to work with the interface:
systemctl start NetworkManager
NetworkManager.service - Network Manager
     Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-10-11 14:26:36 UTC; 4min 36s ago
       Docs: man:NetworkManager(8)
   Main PID: 1926 (NetworkManager)
      Tasks: 3 (limit: 1822)
     Memory: 8.3M
     CGroup: /system.slice/NetworkManager.service
             └─1926 /usr/sbin/NetworkManager --no-daemon

Oct 11 14:26:48 ubuntu NetworkManager[1926]: <error> [1633962408.6366] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface>
Oct 11 14:26:58 ubuntu NetworkManager[1926]: <warn>  [1633962418.4572] device (wlan0): re-acquiring supplicant interface (#2).

Watched: https://www.youtube.com/watch?v=ITtqOdqjyCo
- I don't have the hcp5d package

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Digg3r, 2021-10-15
@Digg3r

Have you tried manually setting up the connection via nmcli? Create a connection (nmcli c help) and connect it to the wlan0 device?
Complains to DBus that wpa_supplicant cannot pick up this device, as an option, you can rearrange the WiFi driver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question