Hi there!
Likely more than just xrdp was removed.
If you’re using Ubuntu (as in, GNOME desktop) then you can probably re-install what was removed by logging in at the terminal and then running this command:
sudo apt update
sudo apt install ubuntu-desktop^
The caret (^
) is important. This should work if you are connected to a network.