Avoir un problème avec installer/désinstaller snapd.
Ma version de snap sur mon Ubuntu 16.04 pour une raison quelconque n'est pas correcte:
snap --version
snap 2.31.1~14.04
snapd unavailable
series -
Je souhaite donc réinstaller manuellement le snad en utilisant:
Sudo apt-get install snapd
et obtenez l'erreur:
Errors were encountered while processing:
/var/cache/apt/archives/snapd_2.33.1~14.04_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
J'ai décidé de désinstaller cette version en essayant d'utiliser cette commande:
Sudo apt purge snapd ubuntu-core-launcher squashfs-tools
me donnant ce résultat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ubuntu-core-launcher' is not installed, so not removed
The following packages will be REMOVED:
snapd* squashfs-tools*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 79,3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 312065 files and directories currently installed.)
Removing snapd (2.31.1~14.04) ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: error processing package snapd (--purge):
subprocess installed pre-removal script returned error exit status 5
dpkg: squashfs-tools: dependency problems, but removing anyway as you requested:
snapd depends on squashfs-tools; however:
Package squashfs-tools is to be removed.
Removing squashfs-tools (1:4.3-3ubuntu2.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
snapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Commander:
apt-get -f install
ne va pas aider aussi bien.
~$ apt-cache policy snapd
snapd:
Installed: 2.31.1~14.04
Candidate: 2.33.1~14.04
Version table:
2.33.1~14.04 500
500 http://archive.ubuntu.com/ubuntu trusty-proposed/universe AMD64 Packages
2.32.9 500
500 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 Packages
2.32.9~14.04 500
500 http://archive.ubuntu.com/ubuntu trusty-updates/universe AMD64 Packages
*** 2.31.1~14.04 100
100 /var/lib/dpkg/status
2.0.2 500
500 http://ru.archive.ubuntu.com/ubuntu xenial/main AMD64 Packages
S'il vous plaît, si vous avez une idée de ce qui se passe et comment résoudre ce problème, aidez-moi :)
Modifier:
Trusty paquets que j'ai dans une liste de souces:
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
Ma version de résoudre ce problème:
/etc/apt/sources.list
.Sudo apt-get update
et vérifiez que apt-cache policy snapd
a maintenant le Candidate: 2.32.9
dont vous avez besoin. essayez de Sudo apt install --reinstall snapd
.Sub-process /usr/bin/dpkg returned an error code (1)
, nettoyez le cd var/lib/dpkg/info
avec Sudo rm ./snapd*
et réinstallez le snapd Sudo apt install --reinstall snapd
.snap --version
.