GNU/Linux >> Linux の 問題 >  >> Ubuntu

すべてのAptコマンドの出力でPythonパッケージを処理するときにエラーが発生しましたか?

E: Sub-process /usr/bin/dpkg returned an error code (1) sudo apt-get ...を実行しようとするたびに 理由がわかりません。例:

Setting up python-gobject-2 (2.28.6-12ubuntu1) ...
/var/lib/dpkg/info/python-gobject-2.postinst: 6:    /var/lib/dpkg/info/python-gobject-2.postinst: pycompile: not found
dpkg: error processing package python-gobject-2 (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up python-cairo (1.8.8-2) ...
/var/lib/dpkg/info/python-cairo.postinst: 6: /var/lib/dpkg/info/python-cairo.postinst: pycompile: not found
dpkg: error processing package python-cairo (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-gtk2:
 python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however:
  Package python-cairo is not configured yet.
 python-gtk2 depends on python-gobject-2 (>= 2.21.3); however:
  Package python-gobject-2 is not configured yet.

dpkg: error processing package python-gtk2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-liblarch:
 python-liblarch depends on python-gobject-2; however:
  Package python-gobject-2 is not configured yet.
 python-liblarch depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.

No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                  No apport report written because MaxReports has already been reached
                            dpkg: error processing package python-liblarch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-glade2:
 python-glade2 depends on python-gtk2 (= 2.24.0-4ubuntu1); however:
  Package python-gtk2 is not configured yet.

dpkg: error processing package python-glade2 (--configure):
 dependency problems - leaving unconfigured
Setting up python-dbus (1.2.0-3) ...
No apport report written because MaxReports has already been reached
                                                                    Remove stale byte-compiled files...
/var/lib/dpkg/info/python-dbus.postinst: 22: /var/lib/dpkg/info/python-dbus.postinst: pycompile: not found
dpkg: error processing package python-dbus (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports has already been reached
                                                                    Setting up python-xdg (0.25-4) ...
/var/lib/dpkg/info/python-xdg.postinst: 6: /var/lib/dpkg/info/python-xdg.postinst: pycompile: not found
dpkg: error processing package python-xdg (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports has already been reached
                                                                    Setting up python-six (1.10.0-3) ...
/var/lib/dpkg/info/python-six.postinst: 6: /var/lib/dpkg/info/python-six.postinst: pycompile: not found
dpkg: error processing package python-six (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of python-configobj:
 python-configobj depends on python-six; however:
  Package python-six is not configured yet.

dpkg: error processing package python-configobj (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of gtg:
 gtg depends on python-gtk2 (>= 2.14); however:
  Package python-gtk2 is not configured yet.
 gtg depends on python-glade2; however:
  Package python-glade2 is not configured yet.
 gtg depends on python-dbus; however:
  Package python-dbus is not configured yet.
 gtg depends on python-xdg; however:
  Package python-xdg is not configured yet.
 gtg depends on python-configobj; however:
  Package python-configobj is not configured yet.
 gtg depends on python-liblarch (>= 2.1.0); however:
  Package python-liblarch is not configured yet.

dpkg: error processing package gtg (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Setting up python-gi (3.20.0-0ubuntu1) ...
/var/lib/dpkg/info/python-gi.postinst: 6: /var/lib/dpkg/info/python-gi.postinst: pycompile: not found
dpkg: error processing package python-gi (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of ibus-pinyin:
 ibus-pinyin depends on python-gi; however:
  Package python-gi is not configured yet.
 ibus-pinyin depends on python-xdg; however:
  Package python-xdg is not configured yet.

dpkg: error processing package ibus-pinyin (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Setting up python-simplejson (3.8.1-1ubuntu2) ...
/var/lib/dpkg/info/python-simplejson.postinst: 6: /var/lib/dpkg/info/python-simplejson.postinst: pycompile: not found
dpkg: error processing package python-simplejson (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports has already been reached
                                                                    Setting up python-wxversion (3.0.2.0+dfsg-1build1) ...
/var/lib/dpkg/info/python-wxversion.postinst: 6: /var/lib/dpkg/info/python-wxversion.postinst: pycompile: not found
No apport report written because MaxReports has already been reached
                                                                    dpkg: error processing package python-wxversion (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-wxgtk3.0:
 python-wxgtk3.0 depends on python-wxversion; however:
  Package python-wxversion is not configured yet.

dpkg: error processing package python-wxgtk3.0 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of compizconfig-settings-manager:
 compizconfig-settings-manager depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.

dpkg: error processing package compizconfig-settings-manager (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 python-gobject-2
 python-cairo
 python-gtk2
 python-liblarch
 python-glade2
 python-dbus
 python-xdg
 python-six
 python-configobj
 gtg
 python-gi
 ibus-pinyin
 python-simplejson
 python-wxversion
 python-wxgtk3.0
 compizconfig-settings-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)

また:dpkg –verifypython-minimalは何も返しません

関連:Ubuntuインストールの整合性をチェックする必要がありますか?

承認された回答:

複数のパッケージがpycompileを実行しようとしています それらの実行中のプログラム。 dpkg-query -S */pycompile pycompile python-minimalの一部であるプログラムです パッケージ。 Aptはパッケージの欠落について文句を言いませんが、それでもプログラムが欠落しているようです。破損したパッケージは次の方法で復元できます:

sudo apt-get install -f --reinstall python-minimal

Aptがそのパッケージを再インストールできないと苦情を言った場合(たとえば、パッケージが半分インストールされているため)、さらに深く調べて、パッケージを手動でダウンロードしてインストールする必要があります。

cd /tmp
apt-get download python-minimal
sudo dpkg -i python-minimal_*.deb
sudo apt-get install -f

Ubuntu
  1. Ubuntu18.04LTSでAPTを使用してパッケージを管理する方法

  2. Linuxでaptコマンドを使用してパッケージを管理する方法

  3. OpenStackダッシュボードのインストールエラー–パッケージopenstack-dashboard-ubuntu-themeの処理中にエラーが発生しました[解決済み]

  1. トップ3コマンドラインUbuntuパッケージマネージャーツール

  2. Dpkg:パッケージUbuntu-make(–configure)の処理中にエラーが発生しました:?

  3. Linux でのパッケージ管理のための 15 の aptitude コマンドの例

  1. Ubuntu/Debianでパッケージを管理するためのAptgetコマンドの例

  2. SUSE Linux でパッケージを管理する 20 の Zypper コマンドの例

  3. apt:コマンドが見つかりません