View previous topic :: View next topic |
Author |
Message |
Fog_Watch Apprentice


Joined: 24 Jul 2006 Posts: 271 Location: Utility Muffin Research Kitchen
|
Posted: Thu Apr 03, 2025 2:21 am Post subject: Why does my new busybox wget not work? |
|
|
Inside a sparkly new initramfs, busybox is not doing as I ask.
New busybox wget 192.168.1.1 returns
Code: | wget: bad port 'http' |
Old busybox wget 192.168.1.1 successfully obtains a file.
New busybox appears to contain a complete wget:
Code: | grep -i wget .config
CONFIG_WGET=y
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
CONFIG_FEATURE_WGET_STATUSBAR=y
CONFIG_FEATURE_WGET_FTP=y
CONFIG_FEATURE_WGET_AUTHENTICATION=y
CONFIG_FEATURE_WGET_TIMEOUT=y
CONFIG_FEATURE_WGET_HTTPS=y
CONFIG_FEATURE_WGET_OPENSSL=y
|
Ah. Why does my new wget return "bad port" whereas the old wget does not?
Code: | tmp/busybox_old | head -n 1
BusyBox v1.25.1 (2017-06-28 12:04:29 AEST) multi-call binary.
bin/busybox | head -n 1
BusyBox v1.36.1 (2025-03-30 13:43:38 AEDT) multi-call binary. |
|
|
Back to top |
|
 |
Zucca Moderator


Joined: 14 Jun 2007 Posts: 4002 Location: Rasi, Finland
|
Posted: Thu Apr 03, 2025 8:33 am Post subject: |
|
|
Code: | $ qlist -vI busybox; busybox | head -n 1; busybox wget ftp://ftp.funet.fi/dev/10Mrnd
sys-apps/busybox-1.36.1-r3
BusyBox v1.36.1 (2025-02-21 03:15:40 EET) multi-call binary.
Connecting to ftp.funet.fi (193.166.3.2:21)
saving to '10Mrnd'
10Mrnd 100% |***************************************| 10.0M 0:00:00 ETA
'10Mrnd' saved | Works for me. ... but that's ftp.
Code: | $ busybox wget www.frogfind.com
Connecting to www.frogfind.com (64.227.13.248:80)
saving to 'index.html'
index.html 100% |***************************************| 25 0:00:00 ETA
'index.html' saved |
Code: | $ busybox wget 1.1.1.1
Connecting to 1.1.1.1 (1.1.1.1:80)
Connecting to 1.1.1.1 (1.1.1.1:443)
wget: error getting response: Connection reset by peer |
And the config: Code: | $ fgrep -i wget /etc/portage/savedconfig/sys-apps/busybox-1.36.1-r3
CONFIG_WGET=y
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
CONFIG_FEATURE_WGET_STATUSBAR=y
CONFIG_FEATURE_WGET_FTP=y
CONFIG_FEATURE_WGET_AUTHENTICATION=y
CONFIG_FEATURE_WGET_TIMEOUT=y
CONFIG_FEATURE_WGET_HTTPS=y
CONFIG_FEATURE_WGET_OPENSSL=y |
What's the version you have installed via portage? (qlist -vI busybox). _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1587 Location: Richmond Hill, Canada
|
Posted: Thu Apr 03, 2025 11:33 am Post subject: Re: Why does my new busybox wget not work? |
|
|
Fog_Watch wrote: | Inside a sparkly new initramfs, busybox is not doing as I ask.
New busybox wget 192.168.1.1 returns
Code: | wget: bad port 'http' |
| This feel like you missing /etc/services file or something mis-configure about nss. The messages seems indicate wget cannot translate the word "http" to number. |
|
Back to top |
|
 |
|