You are not logged in.

#1 2015-04-19 15:15:28

miquelruiz
Member
Registered: 2015-04-19
Posts: 3

[solved] openconnect broken after upgrading gnutls and nettle

openconnect just broke today after running a system upgrade.

Executing it threw the following error:

openconnect: error while loading shared libraries: libgnutls.so.28: cannot open shared object file: No such file or directory

After downgrading gnutls:

$ sudo pacman -U /var/cache/pacman/pkg/gnutls-3.3.14-2-x86_64.pkg.tar.xz
loading packages...
warning: downgrading package gnutls (3.4.0-1 => 3.3.14-2)
...
$ openconnect 
openconnect: error while loading shared libraries: libnettle.so.4: cannot open shared object file: No such file or directory

So I downgraded also nettle:

$ sudo pacman -U /var/cache/pacman/pkg/nettle-2.7.1-1-x86_64.pkg.tar.xz
...
$ openconnect 
No server specified
Usage:  openconnect [options] <server>
...

I'm posting this because it may be helpful to somebody.

Last edited by miquelruiz (2015-04-19 16:47:42)

Offline

#2 2015-04-19 15:19:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [solved] openconnect broken after upgrading gnutls and nettle

Downgrading is not the correct fix, upgrading or rebuilding the executable that's linked to the old lib is.

Offline

#3 2015-04-19 16:40:37

miquelruiz
Member
Registered: 2015-04-19
Posts: 3

Re: [solved] openconnect broken after upgrading gnutls and nettle

Could you provide more info about how to do that?
I'll be glad to update the post.

Think of this as a workaround until a fixed version of openconnect is uploaded to the package repositories.

Last edited by miquelruiz (2015-04-19 16:40:58)

Offline

#4 2015-04-19 16:40:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openconnect broken after upgrading gnutls and nettle

openconnect got moved to [extra] today. Check if you have version 1:7.06-2 installed.

Offline

#5 2015-04-19 16:47:14

miquelruiz
Member
Registered: 2015-04-19
Posts: 3

Re: [solved] openconnect broken after upgrading gnutls and nettle

karol wrote:

openconnect got moved to [extra] today. Check if you have version 1:7.06-2 installed.

That was the problem, I had version 1:7.06-1. For some reason the new version was not available the first time I run the system upgrade.

Thank you very much!

Offline

#6 2015-04-19 16:50:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openconnect broken after upgrading gnutls and nettle

Mirrors get out of sync, they may have one updated package available but not another. Using more recently synced mirrors https://wiki.archlinux.org/index.php/Mi … ror_status or waiting a few hours helps.

Offline

#7 2015-04-21 17:58:59

RubenKelevra
Member
Registered: 2013-03-01
Posts: 41

Re: [solved] openconnect broken after upgrading gnutls and nettle

I just upgrade my system, now I can't use pacman anymore:

[root@i3 ~]# pacman -S
pacman: error while loading shared libraries: libnettle.so.4: cannot open shared object file: No such file or directory
[root@i3 ~]# find / -iname "libnettle*"
/usr/lib/libnettle.so.6.0
/usr/lib/libnettle.so
/usr/lib/libnettle.so.6

So there is a missing version-restriction on libnettle or pacman (or a dependency of one of them) which makes it impossible to make a safe upgrade.

Offline

#8 2015-04-21 20:16:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openconnect broken after upgrading gnutls and nettle

What packages did you update?

Offline

#9 2015-04-22 11:55:55

RubenKelevra
Member
Registered: 2013-03-01
Posts: 41

Re: [solved] openconnect broken after upgrading gnutls and nettle

I don't know now, but I just linked the *.so.6 to the *.so.4 and everything work... so if an update will fix it, I know it because of the conflicts. smile

Offline

#10 2015-04-22 14:08:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [solved] openconnect broken after upgrading gnutls and nettle

RubenKelevra wrote:

I don't know now, but I just linked the *.so.6 to the *.so.4 and everything work... so if an update will fix it, I know it because of the conflicts. smile

That's not a fix, that's a horrible hack that will break things.

And no, an update that fixes the issue will not conflict. An update that fixes things will point whatever out of date binary you have to the new lib.

Last edited by Scimmia (2015-04-22 14:09:57)

Offline

#11 2015-05-04 11:06:03

RubenKelevra
Member
Registered: 2013-03-01
Posts: 41

Re: [solved] openconnect broken after upgrading gnutls and nettle

Offline

#12 2015-05-10 17:36:27

Lello
Member
Registered: 2013-03-10
Posts: 6

Re: [solved] openconnect broken after upgrading gnutls and nettle

I had the same issue during the execution of "mkinitcpio -p linux" after linux package upgrade to version 4.0.1. That caused a kernel panic on the following ArchLinux startups.

Maybe it's horrible and maybe it will break everything, but Ruben's solution gave me my computer back! Thank you.

Offline

Board footer

Powered by FluxBB