OVH Ubuntu/Debian Server VestaCP Install Error

If you recently ordered an Ubuntu/Debian server from OVH and wanted to install VestaCP you will be welcomed with this nice looking error :

installation will take about 15 minutes …
vst-install-rhel.sh: line 450: yum: command not found
Error: yum update failed

looks like vesta-cp installer is detecting the OS as CentOS. The reason for this is OVH Debian/Ubuntu OS template has a modified version of /etc/issue file and looks like this :

 Ubuntu 18.04.1 LTS
 Linux ubuntu 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
 Server        : XXXXXX
   IPv4          : xx.xx.xx.xx
   IPv6          : xxxx:xxxx:xxxx:xxxx::
   Hostname      : xxxx.xxx

install script check first line of that file to determine OS type and as you can see it contains whitespace that is what causing this error.

The Fix

echo "Ubuntu 18.04.1 LTS" > /etc/issue

Replace in quotes with your OS name and version from cat /etc/issue command output and restart installation .

Leave a comment

Your email address will not be published. Required fields are marked *