Eu tive o mesmo problema em 16.10 e usei:
sudo rm /usr/bin/click
sudo apt --fix-broken install
Depois disso, as coisas começaram a funcionar novamente.
Eu uso o Ubuntu 14.04. Quando eu executo apt-get -f install
, recebo esta saída:
(Reading database ... 314897 files and directories currently installed.)
Preparing to unpack .../click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb ...
Failed to issue method call: Unit click-system-hooks.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to issue method call: Unit click-system-hooks.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
Failed to issue method call: Unit click-system-hooks.service failed to load: No such file or directory. See system logs and 'systemctl status click-system-hooks.service' for details.
Errors were encountered while processing:
/var/cache/apt/archives/click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Eu tive o mesmo problema em 16.10 e usei:
sudo rm /usr/bin/click
sudo apt --fix-broken install
Depois disso, as coisas começaram a funcionar novamente.