2017-01-21 2 views
0

Ubuntu 16.04 Lorsque je restaure mon système à partir d'une sauvegarde après une panne du système, j'ai été cassé apt.Python 3.5 cassé mon apt

Quand j'essaie de apt, par exemple:

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

Quand je vérifie ma liste apt:

$ apt list python3.5

Listing... Done

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

Lorsque je tente reconfigure , J'ai eu des erreurs:

$ 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 

Que puis-je faire pour résoudre ce problème?

+0

avez-vous essayé '$ sudo apt d'installer rhythmbox-plugins'? –

+0

@hiroprotagonist Cela n'aide pas. Des erreurs ont été rencontrées lors du traitement: python3, rhythmbox-plugins – mrLSD

+0

'pyroom' s'installe bien sur mon' xenial'. peut-être que cette question convient mieux à [ask ubuntu] (https://askubuntu.com/) ... (est-ce que 'sudo apt install -f' aide?) –

Répondre

0

J'ai passé plusieurs jours à trouver une solution. Je que les dépendances ont étudié paquet actuellement différentes:

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

mais la dépendance cassée: Python 3.5.1-3.

Les paquets supprimés dépendaient de Python 3.5.1 et les réinstallaient.

Lancez ensuite:

$ sudo dpkg --configure -a

j'ai eu bon résultat.