繁体   English   中英

为什么不能重新安装python3.4或python3?

[英]Why can't reinstall python3.4 or 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时出现同样的错误。 我的package manager怎么了,如何修复并重新安装python3.4?

在此处输入图像描述

在此处输入图像描述 在此处输入图像描述

包 python3-minimal 尚未配置。

跑:

dpkg --configure -a

注意:如果使用非 root 帐户,则使用sudo前缀命令。

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

apt-get -f install

纠正具有破坏依赖关系的系统。

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

做就是了

sudo apt-get install python3

对我来说,解决方案是添加“--reinstall”参数:

sudo apt-get install --reinstall python3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM