Home » How to fix Wired Network interface “Device not managed” error in Debian or Kali Linux?

How to fix Wired Network interface “Device not managed” error in Debian or Kali Linux?

by blackMOREOps
91 comments

Device not managed error actually is an interesting error. When I tested, Device not managed error only happened to Wired Network interfaces (such as eth0 or eth1) in both Debian and Kali Linux. It doesn’t seem to happen to wireless network interfaces. When a user connects their Laptop or Computer to a LAN cable, suddenly they get this Wired Network interface “Device not managed error” and they can’t browse internet. It is annoying and particularly confusing as the error goes not make it obvious how it was generated. Most people end up searching for “Firefox can’t connect to Internet” or “Unable to browse internet in Kali Linux” or such. Those search strings will take to nowhere. This guide takes you through step by step procedures on fixing “Wired Network interface Device not managed error” in Debian and Kali Linux.

In this guide I will quickly point you to an alternate solution where you can setup you IP addess from Command Line on Kali Linux.

The reason you should read this other guide is because if you only have one Laptop or Desktop which allows you to browse Internet and you’re stuck with this annoying “Device not managed” error, at least you will be able to setup an IP address manually and be able to browse Internet and search for instructions that will permanently fix this “Device not managed” error. Well, actually my guides fixes it forever, as you can see from the comments section. But nevertheless, to be able to setup IP address from Command line in Linux is a must learn stuff for anyone as you might be using a non-GUI Linux or your GDM3/GNOME/KDE/KDM broke.

How to fix “Device not managed” error

As of Debian 6.0 “Squeeze”, (or in Kali Linux which is based on Debian) Network Manager does not manage any interface defined in /etc/network/interfaces by default.

Unmanaged devices means Network Manager doesn’t handle those network devices.

So this is what you see in GUI

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 1 - blackMORE Ops

An ifconfig -a show you this:

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 2 - blackMORE Ops

This occurs when two conditions are met:

The file /etc/network/interfaces contains anything about the interface, even:

allow-hotplug eth0
iface eth0 inet dhcp

And /etc/NetworkManager/NetworkManager.conf contains:

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 3 - blackMORE Ops

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

Screenshot below:

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 4 - blackMORE Ops

Enabling Interface Management

If you want Network Manager to handle interfaces that are enabled in /etc/network/interfaces:

Set managed=true in /etc/NetworkManager/NetworkManager.conf. So this file looks like:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 15 - blackMORE Ops

Restart Network Manager

Issue the following command to restart network-manager.

service network-manager restart

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 6 - blackMORE Ops

Now Network Manager should come up with a connected interface. For wired, eth0 with DHCP will show you something like the following image:

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 8 - blackMORE Ops

Just to wrap it up, lets do another ifconifg -a from command line

How to fix Wired Network interface is Unmanaged error in Debian or Kali Linux - 7 - blackMORE Ops

That looks good. Now you should be able to connect to network and browse Internet.

Some explanations

“Auto Ethernet” and “Auto eth0”

Auto Ethernet means “Select an Ethernet interface automatically”

Auto eth0 means “autoconfigure the eth0 interface”.

Conclusion

Thanks for reading. Please share. This is an annoying problem that STOPs you from browsing Internet and no Internet means no solution …

You may also like

91 comments

nitrofurano March 27, 2015 - 4:19 am

i’m still without internet – how can i find out what is happening?
it happened months ago when upgrading Crunchbang – perhaps it’s a kernel or package conflict/misconfiguration issue?

Reply
nitrofurano March 27, 2015 - 4:22 am

or some permissions issue?

Reply
linuxer May 27, 2015 - 1:35 pm

solvig all my problems!!!
thx!

Reply
guest May 31, 2015 - 2:37 am

I was able to get Ifupdown(eth0) in network manager. However, network manager is just struggling to connect and then just fails. Any ideas? Thanks

Reply
Geoffrey June 5, 2015 - 4:51 am

Have you tried resetting your networking hardware?: Unplug (for a few seconds, or switch off) and then plug-in (or switch on): modem, router, switches, etc.–in their sequential order from modem to device…. Have you tried rebooting your device–reloading the driver?

Reply
Peter June 8, 2015 - 12:54 am

I’ve got same problem.

Reply
Peter June 8, 2015 - 12:53 am

Hi, I cann’t connect to internet via wired ethernet. I cann’t see any device manager in menu. But I can connet to the internet wirelessly. I was able to connect via ethernet first time on my laptop, but now after second instalation nothing

Reply
Souf June 11, 2015 - 10:41 pm

Thank you so much !!

Reply
Alan Clark June 14, 2015 - 6:37 pm

Thank you VERY much. apt-get autoremove just hosed a good deal of my squeeze system. This was one that didn’t work! It is now back to being normal. (Note to self: NEVER use autoremove!)

Reply
blackMORE Ops June 18, 2015 - 12:00 am

Should’ve paid attention to what autoremove was actually removing. It usually comes up with a long list; which we all typed ‘Y’ at some point lol

Reply
anonymous August 27, 2015 - 5:06 pm

my problem is a bit different. my wired connection is ok but my internet is not browsing and if config is blank no ip no mac ip nothing just blank . i dont get it any helps??

Reply
tiberiu iaincu September 8, 2015 - 7:56 pm

I get permission denied on /etc/NetworkManager/NetworkManager.conf and /etc/network/interfaces.

Reply
Mooon November 10, 2015 - 1:26 am

I get same problem.

Reply
Dhafer October 8, 2015 - 5:31 am

You made my day thank you

Reply
alexander October 21, 2015 - 7:59 pm

I get ifconfig command not found… any tips? tnx.

Reply
blackMORE Ops October 24, 2015 - 10:55 am

You’re not root, that’s why. sudo ifconfig

Reply
Ramon October 26, 2015 - 4:53 pm

Muchas Gracias!! Excelente tutorial.

Reply
Mooon November 10, 2015 - 1:22 am

I installed kali linux 2.0 but I can’t use internet here problem is, wired show connected but server not found show on browser.
If there any solution so inform me [email protected] OR If anywhere have any videos with connect internet from kali 2.0 so give me please.

Reply
Matt December 10, 2015 - 11:18 am

Hey there, I am new to Kail, when I modify the false to true, I am unsure how to save the change. any helo?

Reply
Dixon December 11, 2015 - 2:11 pm

Ctrl+S

Reply
NetFuca April 10, 2016 - 3:46 am

Thank you! Used this to solve a problem with the WiFi connection.

Reply
rudy May 7, 2016 - 10:16 pm

THANKSSSSSSSSSSSSSSSSSSSSSS

Reply
Bruno October 6, 2016 - 3:58 am

Thanks a lot!

Reply
ski holidays to verbier October 31, 2016 - 7:53 am

We stumbledd over here coming from a different website
and thought I might check hings out. I like what
I see so now i’m following you. Look forward
to going over your webb page yet again.

Reply
Adam Dave November 1, 2016 - 12:29 am

Thanks you – you are the best! You solved my problem after spending HOURS looking for something that works.

Reply
auteurdelivre.com November 20, 2016 - 1:28 pm

Hі, аfter reading thijs remarkable piece оf writing
i amm aⅼso glpad to share my know-Һow herᥱ with
friends.

Reply
1 2 3 4

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Us

blackMORE Ops - touch-icon-72x72

blackMORE Ops” does not promote, encourages and excite hackers, its purpose is to make people aware that what is going around. Know Hacking but No Hacking!

Feature Posts

Newsletter