Bug#862837: xrdp: Package install failure - dpkg: error processing package xrdp (--configure)

Aaron Morand aaron.morand at gmail.com
Wed May 17 16:07:53 UTC 2017


Package: xrdp
Version: 0.9.1-4~bpo8+1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

While attempting to update this package, it fails due to an issue in the post-installation script.

# apt-get -t jessie-backports install xrdp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  guacamole
The following packages will be upgraded:
  xrdp
1 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
Need to get 0 B/441 kB of archives.
After this operation, 1,254 kB of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 124472 files and directories currently installed.)
Preparing to unpack .../xrdp_0.9.1-4~bpo8+1_amd64.deb ...
Unpacking xrdp (0.9.1-4~bpo8+1) over (0.6.1-2) ...
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Processing triggers for systemd (215-17+deb8u7) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up xrdp (0.9.1-4~bpo8+1) ...
Installing new version of config file /etc/default/xrdp ...
Installing new version of config file /etc/init.d/xrdp ...
Installing new version of config file /etc/xrdp/sesman.ini ...
Installing new version of config file /etc/xrdp/startwm.sh ...

Configuration file '/etc/xrdp/xrdp.ini'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** xrdp.ini (Y/I/N/O/D/Z) [default=N] ? 
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript xrdp, action "restart" failed.
dpkg: error processing package xrdp (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)


Following the error's recommendation, I ran the following

# systemctl status xrdp.service
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since Wed 2017-05-17 11:40:50 EDT; 1min 17s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)

May 17 11:40:50 ws06-yyz systemd[1]: xrdp.service: control process exited, code=exited status=1
May 17 11:40:50 ws06-yyz systemd[1]: Failed to start xrdp daemon.
May 17 11:40:50 ws06-yyz systemd[1]: Unit xrdp.service entered failed state.


# journalctl -xn
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service stop-sigterm timed out. Killing.
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service: main process exited, code=killed, status=9/KILL
May 17 11:42:21 ws06-yyz systemd[1]: Stopped xrdp session manager.
-- Subject: Unit xrdp-sesman.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp-sesman.service has finished shutting down.
May 17 11:42:21 ws06-yyz systemd[1]: Unit xrdp-sesman.service entered failed state.


I then attempted to nudge it into installing properly.

# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up xrdp (0.9.1-4~bpo8+1) ...
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript xrdp, action "restart" failed.
dpkg: error processing package xrdp (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Errors were encountered while processing:
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)


This actually appears to get it past the xrdp-sesman failure to start issue, as seen by the same checks.

# systemctl status xrdp.service
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since Wed 2017-05-17 11:45:15 EDT; 3min 37s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 17605 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/FAILURE)
  Process: 17595 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)

May 17 11:45:15 ws06-yyz systemd[1]: xrdp.service: control process exited, code=exited status=1
May 17 11:45:15 ws06-yyz systemd[1]: Failed to start xrdp daemon.
May 17 11:45:15 ws06-yyz systemd[1]: Unit xrdp.service entered failed state.


# journalctl -xn
-- Logs begin at Wed 2017-05-17 09:04:58 EDT, end at Wed 2017-05-17 11:45:15 EDT. --
May 17 11:45:15 ws06-yyz xrdp-sesman[17593]: (17593)(139768431830784)[DEBUG] libscp initialized
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] starting xrdp-sesman with pid 17594
May 17 11:45:15 ws06-yyz systemd[1]: Started xrdp session manager.
-- Subject: Unit xrdp-sesman.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp-sesman.service has finished starting up.
-- 
-- The start-up result is done.
May 17 11:45:15 ws06-yyz systemd[1]: Starting xrdp daemon...
-- Subject: Unit xrdp.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp.service has begun starting up.
May 17 11:45:15 ws06-yyz systemd[1]: xrdp.service: control process exited, code=exited status=1
May 17 11:45:15 ws06-yyz systemd[1]: Failed to start xrdp daemon.
-- Subject: Unit xrdp.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp.service has failed.
-- 
-- The result is failed.
May 17 11:45:15 ws06-yyz systemd[1]: Unit xrdp.service entered failed state.
May 17 11:45:15 ws06-yyz systemd[1]: Stopping xrdp session manager...
-- Subject: Unit xrdp-sesman.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp-sesman.service has begun shutting down.
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] shutting down sesman 1
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] listening to port 3350 on 127.0.0.1


xrdp.log is never written to and xrdp-sesman.log doesn't contain anything very informative.

# ls -lh /var/log/xrdp*
-rw-r----- 1 xrdp adm   0 May 17 11:45 /var/log/xrdp.log
-rw-r----- 1 root adm 602 May 17 11:45 /var/log/xrdp-sesman.log

# cat /var/log/xrdp-sesman.log 
[20170517-11:35:35] [CORE ] starting sesman with pid 9957
[20170517-11:35:35] [INFO ] listening...
[20170517-11:36:03] [INFO ] shutting down sesman 1
[20170517-11:40:50] [DEBUG] libscp initialized
[20170517-11:40:50] [INFO ] starting xrdp-sesman with pid 14484
[20170517-11:40:50] [INFO ] shutting down sesman 1
[20170517-11:40:50] [INFO ] listening to port 3350 on 127.0.0.1
[20170517-11:45:15] [DEBUG] libscp initialized
[20170517-11:45:15] [INFO ] starting xrdp-sesman with pid 17594
[20170517-11:45:15] [INFO ] shutting down sesman 1
[20170517-11:45:15] [INFO ] listening to port 3350 on 127.0.0.1


syslog doesn't shed any light on the issue for me either.

# grep xrdp /var/log/syslog | tail -20
May 17 11:40:50 ws06-yyz xrdp-sesman[14484]: (14484)(140173754193664)[INFO ] listening to port 3350 on 127.0.0.1
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service stop-sigterm timed out. Killing.
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service: main process exited, code=killed, status=9/KILL
May 17 11:42:21 ws06-yyz systemd[1]: Stopped xrdp session manager.
May 17 11:42:21 ws06-yyz systemd[1]: Unit xrdp-sesman.service entered failed state.
May 17 11:45:15 ws06-yyz systemd[1]: Starting xrdp session manager...
May 17 11:45:15 ws06-yyz xrdp-sesman[17593]: (17593)(139768431830784)[DEBUG] libscp initialized
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] starting xrdp-sesman with pid 17594
May 17 11:45:15 ws06-yyz systemd[1]: Started xrdp session manager.
May 17 11:45:15 ws06-yyz systemd[1]: Starting xrdp daemon...
May 17 11:45:15 ws06-yyz systemd[1]: xrdp.service: control process exited, code=exited status=1
May 17 11:45:15 ws06-yyz systemd[1]: Failed to start xrdp daemon.
May 17 11:45:15 ws06-yyz systemd[1]: Unit xrdp.service entered failed state.
May 17 11:45:15 ws06-yyz systemd[1]: Stopping xrdp session manager...
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] shutting down sesman 1
May 17 11:45:15 ws06-yyz xrdp-sesman[17594]: (17594)(139768431830784)[INFO ] listening to port 3350 on 127.0.0.1
May 17 11:46:45 ws06-yyz systemd[1]: xrdp-sesman.service stop-sigterm timed out. Killing.
May 17 11:46:45 ws06-yyz systemd[1]: xrdp-sesman.service: main process exited, code=killed, status=9/KILL
May 17 11:46:45 ws06-yyz systemd[1]: Stopped xrdp session manager.
May 17 11:46:45 ws06-yyz systemd[1]: Unit xrdp-sesman.service entered failed state.


I have been using xrdp 0.6.1-2 for a while and it works fine, except for mouse wheel events, which is what prompted my attempt to upgrade.

I tried purging my existing xrdp install to ensure it wasn't an issue with my config, but the result was the same.

I'm not sure what else to try.  Any insights would be great.

Thanks,

Aaron


-- System Information:
Debian Release: 8.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xrdp depends on:
ii  adduser              3.113+nmu3
ii  init-system-helpers  1.22
ii  libc6                2.19-18+deb8u9
ii  libfuse2             2.9.3-15+deb8u2
ii  libjpeg62-turbo      1:1.3.1-12
ii  libopus0             1.1-2
ii  libpam0g             1.1.8-3.1+deb8u2
ii  libssl1.0.0          1.0.1t-1+deb8u6
ii  libx11-6             2:1.6.2-3
ii  libxfixes3           1:5.0.1-2+b2
ii  libxrandr2           2:1.4.2-1+b1
ii  lsb-base             4.1+Debian13+nmu1
ii  ssl-cert             1.0.35

Versions of packages xrdp recommends:
ii  fuse      2.9.3-15+deb8u2
ii  xorgxrdp  0.9.1-4~bpo8+1

Versions of packages xrdp suggests:
pn  guacamole  <none>

Versions of packages xorgxrdp depends on:
ii  libc6                                  2.19-18+deb8u9
pn  xorg-input-abi-21                      <none>
ii  xserver-xorg-core [xorg-video-abi-18]  2:1.16.4-1

Versions of packages xorgxrdp recommends:
ii  xorg  1:7.7+7

Versions of packages xrdp is related to:
ii  vnc4server [vnc-server]  4.1.1+X4.3.0-37.6
pn  xserver-xorg-legacy      <none>

-- Configuration Files:
/etc/xrdp/xrdp.ini changed:
[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=high
channel_code=1
max_bpp=24
[xrdp1]
name=sesman-X11rdp
lib=libvnc.so
username=amorand
password=ask
ip=127.0.0.1
port=5900
[xrdp2]
name=sesman-Xvnc
lib=libvnc.so
username=amorand
password=ask
ip=127.0.0.1
port=5900


-- no debconf information



More information about the pkg-remote-team mailing list