XRDP installation on a fresh ubuntu may be problematic, but the following few lines of shell commands may ease it up for you
git clone https://github.com/abhradipm/xrdpinstaller
cd xrdpinstaller
chmod +x xrdp-installer-1.4.5.sh
sudo bash xrdp-installer-1.4.5.sh