Something went wrong when updating Synergy app and now it's impossible to do anything with the package: the dreaded (at least for me) "Sub-process /usr/bin/dpkg returned an error code (1)". I copy the log when trying to purge it:
(Reading database… 250720 files and directories currently installed.)
Removing synergy (3.6.1)…
production build
[[email protected]] injecting env (0) from root/.config/Synergy/.env -- tip: 🛠️ run anywhere with `dotenvx run -- yourcommand`
loaded .env from: /root/.config/Synergy/.env
.env file parsed: {}
[env] SYNERGY_LOGGER: not set
[env] SYNERGY_FORCE_CORE_LOG_LEVEL: not set
[env] SYNERGY_FORCE_SERVICE_LOG_LEVEL: not set
using log level: INFO
using logger: /root/.local/state/Synergy/synergy.log
skipping node version check in production (current: v22.22.2)
exiting process with code: 1
dpkg: error processing package synergy (--remove):
old synergy package prerm maintainer script subprocess failed with exit status 1
dpkg: too many errors, stopping
production build
[[email protected]] injecting env (0) from root/.config/Synergy/.env -- tip: ⚙️ write to custom object with { processEnv: myObject }
loaded .env from: /root/.config/Synergy/.env
.env file parsed: {}
[env] SYNERGY_LOGGER: not set
[env] SYNERGY_FORCE_CORE_LOG_LEVEL: not set
[env] SYNERGY_FORCE_SERVICE_LOG_LEVEL: not set
using log level: INFO
using logger: /root/.local/state/Synergy/synergy.log
skipping node version check in production (current: v22.22.2)
exiting process with code: 1
Errors were encountered while processing:
synergy
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)
I tried all the basic troubleshooting stuff like dpkg --configure -a, sudo apt -f install, apt-clean and several forms of deletion without success.
Thank you in advance.
Follow up. Sorry for the delay. I ended up leaving the city for several days. I got this:
~$ export SYNERGY_LOGGER=DEBUG ~$ cat /var/lib/dpkg/info/synergy.prerm #!/usr/bin/env sh
sudo ./opt/Synergy/synergy-service --uninstall
I don't know if this is of help. Thank you.