You are not logged in.

#1 2010-03-30 07:14:19

lars9
Member
Registered: 2009-01-15
Posts: 16

package-query: error while loading shared libraries: libalpm.so.4

hi, after yesterday's upgrade, my yaoourt can not search packages anymore:

package-query: error while loading shared libraries: libalpm.so.4: wrong ELF class: ELFCLASS64

how to solve it?

thanks

Last edited by lars9 (2010-03-30 07:50:57)

Offline

#2 2010-03-30 07:52:46

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,477
Website

Re: package-query: error while loading shared libraries: libalpm.so.4

Looks like you installed an x86_64 copy of pacman on an i686 system...  Did you adjust pacman.conf or the mirrorlist file incorrectly.

The solution will be to manually download the package file and extract it in your root directory (and remove the hidden files it extracts too).

Offline

#3 2010-03-30 10:14:40

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

Allan wrote:

Looks like you installed an x86_64 copy of pacman on an i686 system...  Did you adjust pacman.conf or the mirrorlist file incorrectly.

The solution will be to manually download the package file and extract it in your root directory (and remove the hidden files it extracts too).

thanks, but
1. I'm using i686 arch
2. I can run pacman -Ss, but can not run yaourt -Ss.

Offline

#4 2010-03-30 17:08:59

thomas.riche
Member
Registered: 2010-03-30
Posts: 3

Re: package-query: error while loading shared libraries: libalpm.so.4

Hello,

On my side I have the exact same problem. I am running Arch x86_64.

Thanks for your help

Offline

#5 2010-03-31 12:49:19

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

mine is x86_64 too

Offline

#6 2010-03-31 12:51:50

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,477
Website

Re: package-query: error while loading shared libraries: libalpm.so.4

lars9 wrote:

I'm using i686 arch

lars9 wrote:

mine is x86_64 too

Right...

I do not understand how ELFCLASS64 would be the wrong ELF class on x86_64

Offline

#7 2010-03-31 19:31:28

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: package-query: error while loading shared libraries: libalpm.so.4

Are the people with problems building package-query from AUR, or installing it from a 3rd-party repo somewhere? I wonder if (for instance) the [archlinuxfr] repo has a 32-bit package with 64-bit binaries?

Offline

#8 2010-04-02 05:56:00

thomas.riche
Member
Registered: 2010-03-30
Posts: 3

Re: package-query: error while loading shared libraries: libalpm.so.4

Hello,

On my side, the problem is package-query itself

file /usr/bin/package-query
/usr/bin/package-query: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

Offline

#9 2010-04-02 14:15:57

nachof
Member
Registered: 2008-01-18
Posts: 15

Re: package-query: error while loading shared libraries: libalpm.so.4

Hello.

Temporary solution until yaourt is fixed is go back a couple of versions (0.9.2 works).

Offline

#10 2010-04-02 15:08:52

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

nachof wrote:

Hello.

Temporary solution until yaourt is fixed is go back a couple of versions (0.9.2 works).

how to go back to that version?

Offline

#11 2010-04-02 15:16:32

nachof
Member
Registered: 2008-01-18
Posts: 15

Re: package-query: error while loading shared libraries: libalpm.so.4

lars9 wrote:
nachof wrote:

Hello.

Temporary solution until yaourt is fixed is go back a couple of versions (0.9.2 works).

how to go back to that version?

Go to /var/cache/pacman/pkg and do `ls yaourt*`. If the older version is still there (it probably is unless you did a pacman -Sc recently), you'll see the filename there. Then run `pacman -U yaourt-version-you-want.tar.gz`

Offline

#12 2010-04-02 16:17:59

thomas.riche
Member
Registered: 2010-03-30
Posts: 3

Re: package-query: error while loading shared libraries: libalpm.so.4

Ok, fixed on my side ==> archlinuxfr repo was still configured for i686 and not x86_64....

Offline

#13 2010-04-02 16:40:06

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

i wonder if there is any way to report such a horrible bug?

Offline

#14 2010-04-02 16:44:09

nachof
Member
Registered: 2008-01-18
Posts: 15

Re: package-query: error while loading shared libraries: libalpm.so.4

lars9 wrote:

i wonder if there is any way to report such a horrible bug?

According to thomas.riche's message, it's not a bug, but a misconfiguration.

And after I checked, I realised that my configuration was wrong. Fixed that, installed yaourt and package-query, and now it works.

Offline

#15 2010-04-02 16:59:33

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

nachof wrote:
lars9 wrote:

i wonder if there is any way to report such a horrible bug?

According to thomas.riche's message, it's not a bug, but a misconfiguration.

And after I checked, I realised that my configuration was wrong. Fixed that, installed yaourt and package-query, and now it works.

how to reconfigure it? I cleaned cache so I don't have old package now...

Offline

#16 2010-04-02 17:02:49

nachof
Member
Registered: 2008-01-18
Posts: 15

Re: package-query: error while loading shared libraries: libalpm.so.4

lars9 wrote:
nachof wrote:
lars9 wrote:

i wonder if there is any way to report such a horrible bug?

According to thomas.riche's message, it's not a bug, but a misconfiguration.

And after I checked, I realised that my configuration was wrong. Fixed that, installed yaourt and package-query, and now it works.

how to reconfigure it? I cleaned cache so I don't have old package now...

Edit /etc/pacman.conf (you need to be root, of course)

Search for the lines:

[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64

If you're using the 64 bits version, that's what it should say. If you're using 32 bits then it should say i686 instead of x86_64. Make sure the right version is selected. Then run `pacman -Sy package-query yaourt`. That should fix it.

Offline

#17 2010-04-02 17:04:44

lars9
Member
Registered: 2009-01-15
Posts: 16

Re: package-query: error while loading shared libraries: libalpm.so.4

great, fixed, thanks!

Offline

#18 2010-06-17 14:34:36

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: package-query: error while loading shared libraries: libalpm.so.4

I got the same problem now after today's pacman upgrade. No misconfiguration in pacman.conf. x86_64. Perhaps archlinuxfr needs a new yaourt package after the new pacman? I hope it will solve automatically later today. Any ideas otherwise?

Offline

#19 2010-06-17 15:35:47

revberaldo
Member
From: Campinas, Brazil
Registered: 2009-09-18
Posts: 50
Website

Re: package-query: error while loading shared libraries: libalpm.so.4

I am experiencing the same issue and do not use the repository [archlinuxfr]. Unfortunately, I cleaned the pacman cache a couple of weeks ago and can't downgrade yaourt. Is there any other workaround?

Offline

#20 2010-06-17 16:27:17

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: package-query: error while loading shared libraries: libalpm.so.4

revberaldo wrote:

I am experiencing the same issue and do not use the repository [archlinuxfr]. Unfortunately, I cleaned the pacman cache a couple of weeks ago and can't downgrade yaourt. Is there any other workaround?

I guess, for now, use pacman.

Offline

#21 2010-06-17 16:47:13

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: package-query: error while loading shared libraries: libalpm.so.4

If you're using the testing repo, you need to rebuild any tools that link against libalpm, as there was an soname bump. This includes package-query.

Offline

#22 2010-06-17 16:52:59

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: package-query: error while loading shared libraries: libalpm.so.4

I´ve installed package-query 0.3-2 from AUR, seems to work

Offline

#23 2010-06-17 19:20:05

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: package-query: error while loading shared libraries: libalpm.so.4

same as gofree.  install package-query 0.3-2 from the AUR fixes the problem


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#24 2010-06-17 19:40:33

kernelpanic
Member
From: South Poland
Registered: 2010-06-11
Posts: 17

Re: package-query: error while loading shared libraries: libalpm.so.4

I compiled new package-query and it's working now.

wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query
makepkg -si

Yaourt will be rebuild when the new version of pacman come into core repo.

Offline

#25 2010-06-21 01:12:47

xvalentinex
Member
Registered: 2008-05-31
Posts: 22

Re: package-query: error while loading shared libraries: libalpm.so.4

I ran into this as well.  It's not the same error as original thread but rather a missing library.

I chose a different route to resolve, quicker but dirtier, but I like that package-query's repository remains archlinuxfr.
# cd /usr/lib
# ln -s libalpm.so.5.0.0 libalpm.so.4

So far this is working fine, just don't forget to remove libalpm.so.4 when yaourt/package-query is updated.

Offline

Board footer

Powered by FluxBB