我已經安裝了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