31

I updated from 16.04 to 17.04 a couple days ago. After doing so I found that when I connect my Ethernet cable, it doesn't connect or show connection as it did in 16.04. I Have an HP-15 laptop. I checked for drivers in update area, but it didn't find anything related to Ethernet network.

Here is what I did: To do this - in a terminal:

sudo nano /etc/NetworkManager/NetworkManager.conf

change the line managed=false to managed=true

Save, stop and start network manager:

sudo service network-manager restart

But still have the problem.

It looks like it tries to connect to LAN wired connection but then goes directly to WiFi and connects, then doesn't show any Ethernet connection like it did in 16.04. Any help would be appreciated. I'm almost ready to revert to 16.04

Tooniis
  • 1,572
casawyer
  • 712
  • 3
  • 11
  • 22
  • [main] plugins=ifupdown,keyfile

    [ifupdown] managed=true

    – casawyer Apr 25 '17 at 06:42
  • Went there followed the directions, rebooted and still no ethernet connection showing. – casawyer Apr 25 '17 at 06:54
  • Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

    DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

    127.0.0.53 is the systemd-resolved stub resolver.

    run "systemd-resolve --status" to see details about the actual nameservers.

    nameserver 127.0.0.53

    – casawyer Apr 25 '17 at 07:00
  • systemd-resolve --status the out put is to big to post in this. I followed that links instructions earlier didn't work. – casawyer Apr 25 '17 at 07:06
  • 1
    you can post the output at Paste Ubuntu and link it in the question, also update the information that we discussed in the comments to your question and delete comments – Sumeet Deshmukh Apr 25 '17 at 07:09

5 Answers5

54

According to this bug report, the solution is to add a missing configuration file to NetworkManager, then to restart it.

It worked for me :

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo systemctl restart NetworkManager
skizo
  • 681
  • 3
    That worked for me as well. 2 1/2 years later though. Is this still a bug??? – alle_meije Oct 21 '19 at 10:14
  • After so much struggle. THANK YOU! – poozmak Nov 10 '20 at 09:33
  • 2
    Thanks for this. I was missing the config after having installed Ubuntu 20.04 while using a wireless adapter, and later removed the wireless and had no ethernet. I could get a connection temporarily with sudo dhclient enp2s0 and service network-manager restart but it would disappear again after restart. Adding the globally managed devices conf file resolved it for me. – coppereyecat May 29 '21 at 21:14
  • I have the same problem on Ubuntu 20.04. Unfortunately this did not work for me. – Kvothe May 24 '22 at 14:23
  • After 5 years, it still exists. – jasxir Aug 03 '23 at 05:47
11

Open an Terminal window. There are many different methods for this. The easist is to Alt + Ctrl + T at the same time.

Step 1 Type in or copy this command: sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf Then press the Enter key. Now type in your user password and press the Enter key again.

Step 2 Do the same for this command: sudo systemctl restart NetworkManager

MathCubes
  • 5,666
7

I entered this into terminal:

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

entered and then rebooted and it is there.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
casawyer
  • 712
  • 3
  • 11
  • 22
4

For temporary solution use

sudo dhclient
1

Ethernet Network not showing or connecting in Ubuntu 18.04

It is working fine. Just open the terminal and update the system using WiFi-connection:

sudo apt-get update

After compliantion of the update

clear

Now open the New terminal:

sudo nano /etc/NetworkManager/NetworkManager.conf

change the line managed=false to managed=true

Save, stop and start network manager:

if you find any problem else more try this:

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

sudo systemctl restart NetworkManager
  • Tried this. Did not solve anything. Why is it supposed to work. What is the meaning of managed=true. Why is it not the default if it is better? – Kvothe May 24 '22 at 14:27
  • @Kvothe This indicates that the network or device is managed by NetworkManager. – mchid Sep 25 '22 at 02:01