You are not logged in.

#1 2021-11-22 16:07:34

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

can't install openssl due to files existing

I installed openssl-git from AUR and I decided to overwrite it to install the regular openssl package from pacman.

What is the best way to remove all traces of openssl-git?

Doing the above step, I am getting this error below:

$ sudo pacman -Sdd openssl
looking for conflicting packages...
:: openssl and openssl-git are in conflict. Remove openssl-git? [y/N] 

Packages (2) openssl-git-3.0.0.beta2.r464.g4599ea9fe3-1 [removal]  openssl-1.1.1.l-1

Total Installed Size:    7.32 MiB
Net Upgrade Size:      -13.32 MiB

:: Proceed with installation? [Y/n] Y
(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: /usr/share/man/man7/x509.7ssl.gz exists in filesystem
Errors occurred, no packages were upgraded.

see paste bin dump for the entire error: https://pastebin.com/Sv5sPUJT

$ sudo pacman -Qo openssl
/usr/bin/openssl is owned by openssl-git 3.0.0.beta2.r464.g4599ea9fe3-1

$ sudo pacman -Qo openssl-git
error: No package owns openssl-git

Last edited by an0nsquest (2021-11-22 17:43:49)

Offline

#2 2021-11-22 16:11:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,864

Re: can't install openssl due to files existing

Why are you using -Sdd? And it doesn't look like you answered the question?

Offline

#3 2021-11-22 16:13:51

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: can't install openssl due to files existing

if I do -S or -Sdd, I still get the same errors. I tried -Sdd to see if it would make a difference. It did not.

Offline

#4 2021-11-22 16:29:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,864

Re: can't install openssl due to files existing

Offline

#5 2021-11-22 16:33:58

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: can't install openssl due to files existing

thanks so, just use awk/sed to get the list of all the files and then rename/delete them? Is that what I'm supposed to do?

or can I do pacman -S --overwrite ssl openssl?

thanks

Offline

#6 2021-11-22 17:22:49

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: can't install openssl due to files existing

I tried to rename all those files in the paste bin to "$filename"2

first failed due to sudo privledges

tried it with sudo

now everything is messed up. Can't even use regular pacman command now

$ sudo rm  /usr/share/man/man7/x509.7ssl.gz
sudo: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
$ sudo rm  /usr/share/man/man7/x509.7ssl.gz2
sudo: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
$ sudo pacman -S openssl
sudo: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

that's why I asked specific advice on what the best action is...

Offline

#7 2021-11-22 17:29:24

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: can't install openssl due to files existing

In root, I was able to remove all the filenames inside the paste bin

# while read -r filename; do
> rm "$filename"
> done <pkg
rm: cannot remove '/usr/include/openssl/rand_drbg.h': No such file or directory
rm: cannot remove '/usr/lib/engines-1.1/afalg.so': No such file or directory
rm: cannot remove '/usr/lib/engines-1.1/capi.so': No such file or directory
rm: cannot remove '/usr/lib/engines-1.1/padlock.so': No such file or directory
rm: cannot remove '/usr/lib/libcrypto.so.1.1': No such file or directory
rm: cannot remove '/usr/share/man/man7/x509.7ssl.gz': No such file or directory

# pacman -S libcrypto.so.1.1
pacman: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

now even root can't even use pacman. help?

Offline

#8 2021-11-22 17:41:14

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: can't install openssl due to files existing

Okay. So I timeshift recovered everything back
Then I removed everything in the pastebin excluding these packages.

openssl: /usr/include/openssl/rand_drbg.h exists in filesystem
openssl: /usr/lib/engines-1.1/afalg.so exists in filesystem
openssl: /usr/lib/engines-1.1/capi.so exists in filesystem
openssl: /usr/lib/engines-1.1/padlock.so exists in filesystem
openssl: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl: /usr/lib/libssl.so.1.1 exists in filesystem
openssl: /usr/share/licenses/openssl/LICENSE exists in filesystem

Then I ran this:

$ sudo pacman -S openssl
resolving dependencies...
looking for conflicting packages...
:: openssl and openssl-git are in conflict. Remove openssl-git? [y/N] y

Packages (2) openssl-git-3.0.0.beta2.r464.g4599ea9fe3-1 [removal]
             openssl-1.1.1.l-1

Total Installed Size:    7.32 MiB
Net Upgrade Size:      -13.32 MiB

:: Proceed with installation? [Y/n] Y
(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: /usr/include/openssl/rand_drbg.h exists in filesystem
openssl: /usr/lib/engines-1.1/afalg.so exists in filesystem
openssl: /usr/lib/engines-1.1/capi.so exists in filesystem
openssl: /usr/lib/engines-1.1/padlock.so exists in filesystem
openssl: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl: /usr/lib/libssl.so.1.1 exists in filesystem
openssl: /usr/share/licenses/openssl/LICENSE exists in filesystem
Errors occurred, no packages were upgraded.

It seems I can't delete this package libcrypto.so.1.1 or else it breaks my system...


Last resort, I'm trying out --overwrite

# pacman -S --overwrite libssl --overwrite libcrypto  openssl
resolving dependencies...
looking for conflicting packages...

Packages (1) openssl-1.1.1.l-1

Total Installed Size:  7.32 MiB

:: Proceed with installation? [Y/n] Y
(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: /usr/lib/libcrypto.so.1.1 exists in filesystem
openssl: /usr/lib/libssl.so.1.1 exists in filesystem
Errors occurred, no packages were upgraded.

Last edited by an0nsquest (2021-11-22 17:59:12)

Offline

#9 2021-11-22 20:56:13

seth
Member
Registered: 2012-09-03
Posts: 26,533

Offline

Board footer

Powered by FluxBB