wget: can't load library 'libssl.so.1.1'

1,547 views
Skip to first unread message

Christophe DEMAY

unread,
Sep 8, 2021, 5:51:14 AM9/8/21
to Alt-F

hello sorry i don't practice english everyday :(
On my DNS-325-Ax
i have this message when i want to update : wget: can't load library 'libssl.so.1.1'
so i move alf-f on usb after read message about trouble and soluce
to fix it

i try to do ipkg update on terminal but same message :

[root@DNS-325-Ax]# ipkg update
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/stable//Packages
wget: can't load library 'libssl.so.1.1'
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages
wget: can't load library 'libssl.so.1.1'
An error ocurred, return value: 2.
Collected errors:
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp -q -P /tmp/ipkg-aUkARR https://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-aUkARR https://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages'

Thanks to help me to solve the problem

Joao Cardoso

unread,
Sep 8, 2021, 12:48:04 PM9/8/21
to Alt-F Group
Please post the output of the following command:

ls -l /usr/lib/libssl* /usr/lib/libcrypto*


--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/599216d3-75a9-4a1f-9518-2cf0427e4650n%40googlegroups.com.

Christophe DEMAY

unread,
Sep 8, 2021, 1:33:35 PM9/8/21
to Alt-F
the output command :

[root@DNS-325-Ax]# ls -l /usr/lib/libssl* /usr/lib/libcrypto*
lrwxrwxrwx    1 root     root            18 Sep  8 11:33 /usr/lib/libcrypto.so -> libcrypto.so.1.0.0
-rwxr-xr-x    1 root     root       1286504 Jan 25  2020 /usr/lib/libcrypto.so.1.0.0
lrwxrwxrwx    1 root     root            15 Sep  8 11:32 /usr/lib/libssl.so -> libssl.so.1.0.0
-rwxr-xr-x    1 root     root        291496 Jan 25  2020 /usr/lib/libssl.so.1.0.0

Joao Cardoso

unread,
Sep 8, 2021, 4:51:00 PM9/8/21
to Alt-F
On Wednesday, September 8, 2021 at 6:33:35 PM UTC+1 www.c...@gmail.com wrote:
the output command :

[root@DNS-325-Ax]# ls -l /usr/lib/libssl* /usr/lib/libcrypto*
lrwxrwxrwx    1 root     root            18 Sep  8 11:33 /usr/lib/libcrypto.so -> libcrypto.so.1.0.0
-rwxr-xr-x    1 root     root       1286504 Jan 25  2020 /usr/lib/libcrypto.so.1.0.0
lrwxrwxrwx    1 root     root            15 Sep  8 11:32 /usr/lib/libssl.so -> libssl.so.1.0.0
-rwxr-xr-x    1 root     root        291496 Jan 25  2020 /usr/lib/libssl.so.1.0.0

There are no signs of  openssl-1.1 libraries, which are needed by wget (which is needed by ipkg for installing/upgrading).
I can only guess that during an update or upgrade wget was updated, the update process broke for some reason and openssl-1.1 did not get installed.
As wget is needed to perform installation or upgrading of any package, your only option is to remove the existing wget, reverting to the firmware shipped one (which only needs openssl-1.0, which you have). Confused?

Try the following command:

ipkg --force-depends remove wget

That should remove the on-disk installed version and resurrect the firmware version. To confirm, try

ldd /usr/bin/wget

No "not found" should appear in the output, and libssl.so.1.0 should appear.
If that is the case, ipkg should be able to download pkgs and perform installation and upgrades, try

ipkg upgrade

The above was not tested, as I'm away from my boxes, but it should work. If not, please post the output of each command in the sequence.

Do you have any on-disk package installed which needs extensive configuration? Because the next option is to completely uninstall Alt-F pkgs from disk and reinstall (not reflash)

Christophe DEMAY

unread,
Sep 8, 2021, 5:24:23 PM9/8/21
to Alt-F
Thanks Joao, i do all command, output :

[root@DNS-325-Ax]# ipkg --force-depends remove wget
Removing package wget from /Alt-F...
Successfully terminated.
Collected errors:
Package seems to be wget not installed (STATUS = NOT_INSTALLED).


[root@DNS-325-Ax]# ldd /usr/bin/wget
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0xb6e7c000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0xb6e70000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb6e21000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb6cdd000)
    libdl.so.0 => /lib/libdl.so.0 (0xb6cd3000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb6cb7000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ca4000)
    libc.so.0 => /lib/libc.so.0 (0xb6c43000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f64000)


[root@DNS-325-Ax]# ipkg upgrade
Upgrading dropbear on /Alt-F from 2017.75 to 2020.81...
Upgrading openssh on /Alt-F from 7.1p2 to 8.3p1...
Upgrading rsync on /Alt-F from 3.1.2 to 3.1.3...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//rsync_3.1.3_arm.ipk
Upgrading wget on /Alt-F from 1.19.1 to 1.20.3...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//wget_1.20.3_arm.ipk
Configuring rsync
Configuring wget
Successfully terminated.
Collected errors:
ERROR: Package dropbear (parent dropbear) is not available from any configured src.
Failed to download dropbear. Perhaps you need to run 'ipkg update'?
ERROR: Package openssh (parent openssh) is not available from any configured src.
Failed to download openssh. Perhaps you need to run 'ipkg update'?

so i run ipkg update
Updated list of available packages in /usr/lib/ipkg/lists/feed_1
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages
Updated list of available packages in /usr/lib/ipkg/lists/feed_2
Successfully terminated.

and run ipkg upgrade after update

[root@DNS-325-Ax]# ipkg upgrade
Upgrading dropbear on /Alt-F from 2017.75 to 2020.81...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//dropbear_2020.81_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading openssh on /Alt-F from 7.1p2 to 8.3p1...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssh_8.3p1_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading openssl on /Alt-F from 1.0.2u to 1.1.1k...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssl_1.1.1k_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading rsync on /Alt-F from 3.1.3 to 3.1.3-1...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//rsync_3.1.3-1_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading stunnel on /Alt-F from 5.56 to 5.56-1...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//stunnel_5.56-1_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading vsftpd on /Alt-F from 3.0.3 to 3.0.4...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//vsftpd_3.0.4_arm.ipk

wget: can't load library 'libssl.so.1.1'
Nothing to be done
Successfully terminated.
Collected errors:
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//dropbear_2020.81_arm.ipk'
Failed to download dropbear. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssh_8.3p1_arm.ipk'
Failed to download openssh. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssl_1.1.1k_arm.ipk'
Failed to download openssl. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//rsync_3.1.3-1_arm.ipk'
Failed to download rsync. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//stunnel_5.56-1_arm.ipk'
Failed to download stunnel. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget --passive-ftp    -q -P /tmp/ipkg-QvX9KH https://sourceforge.net/projects/alt-f/files/pkgs/unstable//vsftpd_3.0.4_arm.ipk'
Failed to download vsftpd. Perhaps you need to run 'ipkg update'?

The same application aren't update with the message before remove and update wget

Perhaps it's not good idea install unstable packages ?

I don't known if i have extensive configuration,i only install alt-f long time ago and nothing else, but i don't want loose my files. Alt-f is now on usb disk, i use one hd for my data and the other with raid to save all my files.

Do you think i can reinstall alt-f without damage ? how i can do this ?

Christophe DEMAY

unread,
Sep 8, 2021, 6:37:02 PM9/8/21
to Alt-F
Thanks Joao,

I have delete the old alf-f on disk and now i use only the copy on usb.
I do command a new time and now it's good all packages are update.

Joao Cardoso

unread,
Sep 8, 2021, 6:59:53 PM9/8/21
to Alt-F
On Wednesday, September 8, 2021 at 10:24:23 PM UTC+1 www.c...@gmail.com wrote:
Thanks Joao, i do all command, output :

[root@DNS-325-Ax]# ipkg --force-depends remove wget
Removing package wget from /Alt-F...
Successfully terminated.
Collected errors:
Package seems to be wget not installed (STATUS = NOT_INSTALLED).

That's expected, no problem.
 


[root@DNS-325-Ax]# ldd /usr/bin/wget
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0xb6e7c000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0xb6e70000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb6e21000)

right. The fw shipped wget has been re-surrected and is using openssl-1.0
 
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb6cdd000)
    libdl.so.0 => /lib/libdl.so.0 (0xb6cd3000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb6cb7000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ca4000)
    libc.so.0 => /lib/libc.so.0 (0xb6c43000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f64000)


[root@DNS-325-Ax]# ipkg upgrade
Upgrading dropbear on /Alt-F from 2017.75 to 2020.81...
Upgrading openssh on /Alt-F from 7.1p2 to 8.3p1...
Upgrading rsync on /Alt-F from 3.1.2 to 3.1.3...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//rsync_3.1.3_arm.ipk

wget is indeed now working fine, downloading succeeds.
 

Upgrading wget on /Alt-F from 1.19.1 to 1.20.3...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//wget_1.20.3_arm.ipk
Configuring rsync
Configuring wget

wget is being upgraded
 
Successfully terminated.
Collected errors:
ERROR: Package dropbear (parent dropbear) is not available from any configured src.
Failed to download dropbear. Perhaps you need to run 'ipkg update'?

ah, that was missing and should be executed before the upgrade.
 
ERROR: Package openssh (parent openssh) is not available from any configured src.
Failed to download openssh. Perhaps you need to run 'ipkg update'?

so i run ipkg update
Updated list of available packages in /usr/lib/ipkg/lists/feed_1
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages
Updated list of available packages in /usr/lib/ipkg/lists/feed_2
Successfully terminated.

and run ipkg upgrade after update

right, but wget was already updated.
 

[root@DNS-325-Ax]# ipkg upgrade
Upgrading dropbear on /Alt-F from 2017.75 to 2020.81...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//dropbear_2020.81_arm.ipk

wget: can't load library 'libssl.so.1.1'

The upgraded wget now can't run, as openssh was not upgraded. It's kind of a chickens-egg problem.

Lets try once more, adding the ipkg update in the right place. Try:

ipkg --force-depends remove wget
ipkg update
ipkg upgrade
 
Upgrading openssh on /Alt-F from 7.1p2 to 8.3p1...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssh_8.3p1_arm.ipk

wget: can't load library 'libssl.so.1.1'
Upgrading openssl on /Alt-F from 1.0.2u to 1.1.1k...
Downloading https://sourceforge.net/projects/alt-f/files/pkgs/unstable//openssl_1.1.1k_arm.ipk
(...)
 
The same application aren't update with the message before remove and update wget

Perhaps it's not good idea install unstable packages ?

all packages are unstable. That's my was of saying "I warn you" :-)
 

I don't known if i have extensive configuration,i only install alt-f long time ago and nothing else, but i don't want loose my files.

You want. we are just adding/removing files under the Alt-F folder, that will not change disk layout, filesystems or user data.
 
Alt-f is now on usb disk,

OK. A small usb pen is enough, no need to use a full disk drive just for Alt-F packages.
  
i use one hd for my data and the other with raid to save all my files.

Do you think i can reinstall alt-f without damage ? how i can do this ?

Yes, it's safe.
If the above ipkg command line sequence remove, update, upgrade (in that order) does not works, just uncheck all  "Boot Enable" entries and Submit, under Packages->Alt-F webUI. Then reboot, and again at Packages->Alt-F, Delete the current inactive installation (all must be inactive, i.e., not being used) and install again.
This only affects the Alt-F folder were new packages are installed or existing ones updated, not Alt-F itself, which is flashed.
 (...)

Joao Cardoso

unread,
Sep 8, 2021, 7:02:40 PM9/8/21
to Alt-F
On Wednesday, September 8, 2021 at 11:37:02 PM UTC+1 www.c...@gmail.com wrote:
Thanks Joao,

I have delete the old alf-f on disk and now i use only the copy on usb.
I do command a new time and now it's good all packages are update.

Good. I only saw this message after posting an answer, please ignore it. 
Reply all
Reply to author
Forward
0 new messages