Created
September 9, 2011 20:59
-
-
Save micrypt/1207324 to your computer and use it in GitHub Desktop.
Fix silly "Networking Disabled" issue (Ubuntu 10.04)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| su root | |
| # Don't you hate when you need to root to fix dumb issues? | |
| service network-manager stop | |
| rm /var/lib/NetworkManager/NetworkManager.state | |
| service network-manager start | |
| reboot -h now |
It is 2026, and the broken NetworkManager.state file is still an issue! After removing that file fixed everything, I figured out that I could have solved the problem without becoming root using:
$ nmcli net onBut, there's no way for anyone to ever figure that out as NetworkManager never mentions the NET setting!
- In the Gnome Settings GUI, the Wi-Fi panel simply said, "No Wi-Fi Adapter Found"
- From the command line,
nmcli dev wififailed to scan for stations but gave no error messages. nmcli,nmcli dev, andnmcli generalall showed that wlan0 was unmanaged which was not true and a red herring. The more important fact was that "NET" was disabled and so being managed or not didn't matter and could not be changed.- Trying
nmcli dev set wlan0 managed yesgave no error message even though it failed because NET was off. nmcli radiosaid that WIFI was disabled, which was true, but irrelevant since it cannot be changed when NET is off.- Trying
nmcli radio wifi ongave no error message even though it, too, failed to work.
Thank goodness I ran across this gist as I was tearing my hair out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I cannot believe this thing still works in 2024...