我已经安装了Raspbian Jessi,Seafile是依赖于python2.7的,它是我自己安装的一部分。它在无头模式下工作得很好。通过ssh手动运行后Raspbian Jessi apt-get install python2.7-minimal configure error
sudo apt-get update && sudo apt-get upgrade
更新过程失败,配置错误为python2.7-minimal。输出是:
sudo apt-get install python2.7 python2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libpython-stdlib
Use 'apt-get autoremove' to remove it.
Suggested packages:
python2.7-doc binfmt-support
The following NEW packages will be installed:
python2.7 python2.7-minimal
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/1,402 kB of archives.
After this operation, 3,595 kB of additional disk space will be used.
y
Selecting previously unselected package python2.7-minimal.
(Reading database ... 107629 files and directories currently installed.)
Preparing to unpack .../python2.7-minimal_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7-minimal (2.7.9-2+deb8u1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7 (2.7.9-2+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Setting up python2.7-minimal (2.7.9-2+deb8u1) ...
Sorry: TypeError: compile() expected string without null bytesdpkg: error processing package python2.7-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.7:
python2.7 depends on python2.7-minimal (= 2.7.9-2+deb8u1); however:
Package python2.7-minimal is not configured yet.
dpkg: error processing package python2.7 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.7-minimal
python2.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经试过的几种组合apt-get的删除/清除,重新配置的dpkg等,但错误是永久性的。
另一件事:
apt-cache policy python2.7-minimal python2.7
python2.7-minimal:
Installed: 2.7.9-2+deb8u1
Candidate: 2.7.9-2+deb8u1
Version table:
*** 2.7.9-2+deb8u1 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
100 /var/lib/dpkg/status
python2.7:
Installed: 2.7.9-2+deb8u1
Candidate: 2.7.9-2+deb8u1
Version table:
*** 2.7.9-2+deb8u1 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
100 /var/lib/dpkg/status
我不是一个初学者,而且不是一般的Linux专家。告诉我你是否需要任何进一步的信息来回答这个问题。请帮忙,因为我厌倦了打这样的东西。
已经做到了这一点(应该已经在上面更具体了)。可悲的是没有效果。另外,清除python会像大量其他软件包一样删除,这可能会在其他地方打破某些关系。 – mojjj
也许尝试从第一个链接中解决方案的步骤,然后? “这是由一个损坏的文件Grepping上引起的。 我安装debsums,并运行它的所有文件。失败。 一个损坏的文件是topics.py(/usr/lib/python2.7/pydoc_data /topics.py) 我把文件从另一台工作机器转移到那台机器上,然后重新安装了python2.7“ – CyanBlob