What's new

Entware [SOLVED] Entware packages not updating - wget doesn't have https support

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Phantomski

Regular Contributor
Hi,

headscratching here a bit.

I suddenly can't update/upgrade Entware packages in amtm. I don't remember installing anything that would affect it on the FW 386.7-2 and it certainly didn't improve on 386.9. It just stopped working.

Using amtm, the Update/Upgrade of Entware packages produces an error:
Bash:
Downloading https://bin.entware.net/armv7sf-k2.6/Packages.gz
*** Failed to download the package list from https://bin.entware.net/armv7sf-k2.6/Packages.gz
Collected errors:
* opkg_download: Failed to download https://bin.entware.net/armv7sf-k2.6/Packages.gz, wget returned 1.

Running opkg update produces the same error.

https://bin.entware.net/armv7sf-k2.6/Packages.html is accessible.

If I try using wget directly as wget https://bin.entware.net/armv7sf-k2.6/Packages.gz it comes back with an error HTTPS support not compiled in.

When I tried to install wget-ssl from HTTP version of Entware repository using opkg install http://bin.entware.net/armv7sf-k2.6/wget-ssl_1.21.3-1_armv7-2.6.ipk it comes back with Package wget-ssl (1.21.3-1) installed in root is up to date.

Removing and reinstalling wget doesn't help either. What am I missing?
 
You've probably installed a conflicting version of wget from Entware. Remove it and try again.

Or use /usr/sbin/wget
 
You've probably installed a conflicting version of wget from Entware. Remove it and try again.

Or use /usr/sbin/wget

Nope, not manually.

Symbolic link /jffs/configs/wget points to ../../opt/libexec/wget-nossl. Don't know why. If I change it to /usr/sbin/wget it works OK. Not sure why and what would change it.

System wget aka /entware/bin/wget (note the -ssl):

Bash:
wget -V
GNU Wget 1.21.3 built on linux-gnu.


-cares +digest -gpgme -https +ipv6 -iri +large-file -metalink +nls
-ntlm +opie -psl -ssl


Wgetrc:
    /opt/etc/wgetrc (system)
Locale:
    /opt/share/locale
Compile:
    arm-openwrt-linux-gnueabi-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/opt/etc/wgetrc" -DLOCALEDIR="/opt/share/locale"
    -I. -I../lib -I../lib
    -I/media/ware3/Entware.2022.12/staging_dir/toolchain-arm_cortex-a9_gcc-8.4.0_glibc-2.23_eabi/include
    -I/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
    -I/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
    -DNDEBUG -O2 -pipe -mtune=cortex-a9 -fno-caller-saves
    -fhonour-copts -Wno-error=unused-but-set-variable
    -Wno-error=unused-result -mfloat-abi=soft
Link:
    arm-openwrt-linux-gnueabi-gcc
    -I/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
    -I/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
    -DNDEBUG -O2 -pipe -mtune=cortex-a9 -fno-caller-saves
    -fhonour-copts -Wno-error=unused-but-set-variable
    -Wno-error=unused-result -mfloat-abi=soft
    -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib
    -L/media/ware3/Entware.2022.12/staging_dir/toolchain-arm_cortex-a9_gcc-8.4.0_glibc-2.23_eabi/lib
    -L/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
    -lpcre
    -L/media/ware3/Entware.2022.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
    -lz ../lib/libgnu.a


Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.

/usr/sbin/wget (note the +ssl/openssl):
Bash:
/usr/sbin/wget -V
GNU Wget 1.21.3 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls
-ntlm -opie -psl +ssl/openssl

Wgetrc:
    /etc/wgetrc (system)
Compile:
    arm-brcm-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
    -I../lib -I../lib
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/arm-uclibc/stage/usr/include
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/openssl/include
    -DHAVE_LIBSSL
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/routerzlib
    -DNDEBUG -Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY
    -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm
    -DCONFIG_NVSIZE_128 -DLINUX_KERNEL_VERSION=132644
    -ffunction-sections -fdata-sections
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/arm-uclibc/stage/usr/include
    -std=gnu99 -DASUSWRT
Link:
    arm-brcm-linux-uclibcgnueabi-gcc
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/openssl/include
    -DHAVE_LIBSSL
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/routerzlib
    -DNDEBUG -Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY
    -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm
    -DCONFIG_NVSIZE_128 -DLINUX_KERNEL_VERSION=132644
    -ffunction-sections -fdata-sections
    -I/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/arm-uclibc/stage/usr/include
    -std=gnu99 -DASUSWRT -lgcc_s -Wl,--gc-sections
    -L/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/arm-uclibc/stage/usr/lib
    -pthread -luuid
    -L/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/openssl
    -lcrypto -lssl
    -L/home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/zlib
    -lz ../lib/libgnu.a
    /home/merlin/amng.ac88/release/src-rt-7.14.114.x/src/router/arm-uclibc/stage/usr/lib/libiconv.so

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
 
When I removed the "other" wget by opkg remove wget-nossl it removed the symlink too and all works well. I'm quite certain I haven't installed the nossl version myself. Strange.
EDIT: Of course I did :rolleyes: - when I was using 384.xx, the NonSSL version was the only way to update Entware. Doh. Not sure why it worked for a little bit on 386.7-2, but hey, all good.
 
Last edited:
When I removed the "other" wget by opkg remove wget-nossl it removed the symlink too and all works well. I'm quite certain I haven't installed the nossl version myself. Strange.
EDIT: Of course I did :rolleyes: - when I was using 384.xx, the NonSSL version was the only way to update Entware. Doh. Not sure why it worked for a little bit on 386.7-2, but hey, all good.
Ran into the same problem. Thanks for sharing the solution!!!
 
This didn't work for me still getting :

Upgrading syslog-ng on root from 3.38.1-1a to 4.2.0-1...
Downloading https://bin.entware.net/aarch64-k3.10/syslog-ng_4.2.0-1_aarch64-3.10.ipk
Upgrading terminfo on root from 6.4-1 to 6.4-2...
Downloading https://bin.entware.net/aarch64-k3.10/terminfo_6.4-2_aarch64-3.10.ipk
Upgrading column on root from 2.38.1-1 to 2.39-2...
Downloading https://bin.entware.net/aarch64-k3.10/opkg_2022-02-24-d038e5b6-2_aarch64-3.10.ipk
Upgrading zoneinfo-europe on root from 2022g-1 to 2023c-2...
Downloading https://bin.entware.net/aarch64-k3.10/glib2_2.74.0-4_aarch64-3.10.ipk
Upgrading libcurl on root from 7.86.0-1 to 8.1.1-1...
Downloading https://bin.entware.net/aarch64-k3.10/libpcre_8.45-5_aarch64-3.10.ipk
Upgrading coreutils-base64 on root from 9.1-1 to 9.3-1...
Downloading https://bin.entware.net/aarch64-k3.10/zoneinfo-asia_2023c-2_aarch64-3.10.ipk
Upgrading coreutils on root from 9.1-1 to 9.3-1...
Downloading https://bin.entware.net/aarch64-k3.10/libpcre2_10.42-1_aarch64-3.10.ipk
Upgrading libjson-c on root from 0.16-2 to 0.16-3...
Downloading https://bin.entware.net/aarch64-k3.10/haveged_1.9.18-2_aarch64-3.10.ipk
Upgrading libuuid on root from 2.38.1-1 to 2.39-2...
Downloading https://bin.entware.net/aarch64-k3.10/libsmartcols_2.39-2_aarch64-3.10.ipk
Upgrading libintl-full on root from 0.21.1-1 to 0.21.1-2...
Downloading https://bin.entware.net/aarch64-k3.10/libncurses_6.4-2_aarch64-3.10.ipk
Upgrading libopenssl-conf on root from 3.0.8-2a to 3.0.8-9...
Downloading https://bin.entware.net/aarch64-k3.10/libncursesw_6.4-2_aarch64-3.10.ipk
Upgrading libsqlite3 on root from 3400000-1 to 3410200-1...
Downloading https://bin.entware.net/aarch64-k3.10/libhavege_1.9.18-2_aarch64-3.10.ipk
Upgrading libopenssl on root from 3.0.8-2a to 3.0.8-9...
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/syslog-ng_4.2.0-1_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/terminfo_6.4-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/column_2.39-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/opkg_2022-02-24-d038e5b6-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/zoneinfo-europe_2023c-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/glib2_2.74.0-4_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/libcurl_8.1.1-1_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/libpcre_8.45-5_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/coreutils-base64_9.3-1_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/zoneinfo-asia_2023c-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/coreutils_9.3-1_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/libpcre2_10.42-1_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/haveged_1.9.18-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_install_pkg: Failed to download haveged. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/libuuid_2.39-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.

* opkg_install_pkg: Failed to download libuuid. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download https://bin.entware.net/aarch64-k3.10/libsmartcols_2.39-2_aarch64-3.10.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
 
I've got exactly the same problem when i's doing 'opkg update' and I can confirm the solution works, and the troubleshooting process is crystal clear. Unfortunately, I'm still facing amtm server-diversion.ch is unreachable problem as well.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top