Ubuntu & xrdp server black screen on login

I am running a xrdp server for when I need a full desktop on one of my android devices – if I’m using remote login for gui stuff, I’m using x2go.

Recently, the xrdp server stopped working. Looking for ways to fix it didn’t yield a proper result. I finally found the solution:

Due to upgrading my ubuntu server installation by using „do-release-upgrade“, an old libglib-2.0.0 was left over in /lib/x86_64-linux-gnu/ (version 4800.0). That library took priority over the new installed version in /usr/lib/x86_64-linux-gnu/ (version 5600.1). The error I saw was

„undefined symbol: g_date_copy“

After deleting /lib/x86_64-linux-gnu/libglib* and doing „apt –reinstall install libglib2.0-0“, I am able to log in to xfce4 again.