I need openssl-1.1. After system upgrade I have v3 and pacman -S openssl-1.1 finds conflicts – AUR

I just did a system upgrade and now I have openssl 3.0.8-1. I tried to upgrade my rstudio-desktop-bin but it says it needs openssl-1.1. I tried to install openssl-1.1 but it has conflicts. Does anyone know how to get rstudio-desktop-bin to work with the current stable branch?

Trying rstudio-desktop-bin install:

[mcsimenc@mcsimenc rstudio-desktop-bin]$ makepkg -si PKGBUILD 
==> Making package: rstudio-desktop-bin 2023.03.0.386-2 (Sun 26 Mar 2023 12:52:43 AM PDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (1) openssl-1.1-1.1.1.t-1

Total Installed Size:  5.52 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                          [#############################################################] 100%
(1/1) checking package integrity                                                                        [#############################################################] 100%
(1/1) loading package files                                                                             [#############################################################] 100%
(1/1) checking for file conflicts                                                                       [#############################################################] 100%
error: failed to commit transaction (conflicting files)
openssl-1.1: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl-1.1: /usr/lib/libssl.so.1.1 exists in filesystem
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> openssl-1.1
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Trying openssl-1.1 install:

[mcsimenc@mcsimenc rstudio-desktop-bin]$ sudo pacman -S openssl-1.1
resolving dependencies...
looking for conflicting packages...

Packages (1) openssl-1.1-1.1.1.t-1

Total Installed Size:  5.52 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                          [#############################################################] 100%
(1/1) checking package integrity                                                                        [#############################################################] 100%
(1/1) loading package files                                                                             [#############################################################] 100%
(1/1) checking for file conflicts                                                                       [#############################################################] 100%
error: failed to commit transaction (conflicting files)
openssl-1.1: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl-1.1: /usr/lib/libssl.so.1.1 exists in filesystem
Errors occurred, no packages were upgraded.


Hi @mcsimenc,

OpenSSL was changed quite a while ago. Perhaps you missed it? Anyway, you can have both installed, I do:

$ pamac search openssl
[...]
openssl-1.1                                                                                                                                                                                          [Installed] 1.1.1.t-1                        core
The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
openssl                                                                                                                                                                                              [Installed] 3.0.8-1                          core
The Open Source toolkit for Secure Sockets Layer and Transport Layer Security

They’re both in the core repository, so install version 1.1 with:

pamac install openssl-1.1

Hope this helps!

Thanks @Mirdarthos. At the bottom of my post I showed that I was not able to install openssl-1.1. It finds conflicts with libcryto and libssl.

Maybe

pacman -Qo /usr/lib/lib{crypto,ssl}.so.1.1

would show the conflicting package?

Awesome, @Takakage, thank you. This shows “No package owns” (below). So it seems probably it is not being used by anything in the system since I did an upgrade? I can manually remove them and try to install v1.1 again but I don’t want to break anything and I know these are important files. But if everything is relying on v3 now it should be ok, right?

$ sudo pacman -Qo /urs/lib/lib{crypto,ssl}.so.1.1
error: No package owns /urs/lib/libcrypto.so.1.1
error: No package owns /urs/lib/libssl.so.1.1

you have these:

openssl-1.1: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl-1.1: /usr/lib/libssl.so.1.1 exists in filesystem

which are usually the result of a messed up update, or when installing from non official sources, so use overwrite:

sudo pacman -S openssl-1.1 --overwrite '*'

Read more here: Source link