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

blessing October 7, 2014 - 12:41 am

thanx for the article, assisted a great deal. I have another problem with my other debian machine, it has 2 network cards an onboard and 1 installed on pci. The onboard(eth0) is detected but the one on pci slot (eth1) is not detected and giving the r8168 error? how do i make this nic visible?

Reply
blackMORE Ops October 7, 2014 - 1:51 am

Hi blessing,
I wrote just the right article for similar issues .. Have a read of this one:
Identify PCI and USB Wired and Wireless Driver in Linux
Identify if you got the correct driver. Then you can enable disable or troubleshoot better. Hope it helps. Cheers,
-BMO

Reply
drxalaa October 10, 2014 - 5:23 am

NEED video tutorial no work with me

Reply
Arunavo Chakraborty October 16, 2014 - 8:44 pm

thank u very much :)

Reply
Massimo October 20, 2014 - 6:09 pm

Many thanks. This solved my problem!

Reply
matan October 20, 2014 - 10:19 pm

Thanks man!

Reply
ziee November 2, 2014 - 5:45 am

Thank You,,, that’s work

Reply
jeroenpraat November 9, 2014 - 11:06 pm

Thanks for this. It worked.

I had installed Debian testing and installed KDE first. That wasn’t quite what I wanted, so I reinstalled KDE (removing all packages with KDE in their name and their dependencies) and used tasksel to install Gnome. After KDE was removed all eth0 info from /etc/network/interfaces was also removed. I manually added it back to have internet, so I could download Gnome. This worked.

Only thing left was the problem you described here. I had internet, but still got the ‘Device not managed’ message. Therefore I could not download updates in Gnome or enable share in system settings. Both gave the message that I had no internet connection. Also installing new packages in Gnome didn’t work, but didn’t gave any error message. It just said it installed the package, but it wasn’t actually there.

Anyhow, your simple solution made this all work like it should.

Reply
Demien November 10, 2014 - 7:55 pm

Hi mate, you have done a really nice job with all solutions about errors-fails in kali install. You saving me time ans us we know time is money….that means you have to earn lot of time (time u saved*users ) :P just kidding.
Nice job. I have to say to all of those posting errors about your solutions …..guys read carefully if you cant just read a tutorial how you supposed use a pentesting distribution ???

Reply
Mike December 3, 2014 - 11:29 pm

Thumb up, thanks a lot for this hint.

best regards

Reply
Zak December 9, 2014 - 6:34 am

Thanks a lot !

Reply
veent1997 December 14, 2014 - 1:32 am

guyz i have a question can i use kali linux with inbuilt interface???

Reply
frogmaster December 16, 2014 - 3:46 am

Damn You’re good. Thank You.

Reply
Dops December 24, 2014 - 12:19 pm

Thanks for the fix man!

I just have one question that you might be able to answer (I have yet been able to find an answer to this). When I first installed Kali and tried to connect to the internet via Wi-Fi it was unable to connect to the access point and was only able to connect to the internet via eth0. Now this wouldn’t be weird to me if it was with a single computer (could just have a shitty wireless card in a laptop) but it has happened on every installation of Kali. Now what I find is stranger is that this is not an issue when doing the same installing Debian. Granted its only a minor inconvienience and I still have a great installation, but I was wondering if you had any insight to this.

Reply
blackMORE Ops December 27, 2014 - 10:40 am

It’s been widely reported across Debian, Ububtu, RedHat, CentOS and even on Arch. The only common and unchanged thing is the kernel (these distros are very very different in many cases) amongst all these distros.
Time to write a letter to Linus Torvalds I guess.

Reply
agastya January 7, 2015 - 4:08 am

I have done all what u have said,connected with eth0,still not able to surf the net.

Reply
nitrofurano March 27, 2015 - 4:20 am

exactly like me… :S

Reply
poppy January 13, 2015 - 6:59 am

im getting permission denied? any ideas?? please

Reply
KrQt February 4, 2015 - 4:36 am

I get the permission denied error as well while being on the root user has anyone had this problem and know how to fix please and thank you

Reply
zarkones January 18, 2015 - 4:31 am

I am do this, but my laptop and my computer cant detect internet cable, help?

Reply
Freddy January 27, 2015 - 6:04 am

you rock man!!

Reply
Susmith afrro February 2, 2015 - 1:34 am

i need to establish a broadband connection .. i have my ISP username and password. what should i do??

Reply
Geoffrey Morrison February 3, 2015 - 3:33 am

We need to know the type of broadband you wish to access–among other info. Have you called your ISP? Alternately, you might surf your ISP’s site for instruction. Often, that site might include FAQs and a useful “chat” function. If the ISP has confirmed connection, it’s likely that your network interface (“NIC”) requires detection and/or configuration by the operating system. (It may be as simple as unplugging and plugging in again your modem, router, network switches–then, any powerline devices/range extenders, in that order–the networking hardware which directly forms the “chain” to your PC/laptop–or other CPU device.) People here might need the brands and models of the PC/laptop and relevant networking hardware, as well. If you have a router (definitely recommended), that requires configuration (and good passwords) as well. Don’t panic–after all, you’re here!: The odds are heavy that you’ll succeed!

Reply
Inder February 11, 2015 - 12:52 pm

thanks you, works like a charm !!!

Reply
Giuseppe Miragliotta February 21, 2015 - 12:53 am

i had install kali linux. when i put ifconfig-a it show me only lo (the local information). i have a macbook pro 2014 retina and i am in panic :/

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