Entware-ng / how to fix a wget error

ariek
ariek Posts: 27
Second Anniversary
 Freshman Member
wget: error while loading shared libraries: /usr/lib/libssl.so.1.0.0: internal error<br><div></div>
this also broke opkg update
opkg update<br>Package ldconfig version 2.27-11 has no valid architecture, ignoring.<br>Package libc version 2.27-11 has no valid architecture, ignoring.<br>Package locales version 2.27-9 has no valid architecture, ignoring.<br>Package libpthread version 2.27-11 has no valid architecture, ignoring.<br>Package librt version 2.27-11 has no valid architecture, ignoring.<br>Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz<br>wget: error while loading shared libraries: /usr/lib/libssl.so.1.0.0: internal error<br>*** Failed to download the package list from http://bin.entware.net/armv7sf-k2.6/Packages.gz<br><br>Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz<br>wget: error while loading shared libraries: /usr/lib/libssl.so.1.0.0: internal error<br>*** Failed to download the package list from http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz<br><br>Collected errors:<br>&nbsp;* opkg_download: Failed to download http://bin.entware.net/armv7sf-k2.6/Packages.gz, wget returned 127.<br>&nbsp;* opkg_download: Failed to download http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz, wget returned 127.
This error occured after I had tried to get wget to work with https (with ssl vs nossl) links.




Best Answers

  • ariek
    ariek Posts: 27
    Second Anniversary
     Freshman Member
    Answer ✓
    I have solved it by restoring wget to the wget nossl variant (default) by updating/overwriting the wget symlink.


    ln -s /opt/bin/wget-nossl wget

    This is the default state (before I messed things up) but doesn't handle https links.

    At least everything seems to work as expected.
  • ariek
    ariek Posts: 27
    Second Anniversary
     Freshman Member
    Answer ✓
    The source is Entware. 
    <div>which wget</div><div>/opt/bin/wget</div><div></div>

    After removing wget from the status file (in /opt/etc/) // basically the installed apps history (opkg list-installed)

    [email protected]:~# opkg install wget<br>Installing wget-nossl (1.21.2-1) to root...<br>Downloading http://bin.entware.net/armv7sf-k3.2/wget-nossl_1.21.2-1_armv7-3.2.ipk<br><div>Configuring wget-nossl.</div>

    With just "wget" Entware installs the no-ssl variant.

    opkg install wget-ssl<br>Installing wget-ssl (1.21.2-1) to root...<br>Downloading http://bin.entware.net/armv7sf-k3.2/wget-ssl_1.21.2-1_armv7-3.2.ipk<br>Configuring wget-ssl.<br>

    My guess, I broke something yesterday. At the moment, the "wget" command automatically uses/switches to the correct variant depending on the provided http link, wget-nossl for http:// and wget-ssl for https://

All Replies

  • Mijzelf
    Mijzelf Posts: 2,143
    100 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    What is the source of that wget-ssl? When it's an Entware binary, it should not use /usr/lib/libssl.so, but /opt/lib/libssl.so.


Consumer Product Help Center