Hi guys,
I am unable to uninstall x2gotrinitybindings.
Its prerm script contains
case "$1" in configure) rm -f /opt/trinity/bin/kdesktop_lock mv /opt/trinity/bin/kdesktop_lock.trinity /opt/trinity/bin/kdesktop_lock ;;
abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;;
esac
which always breaks with the catch-all condition as uninstalling it passes "remove":
apt-get remove x2gotrinitybindings Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: x2gotrinitybindings 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. After this operation, 156 kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 121281 files and directories currently installed.) Removing x2gotrinitybindings ... postinst called with unknown argument `remove' dpkg: error processing x2gotrinitybindings (--remove): subprocess installed pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: x2gotrinitybindings E: Sub-process /usr/bin/dpkg returned an error code (1)
Trying to reinstall it breaks as well:
apt-get install --reinstall x2gotrinitybindings
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not
upgraded.
Need to get 0 B/17.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously deselected package x2gotrinitybindings.
(Reading database ... 121281 files and directories currently installed.)
Preparing to replace x2gotrinitybindings 0.0.0.1+squeeze~main~10~build1
(using .../x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb) ...
postinst called with unknown argument upgrade' dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... postinst called with unknown argument
failed-upgrade'
dpkg: error processing
/var/cache/apt/archives/x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb
(--unpack):
subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
Errors were encountered while
processing:
/var/cache/apt/archives/x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
And I believe postinst contains similar code.
Please fix this. And I think we need some kind of check that in future, such code doesn't end up in the stable repository (maybe a test box that does apt-get install --reinstall <packagename> and checks for errors/warnings in the output before a package goes into stable?).
Kind Regards, Stefan
Hi Stefan,
On Mo 06 Feb 2012 18:39:20 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi guys,
I am unable to uninstall x2gotrinitybindings.
Its prerm script contains
case "$1" in configure) rm -f /opt/trinity/bin/kdesktop_lock mv /opt/trinity/bin/kdesktop_lock.trinity /opt/trinity/bin/kdesktop_lock ;;
abort-upgrade|abort-remove|abort-deconfigure) ;;
*) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac
which always breaks with the catch-all condition as uninstalling it
passes "remove":apt-get remove x2gotrinitybindings Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: x2gotrinitybindings 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. After this operation, 156 kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 121281 files and directories currently installed.) Removing x2gotrinitybindings ... postinst called with unknown argument `remove' dpkg: error processing x2gotrinitybindings (--remove): subprocess installed pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while
processing: x2gotrinitybindings E: Sub-process /usr/bin/dpkg returned an error code (1)Trying to reinstall it breaks as well: apt-get install --reinstall x2gotrinitybindings Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded. Need to get 0 B/17.1 kB of archives. After this operation, 0 B of additional disk space will be used. Selecting previously deselected package x2gotrinitybindings. (Reading database ... 121281 files and directories currently installed.) Preparing to replace x2gotrinitybindings
0.0.0.1+squeeze~main~10~build1 (using
.../x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb) ... postinst called with unknown argumentupgrade' dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... postinst called with unknown argument
failed-upgrade' dpkg: error processing
/var/cache/apt/archives/x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb
(--unpack): subprocess new pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while
processing:/var/cache/apt/archives/x2gotrinitybindings_0.0.0.1+squeeze~main~10~build1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
And I believe postinst contains similar code.
Please fix this. And I think we need some kind of check that in
future, such code doesn't end up in the stable repository (maybe a
test box that does apt-get install --reinstall <packagename> and
checks for errors/warnings in the output before a package goes into
stable?).
x2gotrinitybindings does not have a release and it is indeed undeveloped.
Put an ,,exit 0'' at the top of that postrm script. That should help
you get rid of the script.
Do you need the trinity bindings? Alex is actually preparing some
universal tool for desktop integration, but this is probably a raw
egg...
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Am 06.02.2012 18:48, schrieb Mike Gabriel:
x2gotrinitybindings does not have a release and it is indeed undeveloped.
Shouldn't it be in heuler, then, rather than in the stable repo?
Put an ,,exit 0'' at the top of that postrm script. That should help you get rid of the script.
For anyone else having the same issue, the file is /var/lib/dpkg/info/x2gotrinitybindings.prerm
Do you need the trinity bindings? Alex is actually preparing some universal tool for desktop integration, but this is probably a raw egg...
Actually, I don't even need x2go on the machine any more, that's why I was trying to uninstall x2go* and ran into this issue.
-Stefan
Hi Stefan,
On Mo 06 Feb 2012 19:32:57 CET "newsgroups.mail2@stefanbaur.de" wrote:
Am 06.02.2012 18:48, schrieb Mike Gabriel:
x2gotrinitybindings does not have a release and it is indeed undeveloped.
Shouldn't it be in heuler, then, rather than in the stable repo?
Correct! Removed now!
Put an ,,exit 0'' at the top of that postrm script. That should
help you get rid of the script.For anyone else having the same issue, the file is
/var/lib/dpkg/info/x2gotrinitybindings.prerm
Indeed.
Do you need the trinity bindings? Alex is actually preparing some
universal tool for desktop integration, but this is probably a raw
egg...Actually, I don't even need x2go on the machine any more, that's why
I was trying to uninstall x2go* and ran into this issue.
ok...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...