You are not logged in.
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
Can I go to liveCD and copy files from openssl-1.0.2.k-1-x86_64.pkg.tar.xz?
Offline
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
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
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
@ioqs Thanks. I was able to fix this with solution from your link.
Offline
@ioqs Thanks. I was able to fix this with solution from your link.
What was your solution exactly?
Offline
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
christooss wrote:@ioqs Thanks. I was able to fix this with solution from your link.
What was your solution exactly?
nvm.... I got it.
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