为什么不能重新安装python3.4或python3? [英] Why can't reinstall python3.4 or python3?

查看:377
本文介绍了为什么不能重新安装python3.4或python3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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?

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

推荐答案

尚未配置软件包python3-minimal.

Package python3-minimal is not configured yet.

运行:

dpkg --configure -a

注意:如果使用非root帐户,请在命令前加上sudo.

要重新配置所有未打包但未配置的软件包,然后:

to reconfigure all unpacked, but unconfigured packages, then:

apt-get -f install

更正具有损坏的依存关系的系统.

to correct a system with broken dependencies in place.

另请参阅: dpkg错误:pycompile:未找到

这篇关于为什么不能重新安装python3.4或python3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆