Skip to content

Raspberry Pi NetworkManager Is Not Running

If nmcli says Error: NetworkManager is not running., check the service on the Pi host first. A stopped service and a client talking to a different D-Bus can produce the same message. Confirm which case you have before changing Wi-Fi settings or installing packages.

1. Check the NetworkManager service on the Pi

Run this in a terminal on the Pi host, or over a known-working SSH connection to it.

1
2
3
4
5
grep '^VERSION_CODENAME=' /etc/os-release
ps -p 1 -o comm=
command -v nmcli
systemctl is-active NetworkManager.service
systemctl status NetworkManager.service --no-pager

Raspberry Pi OS made NetworkManager the default in Bookworm. If you use an older or customised image, identify the service that manages your connection. If systemctl says the system was started without systemd, check whether you are inside a container or chroot and repeat the checks on the Pi host. Raspberry Pi's Bookworm networking notes

What you see on the Pi What to check next
active but nmcli still reports the error Check the client's D-Bus.
inactive or failed Read the service journal.
The unit is missing or command -v nmcli prints no path Check the installed package and OS.

2. Check D-Bus if the service is active

D-Bus is how nmcli talks to the service. In the same shell that produced the error, check whether it specifies a system bus address. Run the check again with that override cleared for the one command.

printf '%s\n' "${DBUS_SYSTEM_BUS_ADDRESS:-<unset>}"
env -u DBUS_SYSTEM_BUS_ADDRESS nmcli device status

On a Pi 4B running Trixie, a test shell pointed at a temporary bus without NetworkManager reported NetworkManager is not running while the host service was active. Pointing at a nonexistent socket produced Could not create NMClient object. Clearing the override for the test command restored access to the running service. If your normal host shell works, inspect the failing launcher or container for a bus override. D-Bus system bus address

If the normal host shell gives a bus connection error as well, check the system bus service on the Pi with systemctl status dbus.service --no-pager and read its journal. That gives you a service to investigate before changing a Wi-Fi profile.

3. Check the journal if the service is stopped

journalctl -b -u NetworkManager.service --no-pager -n 40

Look for the first relevant startup error above the failure summary. If your account cannot read the log, retry with administrative access. For configuration errors, fix the file named in the message. If the failure began during an APT or dpkg operation, use the NetworkManager package-repair guide.

If the service is inactive or you have corrected a startup error, start it from a local console or a verified recovery connection on an installation that uses NetworkManager. Starting it can change the active route and interrupt SSH.

1
2
3
sudo systemctl start NetworkManager.service
systemctl is-active NetworkManager.service
nmcli device status

Look for active and the intended connection. Test another SSH login if you depend on remote access. If the service works now and fails again after reboot, check systemctl is-enabled NetworkManager.service and read the journal for that boot. NetworkManager command reference

4. Check the package if the command or unit is missing

dpkg-query -W -f='${db:Status-Abbrev} ${Version}\n' network-manager
apt-cache policy network-manager

An ii status means the package is installed. If command -v nmcli prints nothing, check whether /usr/bin/nmcli exists and /usr/bin is in your shell's PATH. For an interrupted package state, follow the package-repair guide above. If the package is absent, first identify the manager your image is meant to use. The networking lesson continues with device state, addressing and DNS once the right service is available.

Donate