You are not logged in.

#1 2010-05-02 22:34:39

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

[solved!] woops i uninstalled openssl!

I uninstalled openssl, because there was a dependency that required it to be an earlier version (so none of the zillion other updates made it through because of this). Instead of uninstalling package d4x which was causing the problem, i uninstalled openssl using pacman --nodeps .  and now i cannot get anything to update because pacman requires openssl.

I downloaded the PKGBUILD from AUR and set it up in a folder in my home directory to build it, but the build process uses openssl as well.

some thoughts:
- can I edit the PKGBUILD to avoid using a secure connection, or will the server reject the unsecure request?

EDIT
HERE IS THE SOLUTION:

symptoms:
a core component is forcefully uninstalled accidentally. pacman relies on the component and then cannot work, creating a catch 22. you must update the component to fix the problem, but the problem is being unable to update the component

reasoning:
The packages are at odds with one another after having used "pacman -Su" to update from the local cache, which was out of date. Leaving out the switch "-y" from the usual "pacman -Syu" caused this discrepancy. In order to work around not being able to use pacman, we have to leave the broken environment and fix it externally using the Arch LiveCD that you used to install Arch.

Steps to solve:
1. Boot the LiveCD and get into a bash shell (command prompt). Be sure to log in as root when prompted. Note that you do not need to worry about the password for root, because there isn't one.
2. Configure your network (if you have Wifi, stop here and find a wired connection). Use the Arch setup interface to do this (i.e. use the "/arch/setup" command).
3. Return to your bash shell after the internet is working.
4. Mount your internal disk drive to a directory.
example:
$ mkdir /media/hdd
$ mount /dev/sda6 /media/hdd
(note that my internal device is "sda6". yours probably will not be)
5. run the update command using an alternate root and an alternate cache directory. If you try a very large update without setting a cache directory on the hard disk, you risk the chance of running out of space in the RAM and on the Linux swap partition (yep, that's what i did).
$ pacman -Syu -r /media/hdd --cachedir /media/hdd/var/cache/pacman/pkg

Last edited by rj.AMDphreak (2010-05-17 06:23:32)

Offline

#2 2010-05-02 22:41:41

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [solved!] woops i uninstalled openssl!

Untar the pkg.tar.xz with openssl and cp the libs to /usr/lib, then pacman -Sf openssl.

Offline

#3 2010-05-11 03:08:22

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

oh, hey there is a new twist. as soon as I restarted my computer, GDM stopped working...I believe that maybe XFree86 depends on openssl to connect the Xserver to the Xsession.

edit
okay that was one of my other questions: where do I find the tar.gz for this one? I did some blind clicking and found out it's on the downloads page on openssl's website. i was wondering because it's not directly here on the package description page.

Last edited by rj.AMDphreak (2010-05-11 03:55:40)

Offline

#4 2010-05-11 05:20:04

gishten
Member
Registered: 2009-01-09
Posts: 39

Re: [solved!] woops i uninstalled openssl!

You probably have it in your /var/cache/pacman/pkg, otherwise you can get it from your mirror.


Believe in the Ideal, not the Idol.

Offline

#5 2010-05-11 08:40:01

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

I am having an unexpected problem with tar. I'm using "tar -xvz openssl-1.0.0.tar.gz" while in my flash drive's path after mounting it to /media/lexar
i have verified the contents. i can cp the pkg.tar.gz to /usr/lib , but i still can't untar it even in /usr/lib. I am running as root. it makes no sense, because the command starts, then nothing happens and the command hangs. the activity indicator on my flash drive didn't even light up when i tried to untar. and now that i'm working on a local drive, i still see a problem, so it's not the flash drive.

i'm really stooped on this one.

Last edited by rj.AMDphreak (2010-05-11 08:40:28)

Offline

#6 2010-05-11 10:22:05

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: [solved!] woops i uninstalled openssl!

Save yourself the hassle and use the live cd.


no place like /home
github

Offline

#7 2010-05-11 15:07:47

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

demian wrote:

Save yourself the hassle and use the live cd.

how will that help? i still have to untar, and the livecd doesn't allow me to throw commands about in a root bash shell

edit
anyway i'm trying gzip decompression routine now, instead of tar. (which should give me an uncompressed tar to untar)

edit
damn thing still wont untar. gzip worked fine. any other utility I can use to untar?

edit
can I mount a tar archive to a folder using mount?

edit
no I cannot. I must specify a filesystem---and there isn't one.

Last edited by rj.AMDphreak (2010-05-11 15:23:11)

Offline

#8 2010-05-11 15:13:00

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: [solved!] woops i uninstalled openssl!

Start livecd, configure network, mount your root partition to /mnt.

Then install openssl using the -r option of pacman:

pacman -Sy -r /mnt openssl

Regards,
demian

Last edited by demian (2010-05-11 15:14:40)


no place like /home
github

Offline

#9 2010-05-11 15:18:05

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

demian wrote:

Start livecd, configure network, mount your root partition to /mnt.

Then install openssl using the -r option of pacman:

pacman -Sy -r /mnt openssl

Regards,
demian

OK. I'll try it. I'm not getting anywhere with the crap I'm doing.

edit
nice! i forgot the livecd's primary function is a bash prompt.

edit
here is the command set I'm using.
note: i checked /mnt/ and it has two folders inside it, so i'm making a directory and mounting on the directory
$mkdir /media/hdd
$mount ntfs /dev/sda2 /media/hdd

mount is spitting out a mouthful of information about how to use mount, and not mounting my volume.

edit
oh damn, i just simply misread the man page.
$mount -t ntfs /dev/sda2 /media/hdd

it responded better this time, but now it says wrong fs type, bad option....etc, because it doesn't know what to do with it. sigh.

edit
haha i believe I selected the wrong partition. forgot i was still testing to see which one was root

edit
never mind. it didn't change anything when i tried my other partitions on sda

edit
i'm such a fat fuck. i'm not using NTFS on those partitions!

edit
thoughts:
- this must seem comical to you guys. it's definitely not scripted.

Last edited by rj.AMDphreak (2010-05-11 15:39:52)

Offline

#10 2010-05-11 16:05:13

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

demian wrote:

Start livecd, configure network, mount your root partition to /mnt.

Then install openssl using the -r option of pacman:

pacman -Sy -r /mnt openssl

Regards,
demian

OK I did it. It didn't work. I rebooted after using the livecd to intsall openssl 1.0.0.5-something

GDM still fails to start, and my local copy of pacman still fails to function and returns this error like before:

pacman: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

Offline

#11 2010-05-11 17:28:06

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved!] woops i uninstalled openssl!

show us output of
ldd $(which pacman)
ls -l /usr/lib/libssl*

Last edited by fsckd (2010-05-11 17:30:37)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2010-05-11 17:31:44

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [solved!] woops i uninstalled openssl!

That looks like you didn't have a fully updated system. Try installing pacman (and probably need libarchive and libfetch as well) the same way you did openssl. Then do a pacman -Syu on your system once pacman is working again to be sure everything is updated

Offline

#13 2010-05-11 17:43:07

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

fsckd wrote:

show us output of
ldd $(which pacman)
ls -l /usr/lib/libssl*

okay i'll show the outputs, but i'm going to try McMillan's suggestion, because it seems like it will work.

ldd-output.txt

    linux-gate.so.1 =>  (0xb7874000)
    libalpm.so.4 => /usr/lib/libalpm.so.4 (0xb7824000)
    libc.so.6 => /lib/libc.so.6 (0xb76dd000)
    libfetch.so => /usr/lib/libfetch.so (0xb76cf000)
    libarchive.so.2 => /usr/lib/libarchive.so.2 (0xb7690000)
    /lib/ld-linux.so.2 (0xb7875000)
    libssl.so.0.9.8 => not found
    libcrypto.so.0.9.8 => not found
    libacl.so.1 => /lib/libacl.so.1 (0xb7687000)
    libattr.so.1 => /lib/libattr.so.1 (0xb7682000)
    libcrypto.so.0.9.8 => not found
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb765b000)
    liblzma.so.0 => /usr/lib/liblzma.so.0 (0xb763a000)
    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7629000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb7614000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb75fb000)

ls-l_output.txt

-rwxr-xr-x 1 root root 219251 Mar 23 15:43 /usr/lib/libssl3.so
lrwxrwxrwx 1 root root     10 Feb 11 13:17 /usr/lib/libssl3.so.1d -> libssl3.so
-rw-r--r-- 1 root root 489602 Mar 31 22:16 /usr/lib/libssl.a
lrwxrwxrwx 1 root root     15 Mar 31 22:16 /usr/lib/libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 root root 364805 Mar 31 22:16 /usr/lib/libssl.so.1.0.0

Offline

#14 2010-05-11 18:03:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved!] woops i uninstalled openssl!

I agree with mcmillan. It looks like you have an older version of pacman. You already have libarchive and libfetch. You need to either install a newer version of pacman or downgrade libssl and libcrypto (which I assume is there at a higher version).


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#15 2010-05-11 19:02:04

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

fsckd wrote:

I agree with mcmillan. It looks like you have an older version of pacman. You already have libarchive and libfetch. You need to either install a newer version of pacman or downgrade libssl and libcrypto (which I assume is there at a higher version).

yes, i think that's what happened. i'm upgrading everything via the liveCD from the repositories, so hopefully this will get straightened out after a full upgrade. i'm excited. every time i run into a giant problem with linux, i like pitting my wits and the wits of others against it.

edit
i ran into more problems. apparently pacman tries to store all the updates on the RAM file system in /var/cache/pacman/* , instead of storing them on the hard drive. perhaps I can mount a folder inside the ramfs folder where pacman stores downloaded files.

edit
I can't find any tools that will either 1) mount a folder into another folder or 2) make a directory junction from one folder to another. any suggestions? well, any suggestions short of installing the packages from the bottom up (it shows alot of packages to upgrade)

Last edited by rj.AMDphreak (2010-05-12 03:28:41)

Offline

#16 2010-05-12 03:59:38

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

NEW TACTIC!

I'm going to uninstall openssl again, then install a version that works with the pacman on my computer. the live pacman says the pacman package on my drive is up to date, but when i reboot into my computer and run pacman it throws an error about not being able to find libssl.so-XXXX

Offline

#17 2010-05-12 05:25:50

rj.AMDphreak
Member
From: Rolla, MO
Registered: 2010-02-12
Posts: 20

Re: [solved!] woops i uninstalled openssl!

FINAL WORD

I found the --cachedir <dir> switch in the manual page for pacman.  just what i needed.

For other newbs who read this, my new cache directory was set to "/media/hdd/var/cache/pacman/pkg" so use this as an example.
This method worked for me. I am now writing this from my laptop...now, pacman has some more issues, but this one is solved.

Last edited by rj.AMDphreak (2010-05-12 20:33:56)

Offline

Board footer

Powered by FluxBB