3

I have just installed Ubuntu 18.04 LTS from mini.iso using Ethernet/cable.

Then I have installed MATE desktop to it by sudo apt-get install ubuntu-mate-desktop^.

But the Network Manager tray icon/nm-applet says that Ehernet Networkdevice not managed:

What is the simplest method to setup the system to use NetworkManager back?


Note: please do not close this as duplicate - I need complete reproducible solution in one place.

N0rbert
  • 103,263

1 Answers1

5

To transform the system to normal MATE one should:

Remove systemd-networkd renderer:

sudo rm -v /etc/netplan/01-netcfg.yaml
sudo rm -v /etc/netplan/50-cloud-init.yaml

Restore Network Manager renderer:

cat <<EOF | sudo tee /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
EOF

Apply netplan configuration with:

sudo netplan apply

Restart NetworkManager

sudo service network-manager restart
sudo service NetworkManager restart

Optionally restore contents of /etc/network/interfaces

cat <<EOF | sudo tee /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
EOF

Note: this method is also applicable to Ubuntu MATE 20.04 LTS, 21.04 and 21.10.

N0rbert
  • 103,263
mikewhatever
  • 33,013