python-rpi.gpio를 설치할 때 "EOFError: EOF가 예상 개체를 읽는 중" 발생

python-rpi.gpio를 설치할 때 "EOFError: EOF가 예상 개체를 읽는 중" 발생

Raspbian Jessie(Raspberry pi 2)를 새로 설치하는 동안 처음 업그레이드하려고 하면 오류가 발생합니다.

Preparing to unpack .../python-rpi.gpio_0.6.1-1_armhf.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 31, in <module>
    from debpython import files as dpf
EOFError: EOF read where object expected
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 31, in <module>
    from debpython import files as dpf
EOFError: EOF read where object expected
dpkg: error processing archive /var/cache/apt/archives/python-rpi.gpio_0.6.1-1_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 37, in <module>
    from debpython import files as dpf
EOFError: EOF read where object expected
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../python3-rpi.gpio_0.6.1-1_armhf.deb ...
Unpacking python3-rpi.gpio (0.6.1-1) over (0.6.0a3-1) ...
Preparing to unpack .../raspi-config_20160108_all.deb ...
Unpacking raspi-config (20160108) over (20151117) ...
Preparing to unpack .../rc-gui_0.4-1_armhf.deb ...
Unpacking rc-gui (0.4-1) over (0.3-2) ...
Preparing to unpack .../sudo_1.8.10p3-1+deb8u3_armhf.deb ...
Unpacking sudo (1.8.10p3-1+deb8u3) over (1.8.10p3-1+deb8u2) ...
Preparing to unpack .../sonic-pi_1%3a2.9.0-1_armhf.deb ...
Unpacking sonic-pi (1:2.9.0-1) over (1:2.7.0-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u2) ...
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) ...
Processing triggers for gnome-icon-theme (3.12.0-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-rpi.gpio_0.6.1-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

읽고 나서이것문제는 python-rpi.gpio에 있는 것 같습니다. 문제를 극복하는 방법. 가장 중요한 것은 현재 다른 설치가 불가능하기 때문입니다.

apt-get clean불행하게도 또는 같은 일반적인 조언은 dpkg --configure -a도움이 되지 않습니다.

ldconfig
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libatomic.so.1.1.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libatomic.so.1 is not an ELF file - it has the wrong magic bytes at the start.

Raspbian Wheezy로 다운그레이드하는 것 외에 무엇을 할 수 있나요?

답변1

실제 원인은 SD 카드에 결함이 있었고, 삭제 기능이 제대로 구현되지 않았으며, 업그레이드 도중 삭제하면 다른 파일도 변경된다는 점이었습니다.

답변2

수동으로 받아서 sonic-pi다시 시도해보세요....

wget http://sonic-pi.net/files/releases/v2.9.0/Sonic-Pi-for-RPi-Jessie-v2.9.0.tgz
tar -xvzf Sonic-Pi-for-RPi-Jessie-v2.9.0.tgz

관련 정보