Score:0

How to configure a network in Ubuntu 20.04 when the network directory does not exists?

us flag

I am using this tutorial to configure the rootfs for ubuntu 20.04, I realize that this distro does not have the network directory but it is created after I use this command from the tutorial I mentioned before:

apt-get install ifupdown

but in this article I read:

"WARNING Switching back from NetPlan/CloudInit to the now obsolete networking daemon is not supported nor recommended as you might end up with a broken system."

My internet connection works ok after the steps in the tutorial + using sudo dpkg-reconfigure network-manager but I don´t know if this is the correct way to achieve the network config

ChanganAuto avatar
us flag
It is never the correct way to use old tutorials that are no longer applicable.
user535733 avatar
cn flag
The OP is installing Ubuntu Base onto a device. That means copying a .img (with a root filesystem) instead of using a LiveUSB installer. This is a sensible question for that rather advanced use case. The answer is that the tutorial is a bit stale, and that particular line has been superseded. Check if the `netplan.io` package is installed; if not, install it (`apt-get install netplan.io`). Then check the /etc/netplan directory for a YAML file. Edit the file as needed to set up your next-reboot connection settings.
Score:0
mk flag

Ubuntu 20.04 uses netplan https://netplan.io/

All your configuration is in file: /etc/netplan/2020 01-network-manager-all.yaml

user535733 avatar
cn flag
...and don't forget to use `netplan generate` to test the YAML.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.