My Raspberry Pi 3 running Raspbian 11 has been acting up for several weeks now:
I managed to set up the wireless LAN at boot, but now, whenever I boot it, there's a 90% chance that the desktop top bar won't appear (I believe it's linked to the NetworkManager applet failing to start).
Also, there's NO network whatsover, and ANY command related to network (and many more) just… hangs (yes, even a simple ip addr show
or ifconfig
). No error message, no nothing. Sometimes I can Ctrl-C back to the interpreter, but most of the time, I cannot even.
Only service NetworkManager status
(but not stop
nor [re]start
) works:
$ service NetworkManager status
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
└─10-dhcpcd.conf
Active: deactivating (stop-sigterm) since Mon 2022-11-21 16:29:34 CET; 18s ago
Docs: man:NetworkManager(8)
Main PID: 409 (NetworkManager)
Tasks: 3 (limit: 1596)
CPU: 399ms
CGroup: /system.slice/NetworkManager.service
└─409 /usr/sbin/NetworkManager --no-daemon
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.6341] ifupdown: interface-parser: parsing file /etc/network/interfaces
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.6343] ifupdown: interface-parser: source line includes interfaces file(s) /etc/network/interfaces.d/*
nov. 21 16:17:13 domoticz NetworkManager[409]: <warn> [1669043833.6346] ifupdown: interfaces file /etc/network/interfaces.d/* doesn't exist
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.6347] ifupdown: interface-parser: finished parsing file /etc/network/interfaces
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.6937] device (lo): carrier: link connected
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.6956] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.7062] device (wlan0): driver supports Access Point (AP) mode
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.7143] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/2)
nov. 21 16:17:13 domoticz NetworkManager[409]: <info> [1669043833.7212] device (wlan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
nov. 21 16:29:34 domoticz systemd[1]: Stopping Network Manager...
Indeed, /etc/network/interfaces.d/
is empty. How can I populate it?
I'll keep on rebooting until it somehow manages to put the network up again…
EDIT following comments: I may have indeed tweaked NetworkManager while trying to deactivate the MAC addresse randomization, following https://raspberrypi.stackexchange.com/a/75497/113482 ’s top-voted comment.
EDIT - SOLUTION: As so many commands wouldn't run, I eventually solved my issue by reflashing Raspberry Pi OS.
/etc/network/interfaces.d/ is empty. How can I populate it?
- empty is how it should be as far as I can see on all my pi'sNetworkManager
is disabled - I guess you fiddled around with something after install?NetworkManager
is installed in the sense that the package is incl. in the latest images, but it's not "activated", meaning it's not selected for systemd's init process.