You are not logged in.

#1 2017-04-16 08:57:36

christooss
Member
Registered: 2008-08-18
Posts: 71

[Solved] I accidentally removed openssl package

Yes, I fucked up and now I have problem that I can't reinstall it cause I cannot sudo anymore. I get this error when trying to sudo anything:

sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/lib/sudo/sudoers.so: libssl.so.1.0.0: cannot open shared object file: No such file or directory
sudo: fatal error, unable to load plugins 

I was able to login as normal user after reboot and everything else seems to work. Every app without openssl need probably.

Any ideas how to reinstall openssl properly? Can I go to liveCD and copy files from openssl-1.0.2.k-1-x86_64.pkg.tar.xz? Is there any option to elevate myself to root on exsisting system?

Thanks for your help in advance.

Last edited by christooss (2017-04-16 11:46:24)

Offline

#2 2017-04-16 09:07:37

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] I accidentally removed openssl package

christooss wrote:

Can I go to liveCD and copy files from openssl-1.0.2.k-1-x86_64.pkg.tar.xz?

Pacman#pacman_crashes_during_an_upgrade

Offline

#3 2017-04-16 10:34:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] I accidentally removed openssl package

There's a much easier solution - don't use sudo, just login as root, then reinstall openssl.  Either log in to a tty as root, or just use `su`.  Sudo is a convenience tool and not at all necessary to maintain a linux system.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2017-04-16 10:44:20

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Solved] I accidentally removed openssl package

Trilby wrote:

just login as root, then reinstall openssl.

That will not work, pacman needs the openssl libs too.

$ ldd /usr/bin/pacman | grep -E 'libssl|libcrypto'                                                                      
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007fbf34dd8000)                                                            
        libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007fbf33675000)

edit: It's version 1.1 because I use [testing]...

Last edited by mis (2017-04-16 10:46:47)

Offline

#5 2017-04-16 10:55:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] I accidentally removed openssl package

Oops.  I checked openssl and saw that it wasn't in the base group.  I overlooked that base group members can depend on none-base group members.

I stand corrected.  Ignore my previous post as a solution to the present problem.  Just the same, a chroot is definitely not needed for root access - but it may be to run pacman*

(* note, assuming the pkg.tar.xz is still in the cache the lib files could be extracted and put in place manually as an alternative - but chrooting would be cleaner and possibly easier under most conditions).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2017-04-16 11:46:04

christooss
Member
Registered: 2008-08-18
Posts: 71

Re: [Solved] I accidentally removed openssl package

@ioqs Thanks. I was able to fix this with solution from your link.

Offline

#7 2017-08-31 12:46:13

Stencon281
Member
Registered: 2016-09-21
Posts: 40

Re: [Solved] I accidentally removed openssl package

christooss wrote:

@ioqs Thanks. I was able to fix this with solution from your link.

What was your solution exactly?

Offline

#8 2017-08-31 12:49:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [Solved] I accidentally removed openssl package

There's a step by step in that link, go read it. Should that not be enough to solve whatever your problem is, open up a new thread about it.

Offline

#9 2017-08-31 13:10:57

Stencon281
Member
Registered: 2016-09-21
Posts: 40

Re: [Solved] I accidentally removed openssl package

Stencon281 wrote:
christooss wrote:

@ioqs Thanks. I was able to fix this with solution from your link.

What was your solution exactly?

nvm.... I got it.

Trilby wrote:

Oops.  I checked openssl and saw that it wasn't in the base group.  I overlooked that base group members can depend on none-base group members.

I stand corrected.  Ignore my previous post as a solution to the present problem.  Just the same, a chroot is definitely not needed for root access - but it may be to run pacman*

(* note, assuming the pkg.tar.xz is still in the cache the lib files could be extracted and put in place manually as an alternative - but chrooting would be cleaner and possibly easier under most conditions).

This was a huge help!

I never knew about the ldd command until this post, I also never thought about downloading  the openssl package and copying libssl.so.1.0.0 and libcrypto.so.1.0.0 into the /usr/lib/ folder.

Offline

Board footer

Powered by FluxBB