Rpi4 - /usr/lib/libexpat.so.1: invalid ELF header

Problems with packages? Post here, using [tags] of the package name.

Rpi4 - /usr/lib/libexpat.so.1: invalid ELF header

Postby thedude » Fri Sep 27, 2019 3:33 am

So, first time I tried to install Arch Linux ARM on the RasberryPi 4, and when I reached to pacman-key --init, this happened:

$this->bbcode_second_pass_code('', '
[root@alarmpi alarm]# pacman-key --init
pacman-conf: error while loading shared libraries: /usr/lib/libexpat.so.1: invalid ELF header
')

I checked the source files of https://archlinuxarm.org/packages/armv7h/expat, and the system's /usr/lib/libexpat.so.1.6.9 is different than that of the package:

$this->bbcode_second_pass_code('', '
[root@alarmpi alarm]# md5sum /usr/lib/libexpat.so.1.6.9
5ff9600840e5d5522b039616b936c89a /usr/lib/libexpat.so.1.6.9

[root@alarmpi alarm]# md5sum /home/alarm/usr/lib/libexpat.so.1.6.9
58984abbc203d8f29036a95d33ee816c /home/alarm/usr/lib/libexpat.so.1.6.9
')

In the end, I copied the library manually, and it fixed the issue. Not sure if this is a corruption issue or a legit one, so I'm opening this report.
thedude
 
Posts: 3
Joined: Sat Oct 11, 2014 8:58 am

Re: Rpi4 - /usr/lib/libexpat.so.1: invalid ELF header

Postby thedude » Fri Sep 27, 2019 3:39 am

While installing vim (and any package):

$this->bbcode_second_pass_code('', '
:: Processing package changes...
(1/3) installing vim-runtime
Optional dependencies for vim-runtime
sh: support for some tools and macros [installed]
python: demoserver example tool
gawk: mve tools upport [installed]
(2/3) installing gpm
(3/3) installing vim
Optional dependencies for vim
python2: Python 2 language support
python: Python 3 language support
ruby: Ruby language support
lua: Lua language support
perl: Perl language support [installed]
tcl: Tcl language support
ldconfig: /usr/lib/libanl.so.1 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libanl-2.29.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libanl.so is not an ELF file - it has the wrong magic bytes at the start.

:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the info directory file...
')

Again, /usr/lib/libanl-2.29.so is different than what's in the package https://archlinuxarm.org/packages/armv7h/glibc.

I'm starting to think something is wrong with the installation.
thedude
 
Posts: 3
Joined: Sat Oct 11, 2014 8:58 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 35 guests