Para algumas instalações de pacotes no meu Raspberry Pi rodando o Ubuntu 16, eu estava vendo erros como:
Processing triggers for libc-bin (2.23-0ubuntu3) ...
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libltdl.so.7.3.1 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libltdl.so.7 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libsane.so.1.0.25 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libltdl.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libcc1.so.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libsane.so.1 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libgusb.so.2.0.10 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libcc1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libgusb.so.2 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.
/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.
Errors were encountered while processing:
docutils-common
pkg-config
Então eu tentei limpar os pacotes docutils-common e pkg-config. No entanto, quando executei sudo apt-get purge docutils-common pkg-config
, recebo o erro:
Removing docutils-common (0.12+dfsg-1) ...
/var/lib/dpkg/info/docutils-common.prerm: 1: /var/lib/dpkg/info/docutils-common.prerm: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������: File name too long
dpkg: error processing package docutils-common (--purge):
subprocess installed pre-removal script returned error exit status 127
/var/lib/dpkg/info/docutils-common.postinst: 1: /var/lib/dpkg/info/docutils-common.postinst: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������: File name too long
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
O que está causando isso e como corrigi-lo?