2017-01-21 11 views
0

우분투 16.04 시스템 오류가 발생하여 시스템을 백업에서 복원하면 장애가 발생합니다. 내 APT 목록을 확인하면Python 3.5 broken my apt

$ 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 list python3.5

Listing... Done

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

나는 재구성을 시도 할 때 , 오류가 발생했습니다.

$ 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'에 멋지게 설치됩니다. 어쩌면이 질문은 [Ask Ubuntu] (https://askubuntu.com/)에 더 적합 할 것이다. (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

나는 성공적인 결과를 얻었다.