Debian 7 に Python3 パッケージをインストールできません。

Debian 7 に Python3 パッケージをインストールできません。

インストール中にエラーが発生しました。Python 3Debian 7(すべてのアップデートをインストールしました):

root@nuclight:~# aptitude install python3
The following NEW packages will be installed:
  python3 python3.2{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,621 kB of archives. After unpacking 8,991 kB will be used.
Do you want to continue? [Y/n/?] 
Selecting previously unselected package python3.2.
dpkg: warning: files list file for package 'python3.2-minimal' missing; assuming package has no files currently installed
(Reading database ... 101541 files and directories currently installed.)
Unpacking python3.2 (from .../python3.2_3.2.3-7_amd64.deb) ...
Selecting previously unselected package python3.
Unpacking python3 (from .../python3_3.2.3-6_all.deb) ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Setting up python3.2 (3.2.3-7) ...
/var/lib/dpkg/info/python3.2.postinst: 6: /var/lib/dpkg/info/python3.2.postinst: python3.2: not found
dpkg: error processing python3.2 (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python3:
 python3 depends on python3.2 (>= 3.2.3); however:
  Package python3.2 is not configured yet.

dpkg: error processing python3 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.2
 python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python3.2 (3.2.3-7) ...
/var/lib/dpkg/info/python3.2.postinst: 6: /var/lib/dpkg/info/python3.2.postinst: python3.2: not found
dpkg: error processing python3.2 (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python3:
 python3 depends on python3.2 (>= 3.2.3); however:
  Package python3.2 is not configured yet.

dpkg: error processing python3 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.2
 python3

ベストアンサー1

問題は次の行にあるようです。

dpkg: warning: files list file for package 'python3.2-minimal' missing; assuming package has no files currently installed

次のコマンドを実行できますか?

apt-get update
apt-get remove python3.*
apt-get install python3

これにより、すべてのPython 3パッケージが削除され、Python 3が再インストールされます。python3.2(インストールされている)パッケージの一部である必要があるバイナリが見つからないため、現在のインストールが少し破損しているようです。python3.2-minimal

おすすめ記事