You are not logged in.

#1 2017-05-17 15:24:07

pgoetz
Member
From: Austin, Texas
Registered: 2014-02-21
Posts: 355

[SOLVED] I just broke my system by downgrading openssl -- how to fix?

I did an upgrade this morning which broke my imapd server.  Suspecting that the culprit was openssl, I downgraded from openssl-1.1.0.e-1-x86_64.pkg.tar.xz to openssl-1.0.2.k-1-x86_64.pkg.tar.xz to see if this resolved the imapd issue.  Big mistake.  Now pacman, curl, etc. are all nonfunctional, and of course without pacman I can't restore openssl-1.1.0.e-1-x86_64.pkg.tar.xz.

Just checking to see if the only solution is to boot from a distribution USB/CD, mount the root partition, and then run

pacman --root /mnt  -S openssl

The server is at a remote location, which means I need to travel to boot from USB.

Last edited by pgoetz (2017-05-18 09:08:04)

Offline

#2 2017-05-17 15:28:42

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

You can unpack the library files from /var/cache/pacman/pkg/openssl-1.1.0.e-1-x86_64.pkg.tar.xz and put them into their respective locations under /usr/lib as a temporary workaround.

Also, what imapd server are you using? If it is properly maintained (and you didn't do a partial upgrade), it should now depend on the `openssl-1.0` package (or simply be rebuilt agains OpenSSL 1.1).

Last edited by ayekat (2017-05-17 15:29:57)


pkgs │ hacks │ cfg │ blag

Offline

#3 2017-05-17 15:56:20

pgoetz
Member
From: Austin, Texas
Registered: 2014-02-21
Posts: 355

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

ayekat wrote:

Also, what imapd server are you using? If it is properly maintained (and you didn't do a partial upgrade), it should now depend on the `openssl-1.0` package (or simply be rebuilt agains OpenSSL 1.1).

Thanks for the tip on upacking the package!

I'm using Cyrus imapd from the AUR.  I've used both Dovecot and Cyrus for years, and with the developer effort from Fastmail, cyrus seems to be a better tool.  The problem is the AUR package maintainer has allowed the package to get wildly out of date, so the version in AUR (2.5.10) apparently doesn't work with OpenSSL 1.1.

Offline

#4 2017-05-17 15:57:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

Instead of putting them in /usr, just unpack it to a temp dir and set LD_LIBRARY_PATH to point to the dir the libs are in. That should let you update the system again.

Last edited by Scimmia (2017-05-17 15:57:33)

Offline

#5 2017-05-17 16:00:33

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

pgoetz wrote:

The problem is the AUR package maintainer has allowed the package to get wildly out of date, so the version in AUR (2.5.10) apparently doesn't work with OpenSSL 1.1.

So have you tried installing the openssl-1.0 package to see if it makes cyrus-imapd work again? If that works, you could notify the maintainer to add it as a dependency.

--edit--
@Scimmia, ah yes, that seems more elegant. I was thinking about using --force, so... neutral

Last edited by ayekat (2017-05-17 16:01:54)


pkgs │ hacks │ cfg │ blag

Offline

#6 2017-05-17 16:19:13

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

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

Not a Pacman issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-05-17 18:04:04

pgoetz
Member
From: Austin, Texas
Registered: 2014-02-21
Posts: 355

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

ayekat wrote:

So have you tried installing the openssl-1.0 package to see if it makes cyrus-imapd work again? If that works, you could notify the maintainer to add it as a dependency.

Of course I didn't think to check if openssl-1.0 had been packaged up to help out with old shared library dependencies.

You just saved me several hours of work today.  I installed openssl-1.0, remade the cyrus-imapd AUR package on another server where openssl hasn't been upgraded yet, and now everything is working again until such time as I have time to build a package of cyrus 3.0.1.

The cyrus-imapd package maintainer has been incommunicado for at least 3 months, so I'm guessing the package has been abandoned.  I was ready to take it over a year and half ago when the last maintainer quit (cyrus is of critical importance to me), so now will go through the steps of orphaning and picking up the package.

Thanks to everyone for the many helpful comments posted here and I can't believe I got relegated to NC; how embarrassing.

Offline

#8 2017-05-17 19:24:20

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

Thanks to everyone for the many helpful comments posted here and I can't believe I got relegated to NC; how embarrassing.

Not sure what's so bad about NC, I post there all the time... Dustbin is a different matter. wink

Please mark your post as [solved] by editing the title in the first post.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#9 2017-05-17 19:26:31

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [SOLVED] I just broke my system by downgrading openssl -- how to fix?

For building packages against OpenSSL 1.0 (even on a system that has OpenSSL 1.1 installed), you can tell the compiler (and the linker?) to add /usr/include/openssl-1.0 to the list of includepaths, although I'm not 100% sure how you could do that with cyrus-imapd's configure script (probably something like CFLAGS=-I/usr/include/openssl-1.0 configure ...).

Anyway, glad to know it worked! Please don't forget to mark your thread as solved smile

Last edited by ayekat (2017-05-17 19:27:17)


pkgs │ hacks │ cfg │ blag

Offline

Board footer

Powered by FluxBB