Alors, quand je fais:
Sudo apt-get install *Package*
Ça dit:
dpkg: too many errors, stopping
Errors were encountered while processing:
resolvconf
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Quand j'essaie de voir quel est le problème, je tape:
Sudo resolvconf
Ça dit:
Command 'resolvconf' not found, but can be installed with:
Sudo apt install openresolv # version 3.10.0-1, or
Sudo apt install resolvconf # version 1.82
Puis quand j'essaie de l'installer avec:
Sudo apt-get install resolvconf
Cela me donne la même erreur d'apt-get comme avant. J'ai essayé d'installer le paquet Deb mais il dit:
Unable to install resolvconf:
Error while installing package: new resolvconf package post-
removal script subprocess returned error exit status 1
Que puis-je faire pour résoudre ce problème. Je peux fournir des informations supplémentaires dont vous avez besoin. J'utilise Ubuntu 20.04 LTS.
Vous devez corriger les erreurs des commandes antérieures avant d'essayer de nouvelles commandes.
Premier et plus facile est
Sudo apt -f install
ou d'autres options brisées --Fix? Il est émis sans paquet, il corrige donc les problèmes existants plutôt que de composer le problème.
De [man apt-get
] 1
-f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.