pendant que j'essaye
Sudo apt-get upgrade
je reçois ce qui suit:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
apport
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
28 not fully installed or removed.
Need to get 0 B/120 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 534975 files and directories currently installed.)
Preparing to unpack .../apport_2.20.1-0ubuntu2.6_all.deb ...
/var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: pyclean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 19: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.6_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apport.postinst: 13: /var/lib/dpkg/info/apport.postinst: pycompile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.20.1-0ubuntu2.6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Quel est le problème avec apport
et
dpkg: error while cleaning up:
et
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.20.1-0ubuntu2.6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
j'ai essayé:
Sudo dpkg --purge --force-all apport
alors j'ai eu:
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
(Reading database ... 534968 files and directories currently installed.)
Removing apport (2.20.1-0ubuntu2.5) ...
/var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: pyclean: not found
dpkg: error processing package apport (--purge):
subprocess installed pre-removal script returned error exit status 127
/var/lib/dpkg/info/apport.postinst: 13: /var/lib/dpkg/info/apport.postinst: pycompile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
apport
après ça :
J'ai vérifié et je peux confirmer que /var/lib/dpkg/info/apport.postinst
et /var/lib/dpkg/info/apport.prerm
existent sur le système.
toutes les commandes suivantes n'ont pas fonctionné pour moi:
Sudo apt-get install apport --reinstall
Sudo dpkg --purge --force-all apport
Sudo apt-get clean
Sudo apt purge apport
Sudo apt install apport
Sudo apt -f install
udo dpkg -i --force-overwrite apport
dpkg -i --force-overwrite /var/cache/apt/archives/apport_2.20.1-0ubuntu2.6_all.deb
Sudo apt-get -o Dpkg::Options::="--force-overwrite" install apport-dev
edit1 l essayé aussi
Sudo dpkg -r man-db mais je reste coincé ici:
dpkg: error processing package man-db (--remove):
dependency problems - not removing
Errors were encountered while processing:
man-db
alors le folwing ne peut pas être exécuté
Sudo dpkg -r apport
Sudo apt-get upgrade
Sudo apt-get install -f
j'ai eu la même erreur, donc je l'ai corrigé en utilisant ceci
Sudo dpkg --purge path/package.deb
Sudo apt-get -f install
Sudo apt-get update && Sudo apt-get upgrade