[9/23] Configuring Net => Unable to open /etc/network/interfaces => Ubuntu 18.04 LTS

5 posts / 0 new
Last post
#1 Tue, 07/10/2018 - 08:50
Mike Castro Demaria

[9/23] Configuring Net => Unable to open /etc/network/interfaces => Ubuntu 18.04 LTS

Hi,

I'm starting a fresh install of Virtualmin on Ubuntu 18.04 LTS, and have the following error message :

[9/23] Configuring Net ▒▒▒▒▒▒▒Error: Unable to open /etc/network/interfaces

Error

Unable to open /etc/network/interfaces

▣▣▣ Cleaning up

[WARNING] The following errors occurred during installation:

◉ Postinstall configuration returned an error. [WARNING] The last few lines of the log file were: [2018/07/10 13:21:10] [INFO] - Code: 0 Result: success [2018/07/10 13:21:11] [INFO] - Code: 0 Result: success [2018/07/10 13:21:11] [INFO] - Code: 0 Result: success [2018/07/10 13:21:11] [INFO] - Code: 0 Result: Warning: ZONE_ALREADY_SET: public success [2018/07/10 13:21:11] [INFO] - Succeeded [2018/07/10 13:21:11] [INFO] - Configuring MySQL [2018/07/10 13:21:14] [INFO] - Succeeded [2018/07/10 13:21:14] [INFO] - Configuring NTP [2018/07/10 13:21:23] [INFO] - Code: 0 Result: 10 Jul 13:21:23 ntpdate[27897]: adjust time server xxx.xxx.xxx.xxx 8 offset -0.000985 sec [2018/07/10 13:21:23] [INFO] - Succeeded [2018/07/10 13:21:23] [INFO] - Configuring Net [2018-07-10 13:21:23 UTC] [DEBUG] Cleaning up temporary files in /tmp/.virtualmin-10627. [2018-07-10 13:21:23 UTC] [WARNING] The following errors occurred during installation: [2018-07-10 13:21:23 UTC] [WARNING] The last few lines of the log file were:

Tue, 07/10/2018 - 17:48
noisemarine

Ubuntu 18.04 is not currently supported. There is an error in the supported OS list that incorrectly lists this version as supported. The developers are working on it.

If you must have 18.04, some users have reported you can install 16 then upgrade to 18 and the installer should succeed.

Wed, 07/11/2018 - 01:54 (Reply to #2)
Mike Castro Demaria

Ok I do 16 LTS install without problem, now I have to dist-upgrade, and I'll feedback.

Wed, 07/11/2018 - 08:38
scotwnw

For 18.04 you have to revert the networking back to /etc/network/interfaces, instead of the the 18.04 default with netplan of /etc/netplan/*.yaml. Or wait till the netplan support has been added to webmin/virtmin.

There's instructions in /etc/network/interfaces on how to revert. I've never done it but sounds its as easy as installing ifup/ifown.

Wed, 07/11/2018 - 15:19
jimdunn

I found this:

HOW REMOVE NETPLAN FROM UBUNTU 18.04

sudo apt install ifupdown
sudo apt purge netplan
vim /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens33
iface ens33 inet dhcp

or

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens33
iface ens33 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

sudo systemctl restart networking ; systemctl status networking
or
sudo /etc/init.d/networking restart ; /etc/init.d/networking status