xrdp fails to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xrdp (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 22.04 Desktop 64 bit AMD. xrdp v0.9.17-2ubuntu2. Tried to start xrdp with 'sudo systemctl start xrdp' but failed. This is confirmed by requesting Status. Extract from attached Terminal output:
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] g_tcp_bind(7, 3389) failed bind IPv6 (errno=98) and IPv4 (errno=22).
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] trans_listen_
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] Failed to start xrdp daemon, possibly address already in use.
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Failed with result 'exit-code'.
Aug 16 09:37:32 Demonstrator systemd[1]: Failed to start xrdp daemon.
john@Demonstrat
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] Failed to start xrdp daemon, possibly address already in use.
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xrdp 0.9.17-2ubuntu2
ProcVersionSign
Uname: Linux 6.2.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 16 14:38:45 2023
InstallationDate: Installed on 2022-08-21 (360 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
SourcePackage: xrdp
UpgradeStatus: Upgraded to jammy on 2022-10-06 (314 days ago)
Could this page https:/ /community. spiceworks. com/how_ to/195154- how-to- set-up- and-use- remote- desktop- connection- in-ubuntu- linux give a solution (shown below) to this bug even though it applies to Ubuntu 18.04 and the bug gives a slightly different problem?
Solution is:
he problem is related to the xorgxrdp package and the particular changes in Ubuntu 18.04 that caused xrdp capability breakage. In this guide, we use Ubuntu 18.04.2 to configure xrdp. To solve the empty blue screen problem, install the relevant xorgxrdp-hwe by executing the following command:
sudo apt-get install xorgxrdp-hwe-18.04
To check the current version of Ubuntu, use this command:
lsb_release -a
Restart the xrdp service (daemon):
sudo /etc/init.d/xrdp restart
After the required package is installed, open the RDP client. Then, try using RDP to connect to your Ubuntu again.