You are not logged in.

#1 2018-10-02 05:58:07

nanawel
Member
Registered: 2012-05-07
Posts: 88
Website

[Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Hi,

I did a full upgrade yesterday after ~10 days stable and right after the upgrade (or more precisely, during the end of the upgrade) I've started getting errors like:

pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_scp_recv2

I thought maybe a reboot could put everything back to normal but it didn't.

Then I thought - of course - that it was because I added one package too many to the

IgnorePkg=...

section in pacman.conf but I only had ruby and NetworkManager. Not really related to the issue here IMHO.

So I booted the latest LiveCD, ran a

pacman --root /mnt -Syyu

which upgraded a few packages this morning and tried immediately to use pacman from the

arch-chroot

environment. But not luck.

Now my system is fully upgraded (or so pacman tells), but pacman is still broken and so some other critical applications like NetworkManager (which needs curl also).

Is anyone having any similar issue at the moment?

Last edited by nanawel (2018-10-02 08:29:19)

Offline

#2 2018-10-02 06:04:29

nanawel
Member
Registered: 2012-05-07
Posts: 88
Website

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Ah! Found it.
I had an old libssh2 in my /usr/local/lib for an obscure reason (but probabbly related to the need of php-ssh when PHP7 just came out and was not totally supported).

Still, it might help others. So look at your /usr/local/lib! smile

Offline

#3 2018-10-02 06:07:57

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

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2018-10-02 08:28:39

nanawel
Member
Registered: 2012-05-07
Posts: 88
Website

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

jasonwryan wrote:

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

Right, thanks.

Offline

#5 2018-10-05 17:47:28

mksplg
Member
Registered: 2016-11-11
Posts: 1

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Thanks, had the same issue since a few days and this was also the problem for me.

Offline

#6 2018-10-05 17:51:25

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Welcome to the forums mksplg smile

Please take the time to read our forum code of conduct - especially the following section...
https://wiki.archlinux.org/index.php/Co … mpty_posts


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2018-11-05 15:14:41

knshetty
Member
Registered: 2018-11-05
Posts: 1
Website

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

Same issue on my arch-based manjaro-linux distro.

Here's a quick fix that worked for me.

I renamed the symbol & problem was fixed (thanks to following blog post). Here's the command for renaming the troubled symbol:

# mv /usr/local/lib/libssh2.so.1 /usr/local/lib/libssh2.so.1.backup

Offline

#8 2018-11-05 15:46:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [Solved]symbol lookup error: /usr/lib/libcurl.so.4 [...] after upgrade

That's a just band aid fix to a problem that should be better defined. Why do you have any such library in your /usr/local/lib in the first place and if you have no valid reason you better remove all related libraries that might be there as well, and if you have a valid reason you just broke your valid reason (though these kind of reasons should really be an exception).

Either way the thread as such is [SOLVED] and there's not much additional value to it.

Closing.

Offline

Board footer

Powered by FluxBB