软件包的安装或删除失败

软件包的安装或删除失败

我最近更新到了 ubuntu 13.04,在从软件中心安装一些随机程序后,我收到“软件包操作失败”-“软件包安装或删除失败。” 看起来这与 python 3.3 有关。有人能解释一下这到底是怎么回事吗?(请注意,随机程序已安装)

全粘贴

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):

答案1

如果您安装了 Synaptic 软件包管理器,请打开它,然后在左侧选择“损坏”。卸载或重新安装损坏的软件包。

我显示 libmotif4 是一个损坏的软件包。结果发现我还安装了 libmotif3,这导致了问题。我删除了 libmotif3 并重新安装了 4。

答案2

打开终端并输入

sudo apt-get update
sudo dpkg-reconfigure -a

相关内容