Getting error during login attempt: "error loading libvnc.so specified in xrdp.ini"

Bug #1960174 reported by parhom
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
xrdp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After updating to development branch of Ubuntu Jammy the xrdp package was updated from version 0.9.15 to 0.9.17 and I started getting the following error in xrdp log:

[ERROR] xrdp_wm_log_msg: error loading libvnc.so specified in xrdp.ini, please add a valid entry like lib=libxrdp-vnc.so or similar

Looks like it is connected with this issue: https://github.com/neutrinolabs/xrdp/issues/1986

which is fixed in xrdp 0.9.18: https://github.com/neutrinolabs/xrdp/pull/1989 https://github.com/neutrinolabs/xrdp/releases/tag/v0.9.18

Tags: jammy
Revision history for this message
parhom (andriy-parhomenko) wrote :

Actually, Debian has an open merge request fixing the issue: https://salsa.debian.org/debian-remote-team/xrdp/-/merge_requests/5

Revision history for this message
parhom (andriy-parhomenko) wrote :

I can confirm that applying the patch fixes the issue.

tags: added: jammy
Revision history for this message
academyadmin (academyadmin) wrote :

The problem is still persisting at the current 22.04 LTS Release.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xrdp (Ubuntu):
status: New → Confirmed
Revision history for this message
Fmstrat (fmstrat) wrote :

I can confirm the patch linked above is functioning for me.

Revision history for this message
Fmstrat (fmstrat) wrote :

I should specify, it worked for me in 22.04 LTS with a rebuild with patch.

Revision history for this message
Tired Sysadmin (wearyofallthiscrap) wrote :

fmstrat, do you have any guidance on how we'd go about building a new package on 22.04 LTS? The upstream 0.9.19 release contains a fix for not only this bug, but also a recent privilege escalation CVE.

I've the 'apt source xrdp' results for 0.9.17, and have been glancing through its patched sources (containing the Ubuntu adjustments and good old 'debian/rules'). And I've the upstream xrdp-0.9.19.tar.gz release. But I'm fuzzy on how to glom these together to get a 0.9.19 source tree on which I can run debian/rules to get an installable package.

I suppose I can just run the upstream's configure/make/install steps and at least get a binary to copy into place, but I don't know what Ubuntu-specific changes I'd be losing by not using a package build.

Revision history for this message
academyadmin (academyadmin) wrote (last edit ):

If that really is a defect/bug it would probably make sense to roll this fix out to all ubuntu installations, so that a manual patch is not required.
Is there any plan on the roadmap?

Revision history for this message
Siavash (siavash-arya89) wrote :

I've Installed 0.9.20 on my Mac and I try to connect to vnc-any from Remmina on my Ubuntu. When I connect I this error. Any ideas? Should I try a different version?

Revision history for this message
Siavash (siavash-arya89) wrote :

I just tried installing 0.9.11 on my Mac which was used in the tutorial I followed. I got the same problem. Is this problem caused on the server or on the client?

Revision history for this message
Marco Davids (mdavids) wrote :

Quick fix:
Fetch the xrdp package from Kinetic and install it. Worked for me.
https://packages.ubuntu.com/kinetic/xrdp

Revision history for this message
academyadmin (academyadmin) wrote :

Will this feature be fixed in Ubuntu in general or do we really need to use the "work arround" to solve it on long term pespective?

Revision history for this message
academyadmin (academyadmin) wrote :

any update?

Revision history for this message
academyadmin (academyadmin) wrote :

It is still not working with the upgrade. The shipped package with ubuntu 22.04 LTS does not work still.
Is there a roadmap until which that will work, that we can upgrade our infrastructure?

Revision history for this message
Marco Heyde (marcoheyde) wrote (last edit ):

I've successfully built a newer version xrdp-0.9.19 using Linux Mint 21 with Ubuntu 22.04 base using the following approach. The resulting DEB package is attached. XRDP with libvnc works.

---

Linux Mint 21 / Ubuntu 22.04

# prepare build environment for repo version
sudo apt source xrdp
sudo apt-get build-dep xrdp

# install dch
sudo apt install devscripts

# git repo XRDP-Ubuntu
https://code.launchpad.net/ubuntu/+source/xrdp
- clone repo and checkout tag 0.9.19....
- build

# set new version, edit changelog
<email address hidden> dch -i

# build DEB
debuild -us -uc -b -- binary

---

# clean build environment
debuild -- clean

---

For reference additional xrdp sources:

# git repo XRDP upstream
https://github.com/neutrinolabs/xrdp

# git repo XRDP Debian
https://salsa.debian.org/debian-remote-team/xrdp

Revision history for this message
academyadmin (academyadmin) wrote :

very good.
I can also do it manually, but it would be nice if it would be fixed in the default LTS Repo to upgrade without issues.

Revision history for this message
academyadmin (academyadmin) wrote :

Is there an fix in the pipeline before EOL of 20.04?

Revision history for this message
academyadmin (academyadmin) wrote :

guys is there already a fix avialable in the official repo?

Lenin (gagarin)
Changed in xrdp (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ankesh Anand (ankeshanand) wrote :

I am using Ubuntu 22.04 and this bug still affects me. Ubuntu 22.04 still comes with 0.9.17-2ubuntu2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.