2017-01-21 21 views
0

Ubuntu 16.04 システムフォールトの後に私のシステムをバックアップから復元すると、壊れてしまいました。Python 3.5が壊れた私のapt

私は例えば、aptの使用を試みる:私は再構成をしようとすると

$ apt list python3.5

Listing... Done

python3.5/xenial-updates,xenial-security,now 3.5.2-2ubuntu0~16.04.1 amd64 [installed,automatic]

$ sudo apt install pyroom 
Setting up python3 (3.5.1-3) ... 
running python rtupdate hooks for python3.5... 
dpkg-query: package 'rhythmbox-plugins' is not installed 
Use dpkg --info (= dpkg-deb --info) to examine archive files, 
and dpkg --contents (= dpkg-deb --contents) to list their contents. 
Traceback (most recent call last): 
    File "/usr/bin/py3clean", line 210, in <module> 
    main() 
    File "/usr/bin/py3clean", line 196, in main 
    pfiles = set(dpf.from_package(options.package)) 
    File "/usr/share/python3/debpython/files.py", line 53, in from_package 
    raise Exception("cannot get content of %s" % package_name) 
Exception: cannot get content of rhythmbox-plugins 
error running python rtupdate hook rhythmbox-plugins 
dpkg: error processing package python3 (--configure): 
subprocess installed post-installation script returned error exit status 4 
Errors were encountered while processing: 
python3 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

私はaptのリストをチェック、私にエラーがあります:

$ sudo dpkg --configure -a 
Setting up python3 (3.5.1-3) ... 
running python rtupdate hooks for python3.5... 
dpkg-query: package 'rhythmbox-plugins' is not installed 
Use dpkg --info (= dpkg-deb --info) to examine archive files, 
and dpkg --contents (= dpkg-deb --contents) to list their contents. 
Traceback (most recent call last): 
    File "/usr/bin/py3clean", line 210, in <module> 
    main() 
    File "/usr/bin/py3clean", line 196, in main 
    pfiles = set(dpf.from_package(options.package)) 
    File "/usr/share/python3/debpython/files.py", line 53, in from_package 
    raise Exception("cannot get content of %s" % package_name) 
Exception: cannot get content of rhythmbox-plugins 
error running python rtupdate hook rhythmbox-plugins 
dpkg: error processing package python3 (--configure): 
subprocess installed post-installation script returned error exit status 4 
dpkg: dependency problems prevent processing triggers for gnome-menus: 
gnome-menus depends on python3:any (>= 3.1~); however: 
    Package python3 is not configured yet. 

dpkg: error processing package gnome-menus (--configure): 
dependency problems - leaving triggers unprocessed 
Errors were encountered while processing: 
python3 
gnome-menus 

私はそれを修正するために何ができますか?

+0

'$ sudo apt install rhythmbox-plugins'に行ってみましたか? –

+0

@hiroprotagonistそれは役に立たない。処理中にエラーが発生しました:python3、rhythmbox-plugins – mrLSD

+0

'pyroom'が私の' xenial'にうまくインストールされました。 (sudo apt install -f?help?) –

答えて

0

解決策を見つけるのに数日間かかりました。

$ apt list python3.5 Listing... Done python3.5/xenial-updates,xenial-security,now 3.5.2-2ubuntu0~16.04.1 amd64 [installed,automatic]

が、壊れた依存関係:Python 3.5.1-3 私はその現在、異なるパッケージの依存関係を調べました。

削除されたパッケージはPython 3.5.1に依存し、それらを再度インストールしました。

次に実行します。

$ sudo dpkg --configure -a

を私が成功した結果を得ました。

関連する問題