This issue left one of my systems complaining every time I performed an
"apt-get" operation.

"apt-get install", "apt-get remove", and "apt-get upgrade" would all print
similar errors to this:

$ sudo dpkg --no-triggers --remove ghc6
(Reading database ... 134569 files and directories currently installed.)
Removing ghc6 ...
haskell-utils: timer_create: Invalid argument
dpkg: error processing ghc6 (--remove):
 subprocess pre-removal script returned error exit status 1
haskell-utils: timer_create: Invalid argument
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ghc6

The fix was to replace haskell-utils (which was broken) with this:

#!/bin/bash

echo Skipping haskell-utils "$@"

Then I was able to remove ghc6 without errors.

Mikel

Reply via email to