2017-02-10 390 views
1
sudo apt-get install python3.4 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
python3.4 is already the newest version. 
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded. 
3 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-minimal (3.4.2-2) ... 
/var/lib/dpkg/info/python3-minimal.postinst: 5: /var/lib/dpkg/info/python3-minimal.postinst: py3compile: not found 
dpkg: error processing package python3-minimal (--configure): 
subprocess installed post-installation script returned error exit status 127 
dpkg: dependency problems prevent configuration of python3: 
python3 depends on python3-minimal (= 3.4.2-2); however: 
    Package python3-minimal is not configured yet. 

dpkg: error processing package python3 (--configure): 
dependency problems - leaving unconfigured 
dpkg: dependency problems prevent configuration of dh-python: 
dh-python depends on python3:any (>= 3.3.2-2~); however: 
    Package python3 is not configured yet. 

dpkg: error processing package dh-python (--configure): 
dependency problems - leaving unconfigured 
Errors were encountered while processing: 
python3-minimal 
python3 
dh-python 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

安裝時出現同樣的錯誤sudo apt-get install python3。 我的包管理器出了什麼問題,如何解決它並重新安裝python3.4?爲什麼不能重新安裝python3.4或python3?

enter image description here

enter image description here enter image description here

回答

0

只是做

sudo apt-get install python3 
+0

嗯OP提到,安裝須藤**同樣的錯誤易於得到安裝python3 **。 –

+0

它不像** sudo apt-get install python3 **那麼簡單。 –

+0

sudo apt-get update && sudo apt-get dist-upgrade 然後嘗試sudo apt-get install python3 –

0

包python3-最小的還沒有被配置。

執行命令

dpkg --configure -a 

注:與sudo前綴命令,如果使用非根帳戶。

重新配置所有解壓,但是未配置的軟件包,則:

apt-get -f install 

糾正系統到位破碎的依賴性。

參見:dpkg error: pycompile: not found