snapd problema gerenciador de pacotes no Ubuntu 16.04, como resolver?

4
After this operation, 33.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 329734 files and directories currently installed.)
Removing snapd (2.21~14.04) ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
dpkg: error processing package snapd (--remove):
 subprocess installed pre-removal script returned error exit status 5
Failed to get unit file state for snapd.refresh.timer: No such file or directory
snapd.refresh.timer is a disabled or a static unit, not starting it.
Failed to get unit file state for snapd.autoimport.service: No such file or directory
snapd.autoimport.service is a disabled or a static unit, not starting it.
Errors were encountered while processing:
 snapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por seshu p 29.01.2017 / 15:05

1 resposta

7

Adicione exit 0 depois de passar para /var/lib/dpkg/info/snapd.prerm .

Em seguida, remova um pacote dpkg --purge --force-all snapd .

Verifique se você tem fontes pkg para rgrep 'xenial' /etc/apt confiável e remova todas as fontes às quais corresponda a versão imprópria do snapd.

Execute apt-get update e atualize um sistema para estar em estado consistente.

    
por vskubriev 02.02.2017 / 15:54