1

It failed during dist-upgrade. I already removed this package PPA from sources, but if I do dist-upgrade or install -f, it still tries to execute this setup script and dies:

Setting up yd-tools (1.8.18) ...
dpkg: error processing package yd-tools (--configure):
 subprocess installed post-installation script was killed by signal (Terminated)
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I "refuse" updating it? I mean, it is cached, but I want not to update this specific package.

Removing yd-tools (1.8.18) ...
dpkg: error processing package yd-tools (--purge):
 subprocess installed pre-removal script was killed by signal (Terminated)
dpkg: error while cleaning up:
 subprocess installed post-installation script was killed by signal (Terminated)
Errors were encountered while processing:
 yd-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

this also didn't help

MInner
  • 383

2 Answers2

0

I did just remove the prerm script altogether.

In your case:

sudo rm /var/lib/dpkg/info/yd-tools.prerm
0

replacing /var/lib/dpkg/info/yd-tools.postinst with a exit 0 dummy did the trick

MInner
  • 383