My networking.service automatically becomes inactive

I am using Kali Linux. My NetworkManager is enabled. But randomly my NetworkManager or networking.service goes down. Most of the time it's networking.service and my wifi is gone.
And Then I'm unable to turn on the networking.service
I think if I can configure the /etc/network/interfaces file properly then my issue might be fixed

    └─$ sudo systemctl status networking.service
● networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
     Active: active (exited) since Fri 2022-05-06 03:36:24 +06; 1min 28s ago
       Docs: man:interfaces(5)
    Process: 2693 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
   Main PID: 2693 (code=exited, status=0/SUCCESS)
      Tasks: 4 (limit: 18384)
     Memory: 1.5M
        CPU: 2.141s
     CGroup: /system.slice/networking.service
             └─2724 /sbin/dhclient -4 -v -i -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases -I -df /var/lib/dhcp/dhclient6.wlan0.leases wlan0

May 06 03:36:12 pegasus ifup[2724]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
May 06 03:36:12 pegasus ifup[2724]: send_packet: Network is down
May 06 03:36:12 pegasus ifup[2724]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May 06 03:36:12 pegasus dhclient[2724]: send_packet: Network is down
May 06 03:36:12 pegasus dhclient[2724]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May 06 03:36:23 pegasus dhclient[2724]: No DHCPOFFERS received.
May 06 03:36:23 pegasus ifup[2724]: No DHCPOFFERS received.
May 06 03:36:23 pegasus ifup[2724]: No working leases in persistent database - sleeping.
May 06 03:36:23 pegasus dhclient[2724]: No working leases in persistent database - sleeping.
May 06 03:36:24 pegasus systemd[1]: Finished Raise network interfaces.

lspci

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter (rev ff)

ip a

3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 32:4a:0d:d8:42:37 brd ff:ff:ff:ff:ff:ff permaddr 70:66:55:98:e2:a1

ipnet, ifup, ifconfig

┌──(pegasus㉿pegasus)-[~]
└─$ sudo ifconfig wlan0 up   
SIOCSIFFLAGS: Operation already in progress
                                                                                                                                                                                                                                           
┌──(pegasus㉿pegasus)-[~]
└─$ sudo ip link set wlan0 up
RTNETLINK answers: Operation already in progress
                                                                                                                                                                                                                                           
┌──(pegasus㉿pegasus)-[~]
└─$ sudo ifup wlan0          
ifup: interface wlan0 already configured

iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          
usb0      no wireless extensions.

ifconfig

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether a8:5e:45:d4:9e:02  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        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 10  bytes 580 (580.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10  bytes 580 (580.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.168.176  netmask 255.255.255.0  broadcast 192.168.168.255
        inet6 fe80::5dcf:878c:b723:4fef  prefixlen 64  scopeid 0x20<link>
        ether ca:b0:8b:06:a0:05  txqueuelen 1000  (Ethernet)
        RX packets 30207  bytes 30987462 (29.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23574  bytes 4358491 (4.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

dmesg

  18.509518]  </TASK>
[   18.509518] ---[ end trace 4668249f8d4669a4 ]---
[   18.509520] nouveau 0000:01:00.0: fb: Falcon mem scrubbing timeout
[   18.509524] nouveau 0000:01:00.0: fb: VPR still locked after scrub!
[   18.509525] nouveau 0000:01:00.0: fb: init failed, -5
[   18.509674] nouveau 0000:01:00.0: init failed with -5
[   18.509676] nouveau: Xorg[820]:00000000:00000080: init failed with -5
[   18.509678] nouveau: DRM-master:00000000:00000000: init failed with -5
[   18.509680] nouveau: DRM-master:00000000:00000000: init failed with -5
[   18.509683] nouveau 0000:01:00.0: DRM: Client resume failed with error: -5
[   18.509685] nouveau 0000:01:00.0: DRM: resume failed with: -5
[   22.978971] usb 5-1: new full-speed USB device number 3 using xhci_hcd
[   23.146517] usb 5-1: New USB device found, idVendor=13d3, idProduct=3548, bcdDevice= 0.00
[   23.146526] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   23.146530] usb 5-1: Product: Bluetooth Radio
[   23.146532] usb 5-1: Manufacturer: Realtek
[   23.146534] usb 5-1: SerialNumber: 00e04c000001
[   23.158560] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=09a8 lmp_ver=0a lmp_subver=a0cb
[   23.158570] Bluetooth: hci0: RTL: unknown IC info, lmp subver a0cb, hci rev 09a8, hci ver 000a
[   23.158574] Bluetooth: hci0: RTL: assuming no firmware upload needed
[   54.484322] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   54.484545] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[   54.484719] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[   54.484897] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   54.484971] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[   54.484990] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[   60.151017] pcieport 0000:00:01.1: Data Link Layer Link Active not set in 1000 msec
[   64.583015] ucsi_acpi USBC000:00: PPM init failed (-110)
[  736.791036] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[  736.943282] usb 3-2: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 4.04
[  736.943294] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  736.943297] usb 3-2: Product: SDM660-QRD _SN:276590F3
[  736.943300] usb 3-2: Manufacturer: asus
[  736.943303] usb 3-2: SerialNumber: C4ATAS000000
[  761.310887] usb 3-2: USB disconnect, device number 3
[  761.754816] usb 3-2: new high-speed USB device number 4 using xhci_hcd
[  761.909026] usb 3-2: New USB device found, idVendor=05c6, idProduct=9024, bcdDevice= 4.04
[  761.909039] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  761.909042] usb 3-2: Product: SDM660-QRD _SN:276590F3
[  761.909045] usb 3-2: Manufacturer: asus
[  761.909048] usb 3-2: SerialNumber: C4ATAS000000
[  762.067820] usbcore: registered new interface driver cdc_ether
[  762.074916] rndis_host 3-2:1.0 usb0: register 'rndis_host' at usb-0000:04:00.3-2, RNDIS device, 66:5f:62:a2:60:be
[  762.075007] usbcore: registered new interface driver rndis_host
[  875.913199] usb 3-2: USB disconnect, device number 4
[  875.913383] rndis_host 3-2:1.0 usb0: unregister 'rndis_host' usb-0000:04:00.3-2, RNDIS device
[  876.222758] usb 3-2: new high-speed USB device number 5 using xhci_hcd
[  912.810763] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[  912.962454] usb 3-2: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 4.04
[  912.962460] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  912.962462] usb 3-2: Product: SDM660-QRD _SN:276590F3
[  912.962464] usb 3-2: Manufacturer: asus
[  912.962465] usb 3-2: SerialNumber: C4ATAS000000
[  920.581505] usb 3-2: USB disconnect, device number 6
[  920.970744] usb 3-2: new high-speed USB device number 7 using xhci_hcd
[  921.123338] usb 3-2: New USB device found, idVendor=05c6, idProduct=9024, bcdDevice= 4.04
[  921.123344] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  921.123346] usb 3-2: Product: SDM660-QRD _SN:276590F3
[  921.123348] usb 3-2: Manufacturer: asus
[  921.123349] usb 3-2: SerialNumber: C4ATAS000000
[  921.176374] rndis_host 3-2:1.0 usb0: register 'rndis_host' at usb-0000:04:00.3-2, RNDIS device, d6:9b:23:33:8f:05
[ 1155.503253] usb 5-1: USB disconnect, device number 3
[ 1159.162857] usb 5-1: new full-speed USB device number 4 using xhci_hcd
[ 1159.330782] usb 5-1: New USB device found, idVendor=13d3, idProduct=3548, bcdDevice= 0.00
[ 1159.330794] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1159.330798] usb 5-1: Product: Bluetooth Radio
[ 1159.330801] usb 5-1: Manufacturer: Realtek
[ 1159.330804] usb 5-1: SerialNumber: 00e04c000001
[ 1159.342647] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=09a8 lmp_ver=0a lmp_subver=a0cb
[ 1159.342659] Bluetooth: hci0: RTL: unknown IC info, lmp subver a0cb, hci rev 09a8, hci ver 000a
[ 1159.342662] Bluetooth: hci0: RTL: assuming no firmware upload needed
[ 1161.711726] usb 5-1: USB disconnect, device number 4
[ 1162.678810] usb 5-1: new full-speed USB device number 5 using xhci_hcd
[ 1162.850670] usb 5-1: New USB device found, idVendor=13d3, idProduct=3548, bcdDevice= 0.00
[ 1162.850686] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1162.850690] usb 5-1: Product: Bluetooth Radio
[ 1162.850694] usb 5-1: Manufacturer: Realtek
[ 1162.850696] usb 5-1: SerialNumber: 00e04c000001
[ 1162.861729] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 1162.864768] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 1162.864785] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[ 1162.864921] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822cu_fw.bin
[ 1162.864952] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[ 1162.864981] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822cu_config.bin
[ 1162.865015] Bluetooth: hci0: RTL: cfg_sz 6, total sz 38782
[ 1163.199714] Bluetooth: hci0: RTL: fw version 0x09a8a0cb
[ 1163.272025] usb 5-1: USB disconnect, device number 5
[ 1165.294784] Bluetooth: hci0: command 0x1002 tx timeout
[ 1165.294864] Bluetooth: hci0: sending frame failed (-19)
[ 1167.310784] Bluetooth: hci0: command 0x0c52 tx timeout
[ 1167.310822] Bluetooth: hci0: sending frame failed (-19)
[ 1169.330794] Bluetooth: hci0: command 0x0c45 tx timeout
[ 1169.330917] Bluetooth: hci0: sending frame failed (-19)
[ 1171.342781] Bluetooth: hci0: command 0x0c58 tx timeout
[ 1171.342820] Bluetooth: hci0: sending frame failed (-19)
[ 1173.538861] usb 5-1: new full-speed USB device number 6 using xhci_hcd
[ 1173.714646] usb 5-1: New USB device found, idVendor=13d3, idProduct=3548, bcdDevice= 0.00
[ 1173.714658] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1173.714661] usb 5-1: Product: Bluetooth Radio
[ 1173.714664] usb 5-1: Manufacturer: Realtek
[ 1173.714667] usb 5-1: SerialNumber: 00e04c000001
[ 1173.726691] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 1173.728720] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 1173.728730] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[ 1173.728803] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822cu_fw.bin
[ 1173.728827] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[ 1173.728846] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822cu_config.bin
[ 1173.728868] Bluetooth: hci0: RTL: cfg_sz 6, total sz 38782
[ 1174.062755] Bluetooth: hci0: RTL: fw version 0x09a8a0cb
[ 1197.672814] usb 5-1: reset full-speed USB device number 6 using xhci_hcd
[ 1197.807382] usb 5-1: device descriptor read/64, error -71
[ 1198.050853] usb 5-1: device descriptor read/64, error -71
[ 1198.290882] usb 5-1: reset full-speed USB device number 6 using xhci_hcd
[ 1198.426846] usb 5-1: device descriptor read/64, error -71
[ 1198.667103] usb 5-1: device descriptor read/64, error -71
[ 1198.906811] usb 5-1: reset full-speed USB device number 6 using xhci_hcd
[ 1198.906921] usb 5-1: Device not responding to setup address.
[ 1199.114900] usb 5-1: Device not responding to setup address.
[ 1199.322805] usb 5-1: device not accepting address 6, error -71
[ 1199.450777] usb 5-1: reset full-speed USB device number 6 using xhci_hcd
[ 1199.450910] usb 5-1: Device not responding to setup address.
[ 1199.658910] usb 5-1: Device not responding to setup address.
[ 1199.866793] usb 5-1: device not accepting address 6, error -71
[ 1199.866857] usb 5-1: USB disconnect, device number 6
[ 1200.139006] usb 5-1: new full-speed USB device number 7 using xhci_hcd
[ 1200.274852] usb 5-1: device descriptor read/64, error -71
[ 1200.518812] usb 5-1: device descriptor read/64, error -71
[ 1200.759093] usb 5-1: new full-speed USB device number 8 using xhci_hcd
[ 1200.891897] usb 5-1: Device not responding to setup address.
[ 1201.138738] usb 5-1: New USB device found, idVendor=13d3, idProduct=3548, bcdDevice= 0.00
[ 1201.138750] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1201.138755] usb 5-1: Product: Bluetooth Radio
[ 1201.138758] usb 5-1: Manufacturer: Realtek
[ 1201.138761] usb 5-1: SerialNumber: 00e04c000001
[ 1201.149702] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=09a8 lmp_ver=0a lmp_subver=a0cb
[ 1201.149742] Bluetooth: hci0: RTL: unknown IC info, lmp subver a0cb, hci rev 09a8, hci ver 000a
[ 1201.149746] Bluetooth: hci0: RTL: assuming no firmware upload needed

/var/log/syslog | grep wlan0

May  6 14:46:30 pegasus kernel: [ 6182.457697] wlan0: Failed check-sdata-in-driver check, flags: 0x4
May  6 14:46:31 pegasus dhclient[772]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
May  6 14:46:31 pegasus dhclient[772]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 14:46:31 pegasus dhclient[772]: receive_packet failed on wlan0: Network is down
May  6 14:46:31 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:46:31 pegasus NetworkManager[680]: <info>  [1651826791.2639] device (wlan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May  6 14:46:33 pegasus NetworkManager[680]: <info>  [1651826793.2654] device (wlan0): set-hw-addr: set MAC address to A2:9F:61:EC:99:30 (scanning)
May  6 14:46:37 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:46:37 pegasus wpa_supplicant[729]: nl80211: Could not set interface 'wlan0' UP
May  6 14:46:37 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:46:38 pegasus dhclient[772]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
May  6 14:46:38 pegasus dhclient[772]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 14:46:39 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:46:39 pegasus wpa_supplicant[729]: WEXT: Could not set interface 'wlan0' UP
May  6 14:46:39 pegasus NetworkManager[680]: <error> [1651826799.2695] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
May  6 14:46:39 pegasus wpa_supplicant[729]: wlan0: Failed to initialize driver interface
May  6 14:46:49 pegasus NetworkManager[680]: <warn>  [1651826809.5212] device (wlan0): re-acquiring supplicant interface (#1).
May  6 14:46:51 pegasus dhclient[772]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
May  6 14:46:51 pegasus dhclient[772]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 14:46:51 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:46:51 pegasus wpa_supplicant[729]: nl80211: Could not set interface 'wlan0' UP
May  6 14:46:51 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:46:53 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:46:53 pegasus wpa_supplicant[729]: WEXT: Could not set interface 'wlan0' UP
May  6 14:46:53 pegasus wpa_supplicant[729]: wlan0: Failed to initialize driver interface
May  6 14:46:53 pegasus NetworkManager[680]: <error> [1651826813.5250] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
May  6 14:47:03 pegasus NetworkManager[680]: <warn>  [1651826823.5223] device (wlan0): re-acquiring supplicant interface (#2).
May  6 14:47:05 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:05 pegasus wpa_supplicant[729]: nl80211: Could not set interface 'wlan0' UP
May  6 14:47:05 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:47:07 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:07 pegasus wpa_supplicant[729]: WEXT: Could not set interface 'wlan0' UP
May  6 14:47:07 pegasus NetworkManager[680]: <error> [1651826827.5255] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
May  6 14:47:07 pegasus wpa_supplicant[729]: wlan0: Failed to initialize driver interface
May  6 14:47:11 pegasus dhclient[772]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
May  6 14:47:11 pegasus dhclient[772]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 14:47:17 pegasus NetworkManager[680]: <warn>  [1651826837.5253] device (wlan0): re-acquiring supplicant interface (#3).
May  6 14:47:19 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:19 pegasus wpa_supplicant[729]: nl80211: Could not set interface 'wlan0' UP
May  6 14:47:19 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:47:21 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:21 pegasus wpa_supplicant[729]: WEXT: Could not set interface 'wlan0' UP
May  6 14:47:21 pegasus NetworkManager[680]: <error> [1651826841.5288] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
May  6 14:47:21 pegasus wpa_supplicant[729]: wlan0: Failed to initialize driver interface
May  6 14:47:29 pegasus dhclient[772]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
May  6 14:47:29 pegasus dhclient[772]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 14:47:31 pegasus NetworkManager[680]: <warn>  [1651826851.5263] device (wlan0): re-acquiring supplicant interface (#4).
May  6 14:47:33 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:33 pegasus wpa_supplicant[729]: nl80211: Could not set interface 'wlan0' UP
May  6 14:47:33 pegasus wpa_supplicant[729]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 14:47:35 pegasus wpa_supplicant[729]: Could not set interface wlan0 flags (UP): Operation already in progress
May  6 14:47:35 pegasus wpa_supplicant[729]: WEXT: Could not set interface 'wlan0' UP
May  6 14:47:35 pegasus NetworkManager[680]: <error> [1651826855.5295] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
May  6 14:47:35 pegasus wpa_supplicant[729]: wlan0: Failed to initialize driver interface
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.1961] ifupdown:       interface-parser: parsing file /etc/network/interfaces.d/wlan0
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.1961] ifupdown:       interface-parser: finished parsing file /etc/network/interfaces.d/wlan0
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.1970] ifupdown: guessed connection type (wlan0) = 802-3-ethernet
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.4257] device (wlan0): driver supports Access Point (AP) mode
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.4265] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
May  6 14:47:58 pegasus NetworkManager[662]: <info>  [1651826878.4274] device (wlan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May  6 14:47:59 pegasus NetworkManager[662]: <info>  [1651826879.4437] device (wlan0): set-hw-addr: set MAC address to 26:EE:2A:BB:DA:7D (scanning)
May  6 14:47:59 pegasus NetworkManager[662]: <info>  [1651826879.7939] device (wlan0): supplicant interface state: internal-starting -> disconnected
May  6 14:47:59 pegasus NetworkManager[662]: <info>  [1651826879.7941] device (wlan0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
May  6 14:47:59 pegasus dhclient[773]: Listening on LPF/wlan0/26:ee:2a:bb:da:7d
May  6 14:47:59 pegasus ifup[773]: Listening on LPF/wlan0/26:ee:2a:bb:da:7d
May  6 14:47:59 pegasus ifup[773]: Sending on   LPF/wlan0/26:ee:2a:bb:da:7d
May  6 14:47:59 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
May  6 14:47:59 pegasus dhclient[773]: Sending on   LPF/wlan0/26:ee:2a:bb:da:7d
May  6 14:47:59 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
May  6 14:48:02 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
May  6 14:48:02 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
May  6 14:48:03 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May  6 14:48:03 pegasus NetworkManager[662]: <info>  [1651826883.8838] device (wlan0): Activation: starting connection 'NahidPotato 1' (cbbae614-b8bc-4fb1-8d12-7423962d2701)
May  6 14:48:03 pegasus NetworkManager[662]: <info>  [1651826883.8842] device (wlan0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May  6 14:48:03 pegasus dhclient[773]: receive_packet failed on wlan0: Network is down
May  6 14:48:03 pegasus ifup[773]: receive_packet failed on wlan0: Network is down
May  6 14:48:03 pegasus NetworkManager[662]: <info>  [1651826883.8868] device (wlan0): set-hw-addr: reset MAC address to 70:66:55:98:E2:A1 (preserve)
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1219] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1229] device (wlan0): Activation: (wifi) access point 'NahidPotato 1' has security, but secrets are required.
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1229] device (wlan0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1234] sup-iface[606111fa7af5f4cc,0,wlan0]: wps: type pbc start...
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1286] device (wlan0): supplicant interface state: disconnected -> interface_disabled
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1305] device (wlan0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1313] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1321] device (wlan0): Activation: (wifi) connection 'NahidPotato 1' has security, and secrets exist.  No new secrets needed.
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.1617] device (wlan0): supplicant interface state: interface_disabled -> inactive
May  6 14:48:04 pegasus NetworkManager[662]: <info>  [1651826884.4014] device (wlan0): supplicant interface state: inactive -> scanning
May  6 14:48:05 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 14:48:05 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 14:48:05 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: SME: Trying to authenticate with 60:32:b1:4e:37:be (SSID='NahidPotato' freq=2417 MHz)
May  6 14:48:08 pegasus kernel: [   14.128801] wlan0: authenticate with 60:32:b1:4e:37:be
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.6907] device (wlan0): supplicant interface state: scanning -> authenticating
May  6 14:48:08 pegasus kernel: [   14.624292] wlan0: send auth to 60:32:b1:4e:37:be (try 1/3)
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: Trying to associate with 60:32:b1:4e:37:be (SSID='NahidPotato' freq=2417 MHz)
May  6 14:48:08 pegasus kernel: [   14.627779] wlan0: authenticated
May  6 14:48:08 pegasus kernel: [   14.630516] wlan0: associate with 60:32:b1:4e:37:be (try 1/3)
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.7004] device (wlan0): supplicant interface state: authenticating -> associating
May  6 14:48:08 pegasus kernel: [   14.637712] wlan0: RX AssocResp from 60:32:b1:4e:37:be (capab=0x411 status=0 aid=3)
May  6 14:48:08 pegasus kernel: [   14.638119] wlan0: associated
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: Associated with 60:32:b1:4e:37:be
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.7104] device (wlan0): supplicant interface state: associating -> associated
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.7264] device (wlan0): supplicant interface state: associated -> 4way_handshake
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: WPA: Key negotiation completed with 60:32:b1:4e:37:be [PTK=CCMP GTK=CCMP]
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-CONNECTED - Connection to 60:32:b1:4e:37:be completed [id=0 id_str=]
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.8260] device (wlan0): supplicant interface state: 4way_handshake -> completed
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.8261] device (wlan0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "NahidPotato"
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.8264] device (wlan0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
May  6 14:48:08 pegasus NetworkManager[662]: <info>  [1651826888.8270] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
May  6 14:48:08 pegasus kernel: [   14.759094] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
May  6 14:48:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-33 noise=9999 txrate=135000
May  6 14:48:09 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 14:48:09 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4347] dhcp4 (wlan0): state changed unknown -> bound, address=192.168.0.102
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4371] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4388] policy: set 'NahidPotato 1' (wlan0) as default for IPv4 routing and DNS
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4882] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4885] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May  6 14:48:09 pegasus NetworkManager[662]: <info>  [1651826889.4898] device (wlan0): Activation: successful, device activated.
May  6 14:48:13 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 14:48:13 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 14:48:23 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
May  6 14:48:23 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
May  6 14:48:35 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 14:48:35 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 14:48:51 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
May  6 14:48:51 pegasus ifup[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
May  6 14:49:18 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:49:36 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-39 noise=9999 txrate=300000
May  6 14:49:53 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=0 noise=9999 txrate=300000
May  6 14:50:04 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=300000
May  6 14:50:09 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:50:41 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:50:48 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-34 noise=9999 txrate=300000
May  6 14:51:21 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:51:33 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:51:39 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-40 noise=9999 txrate=300000
May  6 14:51:48 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-32 noise=9999 txrate=300000
May  6 14:51:50 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-32 noise=9999 txrate=300000
May  6 14:51:55 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-31 noise=9999 txrate=243000
May  6 14:51:59 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-33 noise=9999 txrate=300000
May  6 14:53:33 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:54:13 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-33 noise=9999 txrate=300000
May  6 14:54:20 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=0 noise=9999 txrate=300000
May  6 14:55:13 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
May  6 14:55:18 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
May  6 14:55:27 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
May  6 14:55:42 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
May  6 14:55:43 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:56:03 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
May  6 14:56:04 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:56:13 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-40 noise=9999 txrate=300000
May  6 14:56:19 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-36 noise=9999 txrate=300000
May  6 14:56:28 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-35 noise=9999 txrate=300000
May  6 14:56:34 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-45 noise=9999 txrate=300000
May  6 14:56:46 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-41 noise=9999 txrate=270000
May  6 14:57:06 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-38 noise=9999 txrate=270000
May  6 14:57:25 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-44 noise=9999 txrate=300000
May  6 14:57:44 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-38 noise=9999 txrate=300000
May  6 14:59:51 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:00:23 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-29 noise=9999 txrate=300000
May  6 15:00:32 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=243000
May  6 15:00:40 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-29 noise=9999 txrate=300000
May  6 15:00:51 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-29 noise=9999 txrate=300000
May  6 15:01:00 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:01:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-28 noise=9999 txrate=300000
May  6 15:01:26 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:01:33 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
May  6 15:01:38 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
May  6 15:01:43 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
May  6 15:01:49 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:01:59 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
May  6 15:02:07 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
May  6 15:02:13 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-28 noise=9999 txrate=135000
May  6 15:02:23 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-26 noise=9999 txrate=300000
May  6 15:02:28 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
May  6 15:02:43 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:03:12 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:05:07 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:05:32 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:06:06 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=300000
May  6 15:06:41 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-28 noise=9999 txrate=270000
May  6 15:08:52 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
May  6 15:09:00 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:09:10 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 15:09:19 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-29 noise=9999 txrate=300000
May  6 15:09:26 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
May  6 15:09:46 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
May  6 15:09:53 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-28 noise=9999 txrate=300000
May  6 15:10:47 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-28 noise=9999 txrate=300000
May  6 15:11:16 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-26 noise=9999 txrate=300000
May  6 15:11:37 pegasus kernel: [ 1423.433924] wlan0: Connection to AP 60:32:b1:4e:37:be lost
May  6 15:11:38 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-DISCONNECTED bssid=60:32:b1:4e:37:be reason=4 locally_generated=1
May  6 15:11:38 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
May  6 15:11:38 pegasus NetworkManager[662]: <info>  [1651828298.1419] device (wlan0): supplicant interface state: completed -> disconnected
May  6 15:11:38 pegasus NetworkManager[662]: <info>  [1651828298.4282] device (wlan0): supplicant interface state: disconnected -> scanning
May  6 15:11:39 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May  6 15:11:53 pegasus NetworkManager[662]: <warn>  [1651828313.0673] device (wlan0): link timed out.
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.0678] device (wlan0): state change: activated -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May  6 15:11:53 pegasus dhclient[773]: receive_packet failed on wlan0: Network is down
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.0703] device (wlan0): set-hw-addr: set MAC address to 92:E2:29:F3:0B:11 (scanning)
May  6 15:11:53 pegasus NetworkManager[662]: <warn>  [1651828313.3433] device (wlan0): Activation: failed for connection 'NahidPotato 1'
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.3456] device (wlan0): supplicant interface state: scanning -> interface_disabled
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.3465] device (wlan0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.3837] dhcp4 (wlan0): canceled DHCP transaction
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.3838] dhcp4 (wlan0): state changed bound -> terminated
May  6 15:11:53 pegasus NetworkManager[662]: <info>  [1651828313.6018] device (wlan0): supplicant interface state: interface_disabled -> scanning
May  6 15:11:57 pegasus NetworkManager[662]: <info>  [1651828317.6413] device (wlan0): supplicant interface state: scanning -> disconnected
May  6 15:12:01 pegasus NetworkManager[662]: <info>  [1651828321.4622] device (wlan0): supplicant interface state: disconnected -> inactive
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.6809] device (wlan0): Activation: starting connection 'NahidPotato 1' (cbbae614-b8bc-4fb1-8d12-7423962d2701)
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.6811] device (wlan0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May  6 15:14:47 pegasus dhclient[773]: receive_packet failed on wlan0: Network is down
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.6828] device (wlan0): set-hw-addr: reset MAC address to 70:66:55:98:E2:A1 (preserve)
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9152] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9155] device (wlan0): Activation: (wifi) access point 'NahidPotato 1' has security, but secrets are required.
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9155] device (wlan0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9158] sup-iface[606111fa7af5f4cc,0,wlan0]: wps: type pbc start...
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9176] device (wlan0): supplicant interface state: inactive -> interface_disabled
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9185] device (wlan0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9188] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9191] device (wlan0): Activation: (wifi) connection 'NahidPotato 1' has security, and secrets exist.  No new secrets needed.
May  6 15:14:47 pegasus NetworkManager[662]: <info>  [1651828487.9608] device (wlan0): supplicant interface state: interface_disabled -> inactive
May  6 15:14:48 pegasus NetworkManager[662]: <info>  [1651828488.1964] device (wlan0): supplicant interface state: inactive -> scanning
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: SME: Trying to authenticate with 60:32:b1:4e:37:be (SSID='NahidPotato' freq=2417 MHz)
May  6 15:14:52 pegasus kernel: [ 1617.941071] wlan0: authenticate with 60:32:b1:4e:37:be
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.3294] device (wlan0): supplicant interface state: scanning -> authenticating
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: Trying to associate with 60:32:b1:4e:37:be (SSID='NahidPotato' freq=2417 MHz)
May  6 15:14:52 pegasus kernel: [ 1618.262545] wlan0: send auth to 60:32:b1:4e:37:be (try 1/3)
May  6 15:14:52 pegasus kernel: [ 1618.265889] wlan0: authenticated
May  6 15:14:52 pegasus kernel: [ 1618.266456] wlan0: associate with 60:32:b1:4e:37:be (try 1/3)
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.3359] device (wlan0): supplicant interface state: authenticating -> associating
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: Associated with 60:32:b1:4e:37:be
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
May  6 15:14:52 pegasus kernel: [ 1618.275679] wlan0: RX AssocResp from 60:32:b1:4e:37:be (capab=0x411 status=0 aid=3)
May  6 15:14:52 pegasus kernel: [ 1618.275917] wlan0: associated
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.3471] device (wlan0): supplicant interface state: associating -> associated
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.3536] device (wlan0): supplicant interface state: associated -> 4way_handshake
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: WPA: Key negotiation completed with 60:32:b1:4e:37:be [PTK=CCMP GTK=CCMP]
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-CONNECTED - Connection to 60:32:b1:4e:37:be completed [id=0 id_str=]
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.4174] device (wlan0): supplicant interface state: 4way_handshake -> completed
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.4175] device (wlan0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "NahidPotato"
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.4177] device (wlan0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
May  6 15:14:52 pegasus NetworkManager[662]: <info>  [1651828492.4183] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
May  6 15:14:52 pegasus kernel: [ 1618.351014] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
May  6 15:14:52 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-27 noise=9999 txrate=135000
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0351] dhcp4 (wlan0): state changed unknown -> bound, address=192.168.0.102
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0370] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0385] policy: set 'NahidPotato 1' (wlan0) as default for IPv4 routing and DNS
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0658] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0661] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May  6 15:14:53 pegasus NetworkManager[662]: <info>  [1651828493.0673] device (wlan0): Activation: successful, device activated.
May  6 15:15:19 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
May  6 15:15:25 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
May  6 15:15:36 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 15:15:52 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:16:02 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
May  6 15:16:09 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
May  6 15:16:17 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
May  6 15:21:23 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
May  6 15:21:29 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
May  6 15:21:38 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
May  6 15:21:49 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
May  6 15:22:04 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
May  6 15:22:22 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
May  6 15:25:39 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
May  6 15:25:45 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
May  6 15:26:00 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
May  6 15:26:18 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
May  6 15:26:32 pegasus dhclient[773]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
May  6 15:28:08 pegasus NetworkManager[662]: <info>  [1651829288.1219] device (wlan0): state change: activated -> deactivating (reason 'user-requested', sys-iface-state: 'managed')
May  6 15:28:08 pegasus NetworkManager[662]: <info>  [1651829288.1237] audit: op="device-disconnect" interface="wlan0" ifindex=3 pid=1668 uid=1000 result="success"
May  6 15:28:08 pegasus kernel: [ 2414.071280] wlan0: deauthenticating from 60:32:b1:4e:37:be by local choice (Reason: 3=DEAUTH_LEAVING)
May  6 15:28:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-DISCONNECTED bssid=60:32:b1:4e:37:be reason=3 locally_generated=1
May  6 15:28:08 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
May  6 15:28:08 pegasus NetworkManager[662]: <info>  [1651829288.3008] device (wlan0): state change: deactivating -> disconnected (reason 'user-requested', sys-iface-state: 'managed')
May  6 15:28:08 pegasus NetworkManager[662]: <info>  [1651829288.3157] dhcp4 (wlan0): canceled DHCP transaction
May  6 15:28:08 pegasus NetworkManager[662]: <info>  [1651829288.3157] dhcp4 (wlan0): state changed bound -> terminated
May  6 15:28:12 pegasus dhclient[773]: receive_packet failed on wlan0: Network is down
May  6 15:28:12 pegasus NetworkManager[662]: <info>  [1651829292.3414] device (wlan0): set-hw-addr: set MAC address to 06:64:FA:51:E5:4D (scanning)
May  6 15:28:14 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:14 pegasus NetworkManager[662]: <info>  [1651829294.3440] device (wlan0): supplicant interface state: completed -> disconnected
May  6 15:28:14 pegasus NetworkManager[662]: <info>  [1651829294.3469] device (wlan0): supplicant interface state: disconnected -> interface_disabled
May  6 15:28:14 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:15 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:17 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:21 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:22 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:26 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:27 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:29 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:32 pegasus wpa_supplicant[720]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-100
May  6 15:28:32 pegasus NetworkManager[662]: <info>  [1651829312.3568] device (wlan0): state change: disconnected -> unavailable (reason 'none', sys-iface-state: 'managed')
May  6 15:28:32 pegasus wpa_supplicant[720]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May  6 15:29:38 pegasus dhclient[14240]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:38 pegasus ifdown[14240]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:38 pegasus ifdown[14240]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:38 pegasus ifdown[14240]: receive_packet failed on wlan0: Network is down
May  6 15:29:38 pegasus dhclient[14240]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:38 pegasus dhclient[14240]: receive_packet failed on wlan0: Network is down
May  6 15:29:38 pegasus dhclient[14240]: DHCPRELEASE of 192.168.0.102 on wlan0 to 192.168.0.1 port 67
May  6 15:29:38 pegasus ifdown[14240]: DHCPRELEASE of 192.168.0.102 on wlan0 to 192.168.0.1 port 67
May  6 15:29:40 pegasus dhclient[14311]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:40 pegasus ifup[14311]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:40 pegasus ifup[14311]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:40 pegasus ifup[14311]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
May  6 15:29:40 pegasus ifup[14311]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:29:40 pegasus ifup[14311]: receive_packet failed on wlan0: Network is down
May  6 15:29:40 pegasus dhclient[14311]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:40 pegasus dhclient[14311]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
May  6 15:29:40 pegasus dhclient[14311]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:29:40 pegasus dhclient[14311]: receive_packet failed on wlan0: Network is down
May  6 15:29:47 pegasus dhclient[14311]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:29:47 pegasus ifup[14311]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:29:47 pegasus ifup[14311]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:29:47 pegasus dhclient[14311]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:29:51 pegasus ifup[14280]: ifup: failed to bring up wlan0
May  6 15:29:58 pegasus dhclient[14501]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:58 pegasus ifup[14501]: Listening on LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:58 pegasus ifup[14501]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:58 pegasus ifup[14501]: receive_packet failed on wlan0: Network is down
May  6 15:29:58 pegasus ifup[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 15:29:58 pegasus ifup[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:29:58 pegasus dhclient[14501]: Sending on   LPF/wlan0/06:64:fa:51:e5:4d
May  6 15:29:58 pegasus dhclient[14501]: receive_packet failed on wlan0: Network is down
May  6 15:29:58 pegasus dhclient[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
May  6 15:29:58 pegasus dhclient[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:02 pegasus dhclient[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:30:03 pegasus ifup[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:30:03 pegasus ifup[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:03 pegasus dhclient[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:12 pegasus dhclient[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 15:30:12 pegasus ifup[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
May  6 15:30:12 pegasus ifup[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:12 pegasus dhclient[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:28 pegasus dhclient[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:30:28 pegasus ifup[14501]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
May  6 15:30:28 pegasus ifup[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:28 pegasus dhclient[14501]: dhclient.c:2446: Failed to send 300 byte long packet over wlan0 interface.
May  6 15:30:49 pegasus NetworkManager[675]: <info>  [1651829449.3058] ifupdown:       interface-parser: parsing file /etc/network/interfaces.d/wlan0
May  6 15:30:49 pegasus NetworkManager[675]: <info>  [1651829449.3058] ifupdown:       interface-parser: finished parsing file /etc/network/interfaces.d/wlan0
May  6 15:30:49 pegasus NetworkManager[675]: <info>  [1651829449.3067] ifupdown: guessed connection type (wlan0) = 802-3-ethernet
May  6 15:30:49 pegasus ifup[775]: Cannot find device "wlan0"
May  6 15:30:49 pegasus ifup[708]: ifup: failed to bring up wlan0
May  6 15:33:06 pegasus ifup[2655]: Cannot find device "wlan0"
May  6 15:33:06 pegasus ifup[2614]: ifup: failed to bring up wlan0
May  6 15:33:18 pegasus ifup[2886]: Cannot find device "wlan0"
May  6 15:33:18 pegasus ifup[2845]: ifup: failed to bring up wlan0

journalctl -xeu networking.service

May 06 15:30:49 pegasus systemd[1]: Starting Raise network interfaces...
░░ Subject: A start job for unit networking.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has begun execution.
░░ 
░░ The job identifier is 87.
May 06 15:30:49 pegasus dhclient[769]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:30:49 pegasus ifup[769]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:30:49 pegasus ifup[769]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:30:49 pegasus ifup[769]: All rights reserved.
May 06 15:30:49 pegasus ifup[769]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:30:49 pegasus dhclient[769]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:30:49 pegasus dhclient[769]: All rights reserved.
May 06 15:30:49 pegasus dhclient[769]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:30:49 pegasus dhclient[769]: 
May 06 15:30:49 pegasus ifup[775]: Cannot find device "wlan0"
May 06 15:30:49 pegasus dhclient[769]: Failed to get interface index: No such device
May 06 15:30:49 pegasus ifup[769]: Failed to get interface index: No such device
May 06 15:30:49 pegasus ifup[769]: If you think you have received this message due to a bug rather
May 06 15:30:49 pegasus ifup[769]: than a configuration issue please read the section on submitting
May 06 15:30:49 pegasus ifup[769]: bugs on either our web page at www.isc.org or in the README file
May 06 15:30:49 pegasus ifup[769]: before submitting a bug.  These pages explain the proper
May 06 15:30:49 pegasus ifup[769]: process and the information we find helpful for debugging.
May 06 15:30:49 pegasus ifup[769]: exiting.
May 06 15:30:49 pegasus dhclient[769]: 
May 06 15:30:49 pegasus dhclient[769]: If you think you have received this message due to a bug rather
May 06 15:30:49 pegasus dhclient[769]: than a configuration issue please read the section on submitting
May 06 15:30:49 pegasus dhclient[769]: bugs on either our web page at www.isc.org or in the README file
May 06 15:30:49 pegasus dhclient[769]: before submitting a bug.  These pages explain the proper
May 06 15:30:49 pegasus dhclient[769]: process and the information we find helpful for debugging.
May 06 15:30:49 pegasus dhclient[769]: 
May 06 15:30:49 pegasus dhclient[769]: exiting.
May 06 15:30:49 pegasus ifup[708]: ifup: failed to bring up wlan0
May 06 15:30:49 pegasus systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit networking.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 15:30:49 pegasus systemd[1]: networking.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit networking.service has entered the 'failed' state with result 'exit-code'.
May 06 15:30:49 pegasus systemd[1]: Failed to start Raise network interfaces.
░░ Subject: A start job for unit networking.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has finished with a failure.
░░ 
░░ The job identifier is 87 and the job result is failed.
May 06 15:33:06 pegasus systemd[1]: Starting Raise network interfaces...
░░ Subject: A start job for unit networking.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has begun execution.
░░ 
░░ The job identifier is 1188.
May 06 15:33:06 pegasus dhclient[2649]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:33:06 pegasus ifup[2649]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:33:06 pegasus ifup[2649]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:33:06 pegasus ifup[2649]: All rights reserved.
May 06 15:33:06 pegasus ifup[2649]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:33:06 pegasus dhclient[2649]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:33:06 pegasus dhclient[2649]: All rights reserved.
May 06 15:33:06 pegasus dhclient[2649]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:33:06 pegasus dhclient[2649]: 
May 06 15:33:06 pegasus ifup[2655]: Cannot find device "wlan0"
May 06 15:33:06 pegasus dhclient[2649]: Failed to get interface index: No such device
May 06 15:33:06 pegasus ifup[2649]: Failed to get interface index: No such device
May 06 15:33:06 pegasus ifup[2649]: If you think you have received this message due to a bug rather
May 06 15:33:06 pegasus ifup[2649]: than a configuration issue please read the section on submitting
May 06 15:33:06 pegasus ifup[2649]: bugs on either our web page at www.isc.org or in the README file
May 06 15:33:06 pegasus ifup[2649]: before submitting a bug.  These pages explain the proper
May 06 15:33:06 pegasus ifup[2649]: process and the information we find helpful for debugging.
May 06 15:33:06 pegasus ifup[2649]: exiting.
May 06 15:33:06 pegasus dhclient[2649]: 
May 06 15:33:06 pegasus dhclient[2649]: If you think you have received this message due to a bug rather
May 06 15:33:06 pegasus dhclient[2649]: than a configuration issue please read the section on submitting
May 06 15:33:06 pegasus dhclient[2649]: bugs on either our web page at www.isc.org or in the README file
May 06 15:33:06 pegasus dhclient[2649]: before submitting a bug.  These pages explain the proper
May 06 15:33:06 pegasus dhclient[2649]: process and the information we find helpful for debugging.
May 06 15:33:06 pegasus dhclient[2649]: 
May 06 15:33:06 pegasus dhclient[2649]: exiting.
May 06 15:33:06 pegasus ifup[2614]: ifup: failed to bring up wlan0
May 06 15:33:06 pegasus systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit networking.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 15:33:06 pegasus systemd[1]: networking.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit networking.service has entered the 'failed' state with result 'exit-code'.
May 06 15:33:06 pegasus systemd[1]: Failed to start Raise network interfaces.
░░ Subject: A start job for unit networking.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has finished with a failure.
░░ 
░░ The job identifier is 1188 and the job result is failed.
May 06 15:33:18 pegasus systemd[1]: Starting Raise network interfaces...
░░ Subject: A start job for unit networking.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has begun execution.
░░ 
░░ The job identifier is 1198.
May 06 15:33:18 pegasus dhclient[2880]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:33:18 pegasus ifup[2880]: Internet Systems Consortium DHCP Client 4.4.1
May 06 15:33:18 pegasus ifup[2880]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:33:18 pegasus ifup[2880]: All rights reserved.
May 06 15:33:18 pegasus ifup[2880]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:33:18 pegasus dhclient[2880]: Copyright 2004-2018 Internet Systems Consortium.
May 06 15:33:18 pegasus dhclient[2880]: All rights reserved.
May 06 15:33:18 pegasus dhclient[2880]: For info, please visit https://www.isc.org/software/dhcp/
May 06 15:33:18 pegasus dhclient[2880]: 
May 06 15:33:18 pegasus ifup[2886]: Cannot find device "wlan0"
May 06 15:33:18 pegasus dhclient[2880]: Failed to get interface index: No such device
May 06 15:33:18 pegasus ifup[2880]: Failed to get interface index: No such device
May 06 15:33:18 pegasus ifup[2880]: If you think you have received this message due to a bug rather
May 06 15:33:18 pegasus ifup[2880]: than a configuration issue please read the section on submitting
May 06 15:33:18 pegasus ifup[2880]: bugs on either our web page at www.isc.org or in the README file
May 06 15:33:18 pegasus ifup[2880]: before submitting a bug.  These pages explain the proper
May 06 15:33:18 pegasus ifup[2880]: process and the information we find helpful for debugging.
May 06 15:33:18 pegasus ifup[2880]: exiting.
May 06 15:33:18 pegasus dhclient[2880]: 
May 06 15:33:18 pegasus dhclient[2880]: If you think you have received this message due to a bug rather
May 06 15:33:18 pegasus dhclient[2880]: than a configuration issue please read the section on submitting
May 06 15:33:18 pegasus dhclient[2880]: bugs on either our web page at www.isc.org or in the README file
May 06 15:33:18 pegasus dhclient[2880]: before submitting a bug.  These pages explain the proper
May 06 15:33:18 pegasus dhclient[2880]: process and the information we find helpful for debugging.
May 06 15:33:18 pegasus dhclient[2880]: 
May 06 15:33:18 pegasus dhclient[2880]: exiting.
May 06 15:33:18 pegasus ifup[2845]: ifup: failed to bring up wlan0
May 06 15:33:18 pegasus systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit networking.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 15:33:18 pegasus systemd[1]: networking.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit networking.service has entered the 'failed' state with result 'exit-code'.
May 06 15:33:18 pegasus systemd[1]: Failed to start Raise network interfaces.
░░ Subject: A start job for unit networking.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit networking.service has finished with a failure.
░░ 
░░ The job identifier is 1198 and the job result is failed.

Hello,

Welcome to the forum ! We hope you enjoy your time here, and find this to be a friendly and welcoming place.

In general when problems such as this appear, the first thing to check is what's going on in your system logs. At a minimum, look through the output of dmesg and see if this sheds any light on the matter. You would of course want to pay particular attention to anything mentioning the device which has disappeared, wlan0, since something must be making it unavailable - the only question is what.

Also check your primary syslog file, which will likely be either /var/log/syslog or /var/log/messages. Again, you'd be wanting to watch out for anything mentioning networking in general or wlan0 in particular.

One further thing I initially forgot: you can use the journalctl command to view all systemd-managed logs, which it appears Kali does use now. So definitely have a look through the output of journalctl as well.

I'd start with that, and let us know what you find. Hopefully that will give some pointers in the right direction, and then we can take things from there.

Virtual machine or physical machine?

What is the wired network interface?

What steps did you take to configure the wired interface?

AFAIR, modern Kali does not come with wi-fi by default. You need to use a working wired connection to download a driver for your wi-fi chipset (onboard or add-in) and then configure it.
Search for keywords like "Kali wlan0 missing" or "Kali no wi-fi". What is the wi-fi interface? Make/model?

More questions than answers I'm afraid.

How sure are you that it works for the first 5-10 minutes? Is the O/S simply stopping it because it's not working. Did you assign a (unique) IP address to the wired interface?

Dual boot machine.
Rn with kali by default the wifi interface model comes. I'm sure cuz I can open YT and FB in those 5-10 min. But then YT video keeps buffering and get stuck. Then I can see that the wifi gets disconnected like it's disabled.

I have posted all the necessary infos. Can you now check?
What's happening here?

Hello,

I don't have a Linux box with wi-fi myself to test things with, but a few things to try or check would be:

  • When the network goes down, can you do an iwconfig wlan0 down, followed by an iwconfig wlan0 up and see what happens ?
  • When the network goes down, can you still perform an iwlist wlan0 scan to see a list of available Wi-fi networks ?
  • If you can still see the available networks, what happens if you try manually joining your wi-fi interface to your network by doing something like iwconfig wlan0 essid <your network's SSID> key s:<your network's password> ?

Beyond that I can't think myself what else specific to suggest. Wi-fi has always been something of a dark art on Linux, mostly due to driver and firmware reasons than anything else. I take it the wi-fi works in your other operating system fine (you mention this is a dual-boot box) ?

Yes wifi works fine on other OS which is windows. and I have already posted the output of iwconfig wlan0 up

SIOCSIFFLAGS: Operation already in progress

and no I can't perform iwlist wlan0 cuz I don't have wlan0

@NobinPegasus ,

  • had this previously been working without issue ?
  • when did this start happening ?
  • had there been any significant updates installed that relate to networking/wifi ...?

Can you show output of
nmcli c sh

After that, run a show output, by reading output from above for NAME part linked with your adapter for verbose output.
nmcli c sh <NAME>

I would advise against using network manager and hand edited networking scripts.
Use either legacy way (using ifup scripts) or new stuff with network manager.

Anyway, it could also bit that just that adapter driver is, well, not that good.
I had issue in past with USB dongles which never worked stable.

Then i bought dongle that actually works in linux - saving time to hack around with broken stuff.
Otherwise, only thing you can do is google around that card and issues people are having with that specific model/driver, patching or compiling modules and using those instead of existing one etc.

Regards
Peasant

1 Like