web-dev-qa-db-fra.com

problème de gestionnaire de paquets snapd dans Ubuntu 16.04, comment résoudre?

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)
4
seshu p

Ajoutez exit 0 après Shebang à /var/lib/dpkg/info/snapd.prerm.

Ensuite, supprimez un paquet dpkg --purge --force-all snapd.

Vérifiez vos sources pour la fiabilité rgrep 'xenial' /etc/apt et supprimez toutes les sources correspondant à la version incorrecte de snapd.

Exécutez apt-get update et mettez à niveau un système pour qu'il soit dans un état cohérent.

8
vskubriev