Après un apt-get upgrade
j'ai eu l'erreur suivante:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
File "/usr/lib/python3.3/py_compile.py", line 8, in <module>
import imp
File "/usr/lib/python3.3/imp.py", line 28, in <module>
import tokenize
File "/usr/lib/python3.3/tokenize.py", line 28, in <module>
import re
File "/usr/lib/python3.3/re.py", line 122, in <module>
import sre_compile
File "/usr/lib/python3.3/sre_compile.py", line 14, in <module>
import sre_parse
File "/usr/lib/python3.3/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/usr/lib/python3.3/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
dpkg: error processing python3.3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3.3:
python3.3 depends on python3.3-minimal (= 3.3.1-1ubuntu5); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3.3 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
python3.3-minimal
python3.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
et je ne peux pas éteindre mon ordinateur ...
Je suppose que je n’ai pas installé correctement python 3.3, mais comment puis-je le réparer?
Edit: j'ai essayé apt-get --reinstall install python2 python2-support
mais j'ai eu: la même erreur
EDIT: Plus d'informations
sur mon système: Linux Mycomputer 3.5.0-34-generic # 55-Ubuntu SMP Thu Jun 6 20:20:19 UTC 2013 i686 i686 i686 GNU/Linux
dpkg --print-architecture
i386
J'avais l'habitude d'ubuntu 12.10. Mon problème est survenu lorsque j'ai essayé de le mettre à niveau vers 13.04. J'ai reçu un message d'erreur me disant que le processus s'était arrêté car il y avait trop d'erreurs.
J'ai ensuite essayé d'exécuter Sudo apt-get update && Sudo apt-get upgrade
mais j'ai rencontré l'erreur ci-dessus.
J'ai eu un problème similaire il y a quelques mois lorsque j'ai supprimé par erreur python2 de mon ordinateur. Je ne pouvais alors pas éteindre mon ordinateur en cliquant sur l'icône (il ne répond pas) et en l'éteignant. Le seul moyen était de le forcer à s'arrêter manuellement. Quand je l'ai rallumé, j'avais juste un bureau vide et je ne pouvais rien faire. Cela a été corrigé en réinstallant tout le système.
En cherchant sur Internet, j'ai essayé plusieurs commandes:
Sudo dpkg --configure -a
qui a abouti à
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
File "/usr/lib/python3.3/py_compile.py", line 8, in <module>
import imp
File "/usr/lib/python3.3/imp.py", line 28, in <module>
import tokenize
File "/usr/lib/python3.3/tokenize.py", line 28, in <module>
import re
File "/usr/lib/python3.3/re.py", line 122, in <module>
import sre_compile
File "/usr/lib/python3.3/sre_compile.py", line 14, in <module>
import sre_parse
File "/usr/lib/python3.3/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/usr/lib/python3.3/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
dpkg: error processing python3.3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.3-minimal (>= 3.3.1-1~); however:
Package python3.3-minimal is not configured yet.
Sudo apt-get --reinstall install python3 python3-support
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-support
Sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
File "/usr/lib/python3.3/py_compile.py", line 8, in <module>
import imp
File "/usr/lib/python3.3/imp.py", line 28, in <module>
import tokenize
File "/usr/lib/python3.3/tokenize.py", line 28, in <module>
import re
File "/usr/lib/python3.3/re.py", line 122, in <module>
import sre_compile
File "/usr/lib/python3.3/sre_compile.py", line 14, in <module>
import sre_parse
File "/usr/lib/python3.3/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/usr/lib/python3.3/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
dpkg: error processing python3.3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.3-minimal (>= 3.3.1-1~); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.3:
python3.3 depends on python3.3-minimal (= 3.3.1-1ubuntu5); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3.3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.3 (>= 3.3.1-1~); however:
Package python3.3 is not configured yet.
python3 depends on python3-minimal (= 3.3.1-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.3-minimal
python3-minimal
python3.3
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: error processing python3-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.3.1-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.3:
python3.3 depends on python3.3-minimal (= 3.3.1-1ubuntu5); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3.3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.3-minimal
python3-minimal
python3
python3.3
python --version
retourne Python 2.7.4
Faire:
cd /tmp
Sudo apt-get download python3
Sudo dpkg -i python3*.deb && apt-get dist-upgrade
résultats
(Reading database ... 374310 files and directories currently installed.)
Preparing to replace python3 3.3.1-0ubuntu1 (using python3_3.3.1-0ubuntu1_i386.deb) ...
running python pre-rtupdate hooks for python3.3...
Unpacking replacement python3 ...
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.3 (>= 3.3.1-1~); however:
Package python3.3 is not configured yet.
python3 depends on python3-minimal (= 3.3.1-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
python3
J'ai également essayé de supprimer et de réinstaller python3
Toute aide s'il vous plaît?
Edité après la réponse de Gx1sptDTDa
Sudo apt-get clean
Sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
File "/usr/lib/python3.3/py_compile.py", line 8, in <module>
import imp
File "/usr/lib/python3.3/imp.py", line 28, in <module>
import tokenize
File "/usr/lib/python3.3/tokenize.py", line 28, in <module>
import re
File "/usr/lib/python3.3/re.py", line 122, in <module>
import sre_compile
File "/usr/lib/python3.3/sre_compile.py", line 14, in <module>
import sre_parse
File "/usr/lib/python3.3/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/usr/lib/python3.3/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
dpkg: error processing python3.3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.3-minimal (>= 3.3.1-1~); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.3:
python3.3 depends on python3.3-minimal (= 3.3.1-1ubuntu5); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3.3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.3 (>= 3.3.1-1~); however:
Package python3.3 is not configured yet.
python3 depends on python3-minimal (= 3.3.1-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.3-minimal
python3-minimal
python3.3
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
Édition: Installation de toutes les dépendances pour python3.3-minimal
Sudo apt-get install libc6 libexpat1 libpython3.3-minimal zlib1g
résultats
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version.
libexpat1 is already the newest version.
libpython3.3-minimal is already the newest version.
libpython3.3-minimal set to manually installed.
zlib1g is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
File "/usr/lib/python3.3/py_compile.py", line 8, in <module>
import imp
File "/usr/lib/python3.3/imp.py", line 28, in <module>
import tokenize
File "/usr/lib/python3.3/tokenize.py", line 28, in <module>
import re
File "/usr/lib/python3.3/re.py", line 122, in <module>
import sre_compile
File "/usr/lib/python3.3/sre_compile.py", line 14, in <module>
import sre_parse
File "/usr/lib/python3.3/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/usr/lib/python3.3/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
dpkg: error processing python3.3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.3-minimal (>= 3.3.1-1~); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.3:
python3.3 depends on python3.3-minimal (= 3.3.1-1ubuntu5); however:
Package python3.3-minimal is not configured yet.
dpkg: error processing python3.3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.3 (>= 3.3.1-1~); however:
Package python3.3 is not configured yet.
python3 depends on python3-minimal (= 3.3.1-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.3-minimal
python3-minimal
python3.3
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
EDIT: Sudo dbkg-reconfigure -a
1/Demande: ─────────────────────────────┤ Adduser ──────────────────┐
│ │
│ Par défaut, les répertoires de départ des utilisateurs sont lisibles par tous les utilisateurs du répertoire.
│ système. Si vous voulez augmenter la sécurité et la confidentialité, vous voudrez peut-être
│ les répertoires de départ ne doivent être lisibles que par leurs propriétaires. Mais en cas de doute,
│ laissez cette option activée. │
│ │
│ Ceci n'affectera que les répertoires de départ des utilisateurs ajoutés à partir de maintenant avec
│ la commande adduser. │
│ │
│ Voulez-vous des répertoires de base lisibles à l’échelle du système?
A dit oui
2/┤ Configuration de apparmor
│ Veuillez entrer une liste d'espaces supplémentaires pour l'utilisateur
│ répertoires de base. Ces emplacements s’ajoutent à ceux spécifiés dans
│ /etc/apparmor.d/tunables/home et doit se terminer par un '/'. │
│ │
│ Exemple: si les répertoires de l'utilisateur sont stockés dans/srv/nfs/home et
│/mnt/homes, vous devez entrer "/ srv/nfs/home// mnt/homes /". │
│ │
│ Emplacements supplémentaires du répertoire de base:
Je ne sais pas quel endroit indiquer ... alors je passe juste
Enfin, j'ai lu sur le shell:
update-rc.d: warning: /etc/init.d/acpi-support missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
acpid stop/waiting
acpid start/running, process 24816
* Starting AppArmor
profiles Skipping
profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
[ OK ]
* Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
[ OK ]
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <[email protected]>"
not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <[email protected]>"
not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012)
<[email protected]>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012)
<[email protected]>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
/usr/sbin/dpkg-reconfigure: asymptote is broken or not fully installed
Edit: Synaptic Sur Synaptic, aucune "dépendance brisée" n'est affichée (je clique sur le statut et tout ce que je peux voir est: Tout installé Installé (local ou obsolète) Installé (manuel) Non installé Non installé (résiduel config)
EDIT
Le problème était lié au rapport de bogue suivant: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1165281
Suivez les étapes des commentaires 3 à 5, mais changez le chemin en python3.3 plutôt qu'en 2.7.
J'ai eu le même problème avec un paquet différent, libamd2.3.1: AMD64. J'ai eu cette erreur:
> Sudo apt upgrade
[...]
Errors were encountered while processing:
libamd2.3.1:AMD64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Après this thread, j’ai réussi à le supprimer avec dpkg et à le réinstaller avec apt.
Sudo dpkg --remove --force-remove-reinstreq libamd2.3.1:AMD64
Sudo apt-get install libamd2.3.1:AMD64