如果之前下载的别的版本的xrdp,先卸载掉
sudo systemctl stop xrdp
sudo systemctl disable xrdp
sudo apt-get purge xrdp
sudo apt-get purge tightvncserver
1.前往网站下载xrdp1.5版本
网站链接http://www.c-nergy.be/products.html
2.下载后为.zip文件,在下载的压缩包文件夹下打开终端
unzip xrdp-installer-1.5.zip
chmod +x xrdp-installer-1.5.sh
./xrdp-installer-1.5.sh
之后重启ubuntu,重启后不要登录,在windows桌面按下Win+R,输入mstsc然后回车,输入你的ubuntu帐号密码即可
参考的https://blog.csdn.net/qq_57061492/article/details/132791695这篇博客,感谢大佬,忙了一晚上,终于成功了!!!