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)

Same error for installing sudo apt-get install python3. What's wrong with my package manager,how to fix it and reinstall python3.4?

enter image description here

enter image description here enter image description here

0

3 Answers 3

1

Package python3-minimal is not configured yet.

Run:

dpkg --configure -a

Note: Prefix command with sudo if using non-root account.

to reconfigure all unpacked, but unconfigured packages, then:

apt-get -f install

to correct a system with broken dependencies in place.

See also: dpkg error: pycompile: not found

0

For me, the solution was to add '--reinstall' parameter:

sudo apt-get install --reinstall python3
-1

just do

sudo apt-get install python3
3
  • ummm OP mentioned that Same error for installing sudo apt-get install python3.
    – Alex Fung
    Feb 10, 2017 at 11:12
  • It is not as simple as sudo apt-get install python3.
    – showkey
    Feb 10, 2017 at 11:42
  • sudo apt-get update&&sudo apt-get dist-upgrade then try sudo apt-get install python3
    – Dev Jalla
    Feb 10, 2017 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.