Nothing but a one line output reporting "tdm-trinity is broken or not fully installed". :-(
The first line is the shebang line!
And the second line is the one that didn't have "-x" at end until I tried your suggestion. How do I "see where it's failing", and solve $SUBJECT?
Have you tried adding " -x" to the first line and not to the "set -e" line?
# head tdm* ==> tdm-trinity.postinst01 <== #! /bin/sh
set -e
# source debconf library . /usr/share/debconf/confmodule
# debconf is not a registry, so we only fiddle with the default file if it # does not exist DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
==> tdm-trinity.postinst02 <== #! /bin/sh
set -e
# source debconf library . /usr/share/debconf/confmodule -x
# debconf is not a registry, so we only fiddle with the default file if it # does not exist DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager # dpkg-reconfigure tdm-trinity /usr/sbin/dpkg-reconfigure: tdm-trinity is broken or not fully installed
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
etc
On Sun July 14 2019 09:14:29 Mike Bird wrote:
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
etc
BTW, if "dpkg-reconfigure tdm-trinity" still doesn't show anything try "dpkg-reconfigure --force tdm-trinity".
--Mike
Mike Bird composed on 2019-07-14 12:28 (UTC-0400):
Mike Bird wrote:
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
etc
I still don't understand where you want me to put -x.
BTW, if "dpkg-reconfigure tdm-trinity" still doesn't show anything try "dpkg-reconfigure --force tdm-trinity".
# dpkg-reconfigure --force tdm-trinity insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common insserv: exiting now! # apt update Hit:1 http://deb.debian.org/debian buster InRelease Get:2 http://deb.debian.org/debian buster-updates InRelease [46.8 kB] Get:3 http://deb.debian.org/debian-security buster/updates InRelease [39.1 kB] Hit:4 http://www.deb-multimedia.org buster InRelease Get:5 http://mirror.xcer.cz/trinity-sb buster InRelease [40.8 kB] Get:6 http://mirror.xcer.cz/trinity-sb buster/main-r14 amd64 Packages [203 kB] Fetched 329 kB in 2s (172 kB/s) Reading package lists... Done # apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: tdelibs-data-trinity tdelibs14-trinity 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 18.2 MB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirror.xcer.cz/trinity-sb buster/main-r14 amd64 tdelibs-data-trinity all 4:14.0.7~pre12-0debian10.0.0+5 [9,608 kB] Get:2 http://mirror.xcer.cz/trinity-sb buster/main-r14 amd64 tdelibs14-trinity amd64 4:14.0.7~pre12-0debian10.0.0+5 [8,614 kB] Fetched 18.2 MB in 15s (1,192 kB/s) Reading changelogs... Done (Reading database ... 74744 files and directories currently installed.) Preparing to unpack .../tdelibs-data-trinity_4%3a14.0.7~pre12-0debian10.0.0+5_all.deb ... Unpacking tdelibs-data-trinity (4:14.0.7~pre12-0debian10.0.0+5) over (4:14.0.7~pre8-0debian10.0.0+4) ... Preparing to unpack .../tdelibs14-trinity_4%3a14.0.7~pre12-0debian10.0.0+5_amd64.deb ... Unpacking tdelibs14-trinity (4:14.0.7~pre12-0debian10.0.0+5) over (4:14.0.7~pre8-0debian10.0.0+4) ... Setting up tdelibs-data-trinity (4:14.0.7~pre12-0debian10.0.0+5) ... Setting up tdelibs14-trinity (4:14.0.7~pre12-0debian10.0.0+5) ... Setting up tdm-trinity (4:14.0.7~pre11-0debian10.0.0+5) ... insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common insserv: exiting now! dpkg: error processing package tdm-trinity (--configure): installed tdm-trinity package post-installation script subprocess returned error exit status 1 Processing triggers for man-db (2.8.5-2) ... Processing triggers for dbus (1.12.16-1) ... Processing triggers for libc-bin (2.28-10) ... Errors were encountered while processing: tdm-trinity E: Sub-process /usr/bin/dpkg returned an error code (1)
:~(
On Sun July 14 2019 09:53:37 Felix Miata wrote:
Mike Bird composed on 2019-07-14 12:28 (UTC-0400):
Mike Bird wrote:
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
etc
I still don't understand where you want me to put -x.
#! /bin/sh -x
Mike Bird composed on 2019-07-14 10:35 (UTC-0700):
On Sun July 14 2019 09:53:37 Felix Miata wrote:
Mike Bird composed on 2019-07-14 12:28 (UTC-0400):
Mike Bird wrote:
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
etc
I still don't understand where you want me to put -x.
#! /bin/sh -x
# head /var/lib/dpkg/info/tdm-trinity.postinst #! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
# debconf is not a registry, so we only fiddle with the default file if it # does not exist DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager # dpkg-reconfigure tdm-trinity /usr/sbin/dpkg-reconfigure: tdm-trinity is broken or not fully installed
Mike Bird composed on 2019-07-14 15:11 (UTC-0700):
Felix Miata wrote:
# dpkg-reconfigure tdm-trinity /usr/sbin/dpkg-reconfigure: tdm-trinity is broken or not fully installed
Try "dpkg-reconfigure --force tdm-trinity".
#! /bin/sh -x
set -e
# source debconf library . /usr/share/debconf/confmodule
# debconf is not a registry, so we only fiddle with the default file if it # does not exist DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager # dpkg-reconfigure --force tdm-trinity + set -e + . /usr/share/debconf/confmodule + [ ! 1 ] + [ -z ] + exec + [ ] + exec + DEBCONF_REDIR=1 + export DEBCONF_REDIR + DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager + [ ! -e /etc/X11/default-display-manager ] + DEFAULT_DISPLAY_MANAGER= + db_get shared/default-x-display-manager + _db_cmd GET shared/default-x-display-manager + _db_internal_IFS=
+ IFS= + printf %s\n GET shared/default-x-display-manager + IFS=
+ read -r _db_internal_line + IFS=
+ RET=tdm-trinity + return 0 + DEFAULT_DISPLAY_MANAGER=tdm-trinity + [ -n tdm-trinity ] + DAEMON_NAME= + db_get tdm-trinity/daemon_name + _db_cmd GET tdm-trinity/daemon_name + _db_internal_IFS=
+ IFS= + printf %s\n GET tdm-trinity/daemon_name + IFS=
+ read -r _db_internal_line + IFS=
+ RET=/opt/trinity/bin/tdm + return 0 + DAEMON_NAME=/opt/trinity/bin/tdm + [ ! -n /opt/trinity/bin/tdm ] + [ -n /opt/trinity/bin/tdm ] + echo /opt/trinity/bin/tdm + [ -e /etc/X11/default-display-manager.dpkg-tmp ] + rm /etc/X11/default-display-manager.dpkg-tmp + DEFAULT_SERVICE=/etc/systemd/system/display-manager.service + [ configure = configure ] + [ -d /etc/systemd/system/ ] + [ -e /etc/X11/default-display-manager ] + cat /etc/X11/default-display-manager + basename /opt/trinity/bin/tdm + SERVICE=/lib/systemd/system/tdm.service + [ -h /etc/systemd/system/display-manager.service ] + readlink /etc/systemd/system/display-manager.service + [ /lib/systemd/system/tdm.service = /dev/null ] + [ -e /lib/systemd/system/tdm.service ] + ln -sf /lib/systemd/system/tdm.service /etc/systemd/system/display-manager.service + db_stop + echo STOP + NOSTART= + [ -e /var/run/tdm-trinity.upgrade ] + NOSTART=yes + hostname + hostname -f + echo :0 + grep -q ^:0.* + NOSTART=yes + break + start-stop-daemon --stop --quiet --signal 0 --pidfile /var/run/tdm.pid --exec /opt/trinity/bin/tdm + grep -qs ^restart-on-upgrade /etc/trinity/tdm/tdm.options + NOSTART=yes + SARGEXSERVERS=d3ab063f564492e0e31830f56ccd350e + grep -s ^ConfigVersion= /etc/trinity/tdm/tdmrc+ sed s/^ConfigVersion=//
+ CONFIGLEVEL=2.3 + [ -e /etc/trinity/tdm/tdmrc ] + dpkg --compare-versions 2.3 ge 2.3 + TDMRCUPDATED=yes + [ -e /etc/trinity/tdm/Xservers ] + [ ! -z yes ] + [ ! -z ] + [ ! -z yes ] + [ -e /etc/trinity/tdm/Xservers ] + [ -f /etc/init.d/tdm-trinity ] + [ -x /etc/init.d/tdm ] + which insserv + [ -x /sbin/insserv ] + insserv tdm insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common insserv: exiting now!
On Sun July 14 2019 15:34:15 Felix Miata wrote:
insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common
(1) If you don't really need NFS you could try purging it.
(2) Otherwise let's check that you have the right Buster versions:
$ (dpkg -l rpcbind; dpkg -l nfs-common) | grep '^ii' ii rpcbind 0.2.3-0.6 amd64 converts RPC program numbers into universal addresses ii nfs-common 1:1.3.4-2.1 amd64 NFS support files common to client and server
(3) If the versions are correct take a look at both relevant files:
$ head /etc/init.d/rpcbind #!/bin/sh # # start/stop rpcbind daemon.
### BEGIN INIT INFO # Provides: rpcbind # Required-Start: $network $local_fs # Required-Stop: $network $local_fs # Default-Start: S # Default-Stop: 0 1 6
$ head /etc/init.d/nfs-common #!/bin/bash
### BEGIN INIT INFO # Provides: nfs-common # Required-Start: $portmap $time # Required-Stop: $time # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: NFS support files common to client and server # Description: NFS is a popular protocol for file sharing across
(4) If yours are different try reinstalling them, or purging and reinstalling them, or as a last resort editing them to look like the above.
--Mike
On Monday 15 of July 2019 01:04:24 Mike Bird wrote:
On Sun July 14 2019 15:34:15 Felix Miata wrote:
insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common
(1) If you don't really need NFS you could try purging it.
(2) Otherwise let's check that you have the right Buster versions:
$ (dpkg -l rpcbind; dpkg -l nfs-common) | grep '^ii' ii rpcbind 0.2.3-0.6 amd64 converts RPC program numbers into universal addresses ii nfs-common 1:1.3.4-2.1 amd64 NFS support files common to client and server
(3) If the versions are correct take a look at both relevant files:
$ head /etc/init.d/rpcbind #!/bin/sh # # start/stop rpcbind daemon.
### BEGIN INIT INFO # Provides: rpcbind # Required-Start: $network $local_fs # Required-Stop: $network $local_fs # Default-Start: S # Default-Stop: 0 1 6
$ head /etc/init.d/nfs-common #!/bin/bash
### BEGIN INIT INFO # Provides: nfs-common # Required-Start: $portmap $time # Required-Stop: $time # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: NFS support files common to client and server # Description: NFS is a popular protocol for file sharing across
(4) If yours are different try reinstalling them, or purging and reinstalling them, or as a last resort editing them to look like the above.
--Mike
In any case, I thank to both for a useful result! Though somewhat strange, tdm-trinity fails but not its own guilty. Now at least we know what needs to treat.
Cheers
On Sun July 14 2019 16:18:09 Slávek Banko wrote:
In any case, I thank to both for a useful result! Though somewhat strange, tdm-trinity fails but not its own guilty. Now at least we know what needs to treat.
tdm-trinity is doing the right thing. insserv is reporting an inconsistency in /etc/init.d and tdm-trinity is correct not to ignore the error.
It would be nice if dpkg made it easier to see such errors without editing dpkg scripts but again that's not a TDE problem.
--Mike
Slávek Banko composed on 2019-07-15 01:18 (UTC+0100):
Mike Bird wrote:
(4) If yours are different try reinstalling them, or purging and reinstalling them, or as a last resort editing them to look like the above.
In any case, I thank to both for a useful result! Though somewhat strange, tdm-trinity fails but not its own guilty. Now at least we know what needs to treat.
I gave up finding the cause. I took a brute force approach, purged *trinity*, nfs-common, nfs-kernel-server, rpcbind, libtirpc3, rebooted, reinstalled rpcbind, nfs-kernel-server nfs-common, rebooted, reinstalled trinity. Subsequently I was able to purge inxi without getting any error messages, so I'm assuming insserv and/or rpcbind or whatever is now fixed, even though dpkg still reports 125 rc packages.
Thanks very much Mike!
Mike Bird composed on 2019-07-14 16:04 (UTC-0700):
Felix Miata wrote:
insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common
(1) If you don't really need NFS you could try purging it.
I really do, but...
(2) Otherwise let's check that you have the right Buster versions:
$ (dpkg -l rpcbind; dpkg -l nfs-common) | grep '^ii' ii rpcbind 0.2.3-0.6 amd64 converts RPC program numbers into universal addresses ii nfs-common 1:1.3.4-2.1 amd64 NFS support files common to client and server
# (dpkg -l rpcbind; dpkg -l nfs-common) | grep '^ii' ii rpcbind 1.2.5-0.3 amd64 converts RPC program numbers into universal addresses ii nfs-common 1:1.3.4-2.5 amd64 NFS support files common to client and server ...
(3) If the versions are correct take a look at both relevant files:
$ head /etc/init.d/rpcbind #!/bin/sh # # start/stop rpcbind daemon.
### BEGIN INIT INFO # Provides: rpcbind # Required-Start: $network $local_fs # Required-Stop: $network $local_fs # Default-Start: S # Default-Stop: 0 1 6
$ head /etc/init.d/nfs-common #!/bin/bash
### BEGIN INIT INFO # Provides: nfs-common # Required-Start: $portmap $time # Required-Stop: $time # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: NFS support files common to client and server # Description: NFS is a popular protocol for file sharing across
No fault found.
(4) If yours are different try reinstalling them, or purging and reinstalling them, or as a last resort editing them to look like the above.
# apt purge rpcbind libnfsidmap2 nfs-common nfs-kernel-server Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libtirpc-common libtirpc3 Use 'apt autoremove' to remove them. The following packages will be REMOVED: libnfsidmap2* nfs-common* nfs-kernel-server* rpcbind* 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 105 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 74629 files and directories currently installed.) Removing libnfsidmap2:amd64 (0.25-5.1) ... Setting up tdm-trinity (4:14.0.7~pre11-0debian10.0.0+5) ... insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common insserv: exiting now! dpkg: error processing package tdm-trinity (--configure): installed tdm-trinity package post-installation script subprocess returned error exit status 1 Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ... Errors were encountered while processing: tdm-trinity E: Sub-process /usr/bin/dpkg returned an error code (1) root@big31:~# dpkg-query -l | egrep 'rpcbind|nfs' ic nfs-common 1:1.3.4-2.5 amd64 NFS support files common to client and server ic nfs-kernel-server 1:1.3.4-2.5 amd64 support for NFS kernel server ic rpcbind 1.2.5-0.3 amd64 converts RPC program numbers into universal addresses # dpkg-reconfigure tdm-trinity /usr/sbin/dpkg-reconfigure: tdm-trinity is broken or not fully installed # apt reinstall tdm-trinity W: Package nfs-kernel-server had been marked to reinstall, but the file for the current installed version <none> is not available W: Package nfs-common had been marked to reinstall, but the file for the current installed version <none> is not available The following packages will be REINSTALLED: tdm-trinity The following packages will be REMOVED: libtirpc-common{u} libtirpc3{u} 0 packages upgraded, 0 newly installed, 1 reinstalled, 2 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 306 kB will be freed. Do you want to continue? [Y/n/?] y E: Internal Error, No file name for tdm-trinity:amd64 # apt install --fix-broken Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libtirpc-common libtirpc3 Use 'apt autoremove' to remove them. 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 tdm-trinity (4:14.0.7~pre11-0debian10.0.0+5) ... insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common insserv: exiting now! dpkg: error processing package tdm-trinity (--configure): installed tdm-trinity package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: tdm-trinity E: Sub-process /usr/bin/dpkg returned an error code (1)
:~(
Hi Felix,
First of all an apology. The package versions in my previous email were for Stretch, not Buster. You have the correct package versions for Buster.
On Sun July 14 2019 15:34:15 Felix Miata wrote:
insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-common
# grep Default-S /etc/init.d/{nfs*,rpcbind} /etc/init.d/nfs-common:# Default-Start: S /etc/init.d/nfs-common:# Default-Stop: 0 1 6 /etc/init.d/nfs-kernel-server:# Default-Start: 2 3 4 5 /etc/init.d/nfs-kernel-server:# Default-Stop: 0 1 6 /etc/init.d/rpcbind:# Default-Start: S /etc/init.d/rpcbind:# Default-Stop: 0 1 6
It looks like a bug in insserv but it works for me with insserv 1.18.0-2. Do you have this version?
Sorry I can't be more help. You could try editing the Default-Start to match but you're probably going to have to take this up with the NFS or insserv people.
--Mike