在树莓派python3.5-最小关联脚本中有问题吗?

时间:2019-04-01 15:30:36

标签: raspberry-pi python-3.5 raspbian-stretch

我在尝试解决较旧的Raspberry pi 2 a +时遇到问题。当我进行最新的apt升级时,我遇到了电源问题,无法在秋千中期将其关闭。重新启动电源并在外部硬件上加电后,尝试重新配置和升级时开始出现错误。

与python3.5-minimal相关的某些问题导致一系列错误,这些错误导致尝试安装任何需要python3的尝试无法进行。当安装后脚本运行时,我得到:

Setting up python3.5-minimal (3.5.3-1+deb9u1) ...
Sorry: ValueError: source code string cannot contain null bytes
Sorry: ValueError: source code string cannot contain null bytes
Sorry: ValueError: source code string cannot contain null bytes
Sorry: ValueError: source code string cannot contain null bytes
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

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

我已经删除了所有依赖于它们的内容,然后尝试重新安装。我尝试从apt缓存的文件中重新安装。我尝试清除缓存,删除直接依赖于那些文件的所有内容,然后开始一次又一次地安装我需要的文件。但是,一旦我再次将python3作为依赖项加载,我就会得到相同的4个“源代码字符串不能包含空字节”。

我的猜测是,有一些其他文件绑定到另一个软件包,或者是引起问题的某些文件,或者是某些文件夹中的一些僵尸文件,当我清除这些软件包时,这些文件夹没有被删除。但是由于这些错误使我不知道在哪里可以找到哪些“源代码”包含“空字节”,因此我不知道在哪里可以找到问题的根源。

SW

0 个答案:

没有答案
相关问题