web-dev-qa-db-fra.com

L'installation ou la suppression d'un progiciel a échoué

J'ai récemment mis à jour ubuntu 13.04, après l'installation d'un programme aléatoire à partir du centre logiciel, le message "L'opération de package a échoué" - "L'installation ou la suppression d'un package logiciel a échoué". et il semble que cela ait à voir avec python 3.3. Quelqu'un peut-il expliquer en quoi cela consiste (notez que le programme aléatoire a été installé)

pâte complète

installArchives() failed: Selecting previously unselected package zenmap.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%

----------

Unpacking zenmap (from .../zenmap_6.00-0.3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
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
No apport report written because MaxReports is reached already
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.
----------
Errors were encountered while processing:
 python3.3-minimal
 python3-minimal
 python3.3
 python3
 python3-apt
 python3-dbus
 language-selector-common
 python3-gi
 bluez
 gnome-menus
 kde-runtime
 kdenlive
 gnome-bluetooth
 indicator-bluetooth
 gnome-control-center
 python3-xkit
 ubuntu-drivers-common
 python3-pkg-resources
 python3-crypto
 python3-oauthlib
 friends-dispatcher
 libfriends0
 lsb-release
 ubuntu-minimal
 python3-gdbm:i386
 python3-commandnotfound
 command-not-found
 python3-distupgrade
 python3-update-manager
 ubuntu-release-upgrader-core
 ubuntu-standard
 ufw
 update-manager-core
 python3-problem-report
 python3-apport
 apport
 apport-gtk
 apturl-common
 unattended-upgrades
 python3-software-properties
 software-properties-common
 python3-aptdaemon
 python3-aptdaemon.gtk3widgets
 software-properties-gtk
 apturl
Setting up zenmap (6.00-0.3) ...
Setting up python3.3-minimal (3.3.1-1ubuntu5) ...
Traceback (most recent call last):
2
user163063

Si vous avez installé Synaptic Package Manager, ouvrez-le, puis sélectionnez "cassé" sur le côté gauche. Désinstallez ou réinstallez le package endommagé.

Je montrais libmotif4 comme un paquet cassé. En fin de compte, libmotif3 était également installé, ce qui posait un problème. J'ai enlevé libmotif3 et réinstallé 4.

1
urb

ouvrez votre terminal et tapez comme

Sudo apt-get update
Sudo dpkg-reconfigure -a
0
rɑːdʒɑ