You are not logged in.

#26 2010-06-21 01:15:50

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

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

xvalentinex wrote:

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.

This is VERY wrong.

Just, download package-query from AUR, use makepkg and install it. It would be much nicer.

Offline

#27 2010-06-22 18:12:42

akurei
Member
From: Bochum, NRW, Germany
Registered: 2009-05-25
Posts: 152
Website

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

Rebuilding yaourt-git and package-query-git also solves the problem for me.

Offline

#28 2010-06-22 18:48:03

michaudg
Member
Registered: 2009-12-11
Posts: 11

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

xvalentinex wrote:

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.

Thanks for the solution !

Offline

#29 2010-06-22 19:14:41

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

michaudg wrote:

Thanks for the solution !

To reiterate what's already been mentioned...

This is not a solution. Do not do this. You will invariably break something.

Just rebuild package-query-git like a sane person.

Last edited by falconindy (2010-06-22 19:15:01)

Offline

#30 2010-06-22 20:21:21

akurei
Member
From: Bochum, NRW, Germany
Registered: 2009-05-25
Posts: 152
Website

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

falconindy wrote:
michaudg wrote:

Thanks for the solution !

To reiterate what's already been mentioned...

This is not a solution. Do not do this. You will invariably break something.

Just rebuild package-query-git like a sane person.

I quote you to put emphasis on your post.

Offline

#31 2010-06-22 20:22:36

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

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

kernelpanic wrote:

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.

This worked perfectly for me.  Thanks!


"Oh, they have the internet on computers now."

Offline

#32 2010-06-22 21:11:36

m7d1
Member
From: Saudi Arabia
Registered: 2009-08-03
Posts: 26

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

kernelpanic wrote:

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.

Its working for me so, thanks ..

Offline

#33 2010-06-22 22:27:01

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

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

m7d1 wrote:

Its working for me so, thanks ..

+1, thank you.

Last edited by vi3dr0 (2010-06-22 22:27:30)


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#34 2010-06-22 22:58:44

victorhooi
Member
Registered: 2009-08-06
Posts: 109

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

heya,

I've encountered the same missing libalpm.so.4 issue after an update - Pacman works, youart doesn't.

This is on Arch_64, *not* testing, my pacman.conf file contains:

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

so it doesn't appear to be a misconfiguration there.

Any word on when this will be fixed in core?

Cheers,
Victor

Offline

#35 2010-06-22 23:17:21

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

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

It is "fixed" in [core].   It is the package on [archlinuxfr] mirror that is broken...

Online

#36 2010-06-23 01:13:48

Raws
Member
From: Campo Grande - Brazil
Registered: 2009-08-19
Posts: 47

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

victorhooi wrote:

heya,

I've encountered the same missing libalpm.so.4 issue after an update - Pacman works, youart doesn't.

This is on Arch_64, *not* testing, my pacman.conf file contains:

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

so it doesn't appear to be a misconfiguration there.

Any word on when this will be fixed in core?

Cheers,
Victor

Had the same problem here... Fixed with this:

kernelpanic wrote:

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.

everything working perfect here now... big_smile

Offline

#37 2010-06-23 01:56:17

cybertorture
Member
Registered: 2010-05-05
Posts: 339

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

Had the same problem here... Fixed with this:

kernelpanic wrote:

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

Code:

wget http://aur.archlinux.org/packages/packa … ery.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.
everything working perfect here now...

+1 smile tnx a lot


O' rly ? Ya rly Oo

Offline

#38 2010-06-23 04:26:31

csheppard93
Member
From: tampa, fl
Registered: 2010-05-17
Posts: 9

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

kernelpanic wrote:

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.

Thanks that worked for me too

Offline

#39 2010-06-23 05:13:50

net.reg
Member
Registered: 2009-03-26
Posts: 12

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

reply #16 (nachof) worked for me!. thanks

Offline

#40 2010-06-25 01:11:48

cach0rr0
Member
Registered: 2010-06-25
Posts: 2

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

Encountered this, found thread on google

As of 5 minutes ago (no idea when it was fixed), there's a new build of package-query on archlinuxfr that seems to sort this
For me it was the missing .so as well

$ yaourt tcpdump
package-query: error while loading shared libraries: libalpm.so.4: cannot open shared object file: No such file or directory

Sorted with:

[root@gw ~]# pacman -Ss package-query
archlinuxfr/package-query 0.3-2 [installed: 0.3-1]
    Query ALPM and AUR
[root@gw ~]# pacman -S package-query
resolving dependencies...
looking for inter-conflicts...

Targets (1): package-query-0.3-2

Total Download Size:    0.02 MB
Total Installed Size:   0.07 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from archlinuxfr...
 package-query-0.3-2-x86_64                                                                                           15.8K   60.7K/s 00:00:00 [#######################################################################################] 100%
checking package integrity...
(1/1) checking for file conflicts                                                                                                              [#######################################################################################] 100%
(1/1) upgrading package-query                                                                                                                  [#######################################################################################] 100%

//let's see if it works
[root@gw ~]# yaourt wireshark                                                                                                                                                                                                                
1 extra/wireshark 1.2.9-1     
<snip> // it works!

Hope this helps someone else. Seems cleaner than the others.

Offline

#41 2010-06-25 13:58:04

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

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

kernelpanic's solution fixed it for me, thanks!


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#42 2010-06-25 15:51:30

madalu
Member
Registered: 2009-05-05
Posts: 217

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

So, if I am reading this thread correctly: We have several users who use yaourt to install loads of stuff from AUR but who have no knowledge of building packages and resolving dependencies.

OT: This seems to me clear confirmation of the wisdom of the devs' decision to leave all AUR automation out of the official repositories.

Is there anything else we can do to encourage people to build yaourt "by hand" instead of downloading it from http://repo.archlinux.fr/ ?

Last edited by madalu (2010-06-25 15:56:43)

Offline

#43 2010-06-27 20:01:08

Raws
Member
From: Campo Grande - Brazil
Registered: 2009-08-19
Posts: 47

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

madalu wrote:

So, if I am reading this thread correctly: We have several users who use yaourt to install loads of stuff from AUR but who have no knowledge of building packages and resolving dependencies.

OT: This seems to me clear confirmation of the wisdom of the devs' decision to leave all AUR automation out of the official repositories.

Is there anything else we can do to encourage people to build yaourt "by hand" instead of downloading it from http://repo.archlinux.fr/ ?

Just to be clear...

I've built yaourt by hand.

I dont have the http://repo.archlinux.fr/ installed in my system and the problem appeared after an upgrade in pacman, not in yaourt or package-query. I didnt imagine (silly me) that rebuilding the package-query to the SAME version that was there before would resolve the problem. In this, this thread was very helpful.

Offline

#44 2010-07-05 19:33:05

cach0rr0
Member
Registered: 2010-06-25
Posts: 2

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

madalu wrote:

Is there anything else we can do to encourage people to build yaourt "by hand" instead of downloading it from http://repo.archlinux.fr/ ?

Clearly document the pitfalls in the wiki. I went this path - http://wiki.archlinux.org/index.php/Yaourt#Easy_Install

I've been on Arch a whopping 6 weeks, that is the first bit of info I found searching for doc for the yaourt install procedure. I don't know if there's anything fundamentally wrong with the path I've gone. As well generally speaking when II see what looks like a package linking against something non-existent, I assume 'upgrade package'.

What would be really nice, does Arch have a tool similar to `revdep-rebuild` (Gentoo) that will scan for any binaries that are broken in such a way? Find this very handy, as I can fire it off, see what's broken (both files and what package said file belongs to), rebuild/upgrade and pray.

Offline

#45 2010-07-18 15:00:23

yabasta
Member
Registered: 2010-05-01
Posts: 167

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

hi, i too have the same problem.

yaourt firefox
package-query: error while loading shared libraries: libalpm.so.4: cannot open shared object file: No such file or directory

so i tried...

# wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
--2010-07-18 15:57:41--  http://aur.archlinux.org/packages/package-query/package-query.tar.gz
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 473 [application/x-tgz]
Saving to: `package-query.tar.gz.2'

100%[========================================================================================================================

2010-07-18 15:57:41 (34.6 MB/s) - `package-query.tar.gz.2' saved [473/473]

yabsta @ ~  # tar zxvf package-query.tar.gz
package-query
package-query/PKGBUILD
yabasta @ ~  # cd package-query
yabasta @ package-query  # makepkg -si
==> WARNING: A package has already been built, installing existing package...
==> Installing package package-query with pacman -U...
Password: 
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: yaourt: requires package-query>=0.3
==> WARNING: Failed to install built package(s).

No doubt i'm doing something very stupid, forgive me i'm still quite a newb. any ideas how i could remedy this?
thanks in advance for your time

Offline

#46 2010-07-18 15:14:55

tuxce
Member
Registered: 2008-02-19
Posts: 56
Website

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

2010-07-18 15:57:41 (34.6 MB/s) - `package-query.tar.gz.2' saved [473/473]

you don't use the right archive.

Offline

#47 2010-07-18 15:40:36

yabasta
Member
Registered: 2010-05-01
Posts: 167

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

lol erm...told you i was a newb. when i'd done the wget i hadn't deleted the old package-query tar or the old directory. any how, once i'd done that the process went smoothly and now yaourt works fine

Offline

#48 2010-07-20 01:40:13

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

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

Kernelpanic solution did it for me too big_smile THANKS


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#49 2016-03-19 01:32:51

czipperz
Member
Registered: 2015-03-29
Posts: 3
Website

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

What works for me is uninstalling yaourt-git and package-query-git and rebuilding and installing from source the non git versions


Czipperz
Email: czipperz@gmail.com
Website: czipperz.github.io

Offline

#50 2016-03-19 01:47:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB