後、apt-get upgrade
次のエラーが発生しました。
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)
コンピュータの電源を切ることができません...
Python 3.3を正しくインストールしなかったと思いますが、どうすれば修復できますか?
編集:試しましたapt-get --reinstall install python2 python2-support
が、同じエラーが発生しました
編集:詳細情報
私のシステム: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
私はubuntu12.10を持っていました。13.04にアップグレードしようとしたときに問題が発生しました。エラーが多すぎたため、プロセスが停止したことを示すエラーメッセージが表示されました。
次に実行しようとしましsudo apt-get update && sudo apt-get upgrade
たが、上記のエラーが発生しました。
数か月前、誤ってpython2をコンピューターから削除したときに、同様の問題が発生しました。その後、アイコンをクリックして(応答しません)、コンピューターの電源を切ることができませんでした。唯一の方法は、手動でシャットダウンすることでした。もう一度オンにすると、デスクトップが空になり、何もできなくなりました。これは、システム全体を再インストールすることで修正されました。
インターネットで検索して、いくつかのコマンドを試しました。
sudo dpkg --configure -a
その結果
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
Python2.7.4を返します
行うこと:
cd /tmp
sudo apt-get download python3
sudo dpkg -i python3*.deb && apt-get dist-upgrade
戻り値
(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
また、python3を削除して再インストールしようとしました
何か助けてください?
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)
編集:python3.3のすべての依存関係のインストール-最小限
sudo apt-get install libc6 libexpat1 libpython3.3-minimal zlib1g
戻り値
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)
編集:sudo dbkg-reconfigure -a
1 /質問:─────────────────────────────┤Adduser├────────────── ──────────────────┐
││
│デフォルトでは、ユーザのホームディレクトリは│上のすべてのユーザーによって読み取り可能です
│システム。セキュリティとプライバシーを強化したい場合は、
││ホームディレクトリを所有者だけが読み取れるようにすることができます。ただし、疑わしい場合は、││
このオプションを有効のままにしてください。│
││
││これはのみとこれから追加されたユーザーのホームディレクトリに影響します
│adduserコマンドを。│
││
│あなたは、システム全体の読み込み可能なホームディレクトリをしたいですか?
はいと言った
2 /┤apparmorの設定├──────────────────────────┐│
ユーザーの追加の場所のスペースで区切られたリストを入力してください││
ホームディレクトリ。これらの場所は、
││/ etc / apparmor.d / tunables / homeで指定されている場所に追加され、「/」で終わる必要があります。│
││
│例:ユーザーのディレクトリが/ srvの/ NFS /ホームに格納されている場合│
│を/ mnt /家庭、あなたは"/ srvの/ NFS /ホーム/を/ mnt /住宅/"を入力する必要があります。│
││
│追加のホームディレクトリの場所:
どの場所を示すべきかわからない...だから私はただ合格する
最後に、私はシェルで読みました:
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
編集:シナプスシナプスでは、「壊れた依存関係」は表示されません(ステータスをクリックすると、表示されるのは次のとおりです。すべてインストール済みインストール済み(ローカルまたは廃止)インストール済み(手動)インストールなしインストールなし(残りの構成)
編集
この問題は、次のバグレポートに関連していました:https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1165281
コメント#3から#5の手順に従いますが、パスを2.7ではなくpython3.3に変更します。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加