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:
Code:

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

If the last command yields no result, then run:
Code:

ls /etc/netplan

And then:
Code:

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:
Code:

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

Now we write a new file:
Code:

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

Add the following to the new file:
Code:

# Let NetworkManager manage all devices on this system
network:
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

source: https://ubuntuforums.org/showthread.php?t=2383927
—————–
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

source: https://askubuntu.com/questions/71159/network-manager-says-device-not-managed

—————–
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

source: https://askubuntu.com/questions/882806/ethernet-device-not-managed

#### update 17/08/2019 ubuntu 18.04

sudo cp /etc/netplan/01-netcfg.yaml /etc/netplan/01-netcfg.yaml.bak1

–> 01-netcfg.yaml.bak1

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes

–> 01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: NetworkManager
# ethernets:
# enp2s0:
# dhcp4: yes

sudo netplan generate

sudo netplan apply

sudo service network-manager restart

sudo apt install –reinstall network-manager-gnome

reboot

 

 

 

Create a free website or blog at WordPress.com.