Skip to content

Instantly share code, notes, and snippets.

@micrypt
Created September 9, 2011 20:59
Show Gist options
  • Save micrypt/1207324 to your computer and use it in GitHub Desktop.
Save micrypt/1207324 to your computer and use it in GitHub Desktop.
Fix silly "Networking Disabled" issue (Ubuntu 10.04)
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
@EliasRoybal
Copy link

Thank you so much!! I've been looking everywhere and this did it!

@7nine
Copy link

7nine commented Jul 2, 2021

jfc aaaaaand this still works for 20.04.

@dudeofea
Copy link

Ubuntu 18.04, helped fix "lshw / *network-DISABLED" issues after compiling ethernet driver

@carineong
Copy link

Thank you so much!! I have been struggling for it almost 3 hours. Btw, if you faced an authentication error in the first line, try using "sudo -i"

@ViAuto1
Copy link

ViAuto1 commented Jun 9, 2022

2022 still works, thank you man

@kanhaiya-2000
Copy link

kanhaiya-2000 commented Jul 19, 2022

Thanks! It still worked for ubuntu 22.04 ...

Just a small change:
service network-manager stop ---> service NetworkManager stop
service network-manager start ----> service NetworkManager start

@K-TheMartian
Copy link

ubuntu 18.04, unfortunately, didn't solve this for me :(
the best luck to all who see this.
Network is disabled under "lshw -c Network"

@kevnoutsawo
Copy link

11 Years later, your contribution is still saving lives.
It worked for me on Ubuntu 22.04.

@domsebalj
Copy link

11 years later still saves lives

@CharlesLi114
Copy link

11 years later ... well done ubuntu!

@dalgetty
Copy link

Still works in 2023!

@42oli
Copy link

42oli commented Jul 24, 2023

thanks to kanhaiya-2000's comment this still works on Ubuntu 22.04 in 2023!

@veziak
Copy link

veziak commented Sep 7, 2023

still works! I wonder if it will work in another 12 years

@ajtazer
Copy link

ajtazer commented Nov 23, 2023

still works! I wonder if it will work in another 12 years

believe me it'll

@pearleye
Copy link

pearleye commented Dec 15, 2023

This didn't help rather installing the 'netplan.io' package fixed this issue (Ubuntu 22.04.3 LTS).

How did I get into this scenario?
Well, I tried 'apt auto-remove python3', and all of a sudden my machine rebooted and landed on the tty1 prompt, couldn't start ubuntu-desktop!

How did I get back to ubuntu-desktop?
Ran 'sudo apt install --reinstall ubuntu-desktop' and got back the GUI. But then the ethernet was not working, 'lshw -c network' showed my ethernet interface 'enp43s0' was unmanaged!

@skyer9
Copy link

skyer9 commented Feb 15, 2024

sudo apt install netplan.io
sudo apt install network-manager

sudo cat /var/lib/NetworkManager/NetworkManager.state
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

in my case, no need to delete NetworkManager.state

@TT702
Copy link

TT702 commented Jun 12, 2024

I cannot believe this thing still works in 2024...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment