Missing libssl

779 views
Skip to first unread message

Wirfeon

unread,
Feb 2, 2013, 5:32:59 AM2/2/13
to al...@googlegroups.com
Hello.

I am missing libssl and don't know where to get one.

ls -l /usr/lib/ | grep ssl
lrwxrwxrwx    1 root     root            15 Feb 21  2012 libssl.so -> libssl.so.1.0.0
lrwxrwxrwx    1 root     root            15 May  8  2012 libssl.so.1.0.0 -> libssl.so.0.9.8

I can't run ipkg update because of

ipkg update
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/stable/Packages
wget: can't load library 'libssl.so.1.0.0'
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable/Packages
wget: can't load library 'libssl.so.1.0.0'
An error ocurred, return value: 2.
Collected errors:
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-j6a7FM http://sourceforge.net/projects/alt-f/files/pkgs/stable/Packages'
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-j6a7FM http://sourceforge.net/projects/alt-f/files/pkgs/unstable/Packages'


Could someone give me a hint what to do, where to get a right package or just the binary itself? Reflasing didn't help.

It is DNS-323, Alt-F 0.1RC2

Joao Cardoso

unread,
Feb 2, 2013, 9:59:27 AM2/2/13
to al...@googlegroups.com


On Saturday, February 2, 2013 10:32:59 AM UTC, Wirfeon wrote:
Hello.

I am missing libssl and don't know where to get one.

ls -l /usr/lib/ | grep ssl
lrwxrwxrwx    1 root     root            15 Feb 21  2012 libssl.so -> libssl.so.1.0.0
lrwxrwxrwx    1 root     root            15 May  8  2012 libssl.so.1.0.0 -> libssl.so.0.9.8

I can't reproduce that:

# ls -l /usr/lib | grep ssl
lrwxrwxrwx    1 root     root            15 Feb 21  2012 libssl.so -> libssl.so.1.0.0
-rwxr-xr-x    1 root     root        270620 Feb 21  2012 libssl.so.1.0.0

# ldd /usr/bin/wget 
        ...
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x400f2000)

Have you upgraded from a previous Alt-F version? openssl had version 0.9.8 for RC1
If you have upgraded, did you have Alt-F packages installed?
Do you have an 'Alt-F' or 'alt-f' folder on the root of any filesystem?
What does 'aufs.sh -l' outputs?

Please report back
Joao

Wirfeon

unread,
Feb 2, 2013, 12:45:49 PM2/2/13
to al...@googlegroups.com


On Saturday, February 2, 2013 3:59:27 PM UTC+1, Joao Cardoso wrote:

# ldd /usr/bin/wget 
        ...
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x400f2000)

ldd /usr/bin/wget
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x4000d000)
    libssl.so.1.0.0 => not found
    libcrypto.so.1.0.0 => not found
    ...
 
Have you upgraded from a previous Alt-F version? openssl had version 0.9.8 for RC1
If you have upgraded, did you have Alt-F packages installed?
Do you have an 'Alt-F' or 'alt-f' folder on the root of any filesystem?
What does 'aufs.sh -l' outputs?

 
I have upgraded from RC1 and I had some Alt-f packages installed (but not all of them).

ls -l /
total 33
lrwxrwxrwx    1 root     root            15 Feb  2 12:30 Alt-F -> /mnt/sda4/Alt-F

aufs.sh -l
aufs on / type aufs (rw,relatime,si=41938bf1)
/mnt/sda4/Alt-F=rw
/rootmnt/root=rw
/rootmnt/rootsq=rr
 

Joao Cardoso

unread,
Feb 2, 2013, 2:20:33 PM2/2/13
to al...@googlegroups.com
You must have some leftovers from RC1 (or some package) under /mnt/sda4/Alt-F, not sure what.

For a diagnose, log out from ssh or telnet, stop all services first using System->Utilities, Services, StopAll

then ssh/telnet the box and execute

cd
aufs
.sh -u # unmounts /mnt/sda4/Alt-F
aufs
.sh -l # you should not see /mnt/sda4/Alt-F=rw
ldd
/usr/bin/wget


Does ldd now finds libssl and libcrypto? Probably yes.

-The simplest cure will be to remove all Alt-F packages hitting the "RemoveAll" button in Packages->Alt-F, but you will loose all configuration files, so you might want to save them first; package created folders and users folders will not be removed, you can reuse them after re-installing.
Don't reboot the box (or, if you want to, SaveSettings first).

OR, advanced, complex and subjected to error

-Does libssl* or libcrypto* exists under /Alt-F/usr/lib/? If yes, they must be removed, do

aufs.sh -n # always do this before manipulating files or directories under /Alt-F
rm
/Alt-F/usr/lib/libssl* /Alt-F/usr/lib/libcrypto*
aufs
.sh -r

 
If other conflicting files exists under /Alt-F, they must be removed, but don't remove files needed by installed packages (unless that package is responsible for the conflict).

You can use 'ipkg search <file>' to determine what package is responsible for a given file, e.g. 'ipkg search /Alt-F/usr/lib/libform.so' returns "ncurses" (and the file appears also as /usr/lib/libform.so, having the same exact content)

Solved? Please mark as complete. Which method have you used? 

 

Wirfeon

unread,
Feb 3, 2013, 4:02:21 AM2/3/13
to al...@googlegroups.com
I tried the first approach and it removed ipkg also. But now I can't install it again.

# aufs.sh -l

aufs on / type aufs (rw,relatime,si=41938bf1)
/mnt/sda4/Alt-F=rw
/rootmnt/root=rw
/rootmnt/rootsq=rr


# aufs.sh -u
cp: can't stat '/var/lib/nfs/.wh..xtab.lock': Operation not permitted


# aufs.sh -l

aufs on / type aufs (rw,relatime,si=41938bf1)
/rootmnt/root=rw
/rootmnt/rootsq=rr


# aufs.sh -u
/mnt/sda4/Alt-F is not a aufs branch.


# ldd /usr/bin/wget
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x4000d000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x400f2000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x4013c000)
    libz.so.1 => /usr/lib/libz.so.1 (0x4026c000)
    libdl.so.0 => /lib/libdl.so.0 (0x40286000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40290000)
    libc.so.0 => /lib/libc.so.0 (0x402a3000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)


# ipkg -install /mnt/sda4
Installing Alt-F in /mnt/sda4
rm: /mnt/sda4/Alt-F/home: is a directory
Installing ipkg

wget: can't load library 'libssl.so.1.0.0'
Downloading of ipkg_0.99.163_arm.ipk from http://sourceforge.net/projects/alt-f/files/pkgs/unstable failed.
ipkg: can't umount aufs branch, stopping services and retrying...
Connection to 192.168.0.2 closed by remote host.
Connection to 192.168.0.2 closed.


# ls -l /Alt-F/usr/lib/
total 2
drwxr-xr-x    4 root     root          1024 Feb  3 08:00 ipkg
drwxr-xr-x    3 root     root          1024 May  8  2012 modules


It seems that wget is still unusable.

So I looked into /Alt-f/usr/lib and found out, that there was a blind symlink to libcrypto

# ls -l /Alf-f/usr/lib
total 2
drwxr-xr-x    4 root     root          1024 Feb  3 08:00 ipkg
lrwxrwxrwx    1 root     root            18 May  8  2012 libcrypto.so.1.0.0 -> libcrypto.so.0.9.8
drwxr-xr-x    3 root     root          1024 May  8  2012 modules

I removed it but it didn't help. After remounting I still can't install the ipkg because of the above error.

Wirfeon

unread,
Feb 3, 2013, 4:05:34 AM2/3/13
to al...@googlegroups.com


On Sunday, February 3, 2013 10:02:21 AM UTC+1, Wirfeon wrote:

# ls -l /Alt-F/usr/lib/
total 2
drwxr-xr-x    4 root     root          1024 Feb  3 08:00 ipkg
drwxr-xr-x    3 root     root          1024 May  8  2012 modules

This was after removing libcrypto...

Joao Cardoso

unread,
Feb 3, 2013, 12:01:00 PM2/3/13
to al...@googlegroups.com


On Sunday, February 3, 2013 9:02:21 AM UTC, Wirfeon wrote:
I tried the first approach and it removed ipkg also. But now I can't install it again.

# aufs.sh -l
aufs on / type aufs (rw,relatime,si=41938bf1)
/mnt/sda4/Alt-F=rw
/rootmnt/root=rw
/rootmnt/rootsq=rr


# aufs.sh -u
cp: can't stat '/var/lib/nfs/.wh..xtab.lock': Operation not permitted


# aufs.sh -l
aufs on / type aufs (rw,relatime,si=41938bf1)
/rootmnt/root=rw
/rootmnt/rootsq=rr


# aufs.sh -u
/mnt/sda4/Alt-F is not a aufs branch.


/Alt-F is not mounted (does not exists, as 'aufs.sh -l' above shows
 

# ldd /usr/bin/wget
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x4000d000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x400f2000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x4013c000)
    libz.so.1 => /usr/lib/libz.so.1 (0x4026c000)
    libdl.so.0 => /lib/libdl.so.0 (0x40286000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40290000)
    libc.so.0 => /lib/libc.so.0 (0x402a3000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)



So now there is no "not found" libraries, and libssl.so.1.0.0 and libcrypto.so.1.0.0 points to the right ones
 
# ipkg -install /mnt/sda4
Installing Alt-F in /mnt/sda4
rm: /mnt/sda4/Alt-F/home: is a directory

hmmm... /mnt/sda4/Alt-F was not empty? Because of above errors?
 
Installing ipkg
wget: can't load library 'libssl.so.1.0.0'

It seems so. 
 
Downloading of ipkg_0.99.163_arm.ipk from http://sourceforge.net/projects/alt-f/files/pkgs/unstable failed.
ipkg: can't umount aufs branch, stopping services and retrying...
Connection to 192.168.0.2 closed by remote host.
Connection to 192.168.0.2 closed.


# ls -l /Alt-F/usr/lib/
total 2
drwxr-xr-x    4 root     root          1024 Feb  3 08:00 ipkg
drwxr-xr-x    3 root     root          1024 May  8  2012 modules
 
Yes, the modules directory was from the previous install (it is a folder from the kernel-modules package. Was you using any kernel module from the package?)

So the 'ipkg -clean' partially failed. I would like to know why.
Can you please do a "ls -Rla /mnt/sda4/Alt-F >& /mnt/sda4/foo" and post (attach, if Google Groups allow) the '/mnt/sda4/foo' file?

Back to basics (and guessing)

-logout from ssh/telnet, stop all services!
-Does the Alt-F Package Manager shows any package installed? If yes, hit the RemoveAll button under "Remove all installed".
-Does it now prompts you for a new install? Don't.

-ssh/telnet the box

aufs.sh -u # might give an error
aufs
.sh -l # should not show /mnt/sda4/Alt-F, but continue even if it does
aufs
.sh -n # might give an error, that's OK

rm
-rf /mnt/sda4/Alt-F # this should do a real, brute force approach clean
rm
/Alt-F # possible error


Now try again installing using

ipkg -install /mnt/sda4

Any errors?
Solved? Mark as complete (don't forget to attach the /mnt/sda4/foo file, to see if I can diagnose the problem.)

Wirfeon

unread,
Feb 3, 2013, 12:56:03 PM2/3/13
to al...@googlegroups.com


On Sunday, February 3, 2013 6:01:00 PM UTC+1, Joao Cardoso wrote:


On Sunday, February 3, 2013 9:02:21 AM UTC, Wirfeon wrote:

# ls -l /Alt-F/usr/lib/
total 2
drwxr-xr-x    4 root     root          1024 Feb  3 08:00 ipkg
drwxr-xr-x    3 root     root          1024 May  8  2012 modules
 
Yes, the modules directory was from the previous install (it is a folder from the kernel-modules package. Was you using any kernel module from the package?)

No, I didn't.
 

So the 'ipkg -clean' partially failed. I would like to know why.
Can you please do a "ls -Rla /mnt/sda4/Alt-F >& /mnt/sda4/foo" and post (attach, if Google Groups allow) the '/mnt/sda4/foo' file?


Attached.
 
Back to basics (and guessing)

-logout from ssh/telnet, stop all services!
-Does the Alt-F Package Manager shows any package installed? If yes, hit the RemoveAll button under "Remove all installed".
 
It shows no packages.
 
-Does it now prompts you for a new install? Don't.

-ssh/telnet the box

aufs.sh -u # might give an error
aufs
.sh -l # should not show /mnt/sda4/Alt-F, but continue even if it does
aufs
.sh -n # might give an error, that's OK

rm
-rf /mnt/sda4/Alt-F # this should do a real, brute force approach clean
rm
/Alt-F # possible error


Now try again installing using

ipkg -install /mnt/sda4

Any errors?
Solved? Mark as complete (don't forget to attach the /mnt/sda4/foo file, to see if I can diagnose the problem.)

# aufs.sh -u
cp: can't stat '/var/lib/nfs/.wh..xtab.lock': Operation not permitted

# aufs.sh -l
aufs on / type aufs (rw,relatime,si=41938bf1)
/rootmnt/root=rw
/rootmnt/rootsq=rr

# aufs.sh -n

/mnt/sda4/Alt-F is not a aufs branch.

# rm -rf /mnt/sda4/Alt-F
# rm /Alt-F


# ipkg -install /mnt/sda4
Installing Alt-F in /mnt/sda4
Installing ipkg
...
Installing ipkg (0.99.163-2) to /Alt-F...
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable/ipkg_0.99.163-2_arm.ipk
Configuring ipkg
Successfully terminated.


It looks fine. Alt-F Package Manager is now showing packages and I can install them. Problem solved.

Thank you for the great help.

Wirfeon

unread,
Feb 3, 2013, 12:58:11 PM2/3/13
to al...@googlegroups.com

foo.txt
foo.txt

Joao Cardoso

unread,
Feb 3, 2013, 1:51:45 PM2/3/13
to al...@googlegroups.com


On Sunday, February 3, 2013 5:58:11 PM UTC, Wirfeon wrote:

foo.txt

Do you have any idea why 'wirfeon' has a folder under "/Alt-F/home"?I think that was the source of the problem.

It seems to be your home directory (it contains .ash_history) , and if it is it should be under "/mnt/sda4/Users".

/mnt/sda4/Alt-F/home:
...
lrwxrwxrwx    1 root     root            15 Jun 17  2012 Users -> /mnt/sda4/Users 
drwxr-xr-x 2 1000 1000 1024 Jul 18 2011 wirfeon 

The first install failed because of that (the 'ipkg -clean' was not able to remove it, so it was still there during the install:

# ipkg -install /mnt/sda4
Installing Alt-F in /mnt/sda4
rm: /mnt/sda4/Alt-F/home: is a directory

And as the clean failed, and somehow libssl.so.1.0.0 was deleted, after the install it remained deleted (the .wh.<file> appears when a file is "deleted")

/mnt/sda4/Alt-F/usr/lib:
...
-r--r--r--    5 root     root             0 Jan 15  2011 .wh.libssl.so
-r--r--r--    5 root     root             0 Jan 15  2011 .wh.libssl.so.1.0.0

Thanks for posting this file. I still don't know how it happened, but I now know what happened.
And sorry for losing you mediatomb and minidlna db files, you will have to re-index your media again.

Joao

Wirfeon

unread,
Feb 4, 2013, 2:44:12 AM2/4/13
to al...@googlegroups.com


On Sunday, February 3, 2013 7:51:45 PM UTC+1, Joao Cardoso wrote:


On Sunday, February 3, 2013 5:58:11 PM UTC, Wirfeon wrote:

foo.txt

Do you have any idea why 'wirfeon' has a folder under "/Alt-F/home"?I think that was the source of the problem.


I remember creating this user, but I don't know why it is right there.
 

Thanks for posting this file. I still don't know how it happened, but I now know what happened.
And sorry for losing you mediatomb and minidlna db files, you will have to re-index your media again.

No need to be worry :)


W
Reply all
Reply to author
Forward
0 new messages