I want to install openvpn server but sudo su not working

If you need to get a root shell, you need to:

sudo bash

You should also consider using Brian Hornsby’s script: https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client