manac ham chơi

16 December, 2018

Wireless working but shows in Network Manager as “device not managed”

Filed under: linux-unix — manac @ 4:41 pm

Please show us:

cat /etc/network/interfaces
cat /etc/netplan/01-network-manager-all.yaml

If the last command yields no result, then run:

ls /etc/netplan

And then:

cat /etc/netplan/.yaml

Your netplan file assumes the usual server configuration; that is, no desktop environment, no Network Manager and no GUI. However, you have installed and apparently prefer NM. Let’s see if we can reconfigure netplan.

First, let’s back up the current file so that if things are not quite right, we can recover. From the terminal:

sudo mv /etc/netplan/01-netcfg.yaml /etc/netplan/01-netcfg.yaml.bak

Now we write a new file:

sudo nano /etc/netplan/01-network-manager-all.yaml

Add the following to the new file:

# Let NetworkManager manage all devices on this system
version: 2
renderer: NetworkManager

Please note that the spacing, indentation, etc. are crucial and must be exact. Proofread carefully twice. Save the file (Ctrl+o followed by Enter) and exit the text editor (Ctrl+x).

Cross your fingers and reboot. Any improvement?

—> need reboot

wired device not managed

Most probably your interface appears in /etc/network/interfaces. By default, NetworkManager does not manage interfaces that appear in /etc/network/interfaces. You can change this behaviour.

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

Alternatively, you can remove the interface from /etc/network/interfaces.

backup the current interfaces file:

sudo cp /etc/network/interfaces /etc/network_interfaces_backup

Then open the file:

sudo nano /etc/network/interfaces

Delete everything in that file and copy and paste the following:

auto lo
iface lo inet loopback

Save, stop and start network manager:

sudo service network-manager restart


Ethernet device not managed –> solved Ethernet device not manager
The following bug in Ubuntu 16.10 might be related: network-manager does not manage ethernet and bluetooth interfaces when Ubuntu 16.10 is installed using chroot/netboot method

First try running the following command:

sudo nmcli dev set enp8s0 managed yes

If you get the error message:

Error: Device ‘enp8s0’ not found.

Try running the command below:

ip link show

and look for a device name similar to enp8s0 and substitute it in the original command.

If the that didn’t solve the problem, try running the following (backup orig file, and create 0 bytes file instead)

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

@datka reported a different location for The file 10-globally-managed-devices.conf so the commands should be:

sudo mv /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf_orig
sudo touch /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf

The reboot, or restart the Network Manager service:

sudo systemctl restart NetworkManager

or the old way:

sudo service network-manager restart



Create a free website or blog at