How to fix the issue in Linux: network manager is not running
- User
How to fix the issue in Linux: network manager is not running
- Assistant
If you're seeing the error "NetworkManager is not running" on a Linux system, it means the NetworkManager daemon, which handles your network connections, is not active. Here's how you can troubleshoot and fix this issue:
Step 1: Check the status of NetworkManager
Open a terminal and run:
bashsudo systemctl status NetworkManager- If it's running, you will see an active (running) status.
- If it's not running, you might see statuses like inactive, failed, or dead.
Step 2: Start or restart NetworkManager
If the service is not running, start it with:
bashsudo systemctl start NetworkManagerTo ensure it starts on boot, enable it:
bashsudo systemctl enable NetworkManagerYou can restart if it’s running but malfunctioning:
bashsudo systemctl restart NetworkManager
Step 3: Check for errors
If
systemctl startorsystemctl restartfailed, check logs:bashjournalctl -xeu NetworkManagerLook for any error messages that might explain why it failed to start.
Step 4: Verify NetworkManager binary and installation
Make sure NetworkManager is installed correctly:
bashwhich NetworkManagerOr
bashnmcli --versionIf missing, install it:
-
Debian/Ubuntu:
bashsudo apt update sudo apt install network-manager -
Fedora/CentOS/RHEL:
bashsudo dnf install NetworkManager
Step 5: Check if another network service is conflicting
Sometimes other network services like (the legacy service), , or can conflict.