22

I was having problems connecting to the internet either by wireless or wired connection. I keep getting an icon in the systray that has a tooltip that says "unmanaged" and when I click on it I get a "Network management disabled".

I googled and found the command:

sudo dhclient eth0

Which finally enabled my network and I have net. The problem is I still get the icon with the some word "unmanaged"

Can anyone help me out? I just want to know what is happening and why did I had to go to the command line to enable my network.

I had to put the computer in sleep mode and then it wouldn't wake up, so I rebooted the machine. The network manager problems started again, this time the file mentioned by maco had the value set to true and it still wouldn't work.

Anyone know how I can make this permanently work? I did a

sudo init 0

And when I booted the machine at a later time I had the network manager enabled. Have no clue why.

Braiam
  • 67,791
  • 32
  • 179
  • 269
AntonioCS
  • 628

7 Answers7

35

I find this happens after a bad shutdown. Just change

managed=false

to

managed=true

in /etc/NetworkManager/nm-system-settings.conf


Note: In newer versions of Ubuntu, the file is at /etc/NetworkManager/NetworkManager.conf

Then restart service

service network-manager restart
maco
  • 15,892
15

This worked for Ubuntu 17.04

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart
Kulfy
  • 17,696
9

I've just upgraded from Ubuntu 16.04 to 16.10. After that, this problem started to happen to me. In my case, I've solved it following the suggestion given in Ubuntu's launchpad:

touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

This creates an empty file.

Baumann
  • 221
8

You should look at the contents of the file /var/lib/NetworkManager/NetworkManager.state. It should look something like this:

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

Change any from 'false' to 'true' to re-enable networking. It may work better if you first stop NetworkManager:

sudo stop network-manager

And start it again once done. Or reboot :)

In any case, this is frequent when a suspended system fails to wake up. It should be fixed in Maverick.

Zanna
  • 70,465
7

I just upgraded from Ubuntu 16.04 to 16.10. I have 3 network cards (all configured) and no Wifi. All 3 cards were disabled, all options on the Network Manager menu were greyed out, so clicking them does nothing. I fixed it by combining two of the solutions above:

Edit /etc/NetworkManager/NetworkManager.conf and change:

managed=false

to

managed=true

Restarted network-manager:

sudo service network-manager restart

No change. Then I tried:

touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart

All three network cards came back on-line.

Earl Ruby
  • 735
0

I installed ubuntu-gnome-desktop to ubuntu server 14.04.4 and the file was not nm-system-settings.conf, but NetworkManager.conf

As in sudo gedit etc/NetworkManager/NetworkManager.conf I could not find nm-system-settings.conf Perhaps it is not installed (nm-system-settings) as I do not see it on the gnome Panel bar in the gnome classic view desktop. Need to get the Network going to do updates and install gnome-session-flashback to get the Gnome-Flashback (Metacity) on 14.04.4 LTS, my Favorite desktop!

I had not checked /var/lib/NetworkManager/NetworkManager.state before reboot but, perhaps it was updated after reboot as it was correct.

James N.
  • 49
  • 6
0

Try right-clicking the NetworkManager icon and enabling the network from that menu.

Eliah Kagan
  • 117,780