NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/57039: nycdn.netbsd.org redirects to URL without hostname
The following reply was made to PR misc/57039; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: misc/57039: nycdn.netbsd.org redirects to URL without hostname
Date: Fri, 30 Sep 2022 19:06:26 +0200
On Fri, Sep 30, 2022 at 04:15:01PM +0000, louis%zabrico.com@localhost wrote:
> Attempt to retrieve a kernel using "ftp" on a netbsd machine. e.g.:
> # ftp -a http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz
> Trying [2a04:4e42:31::262]:80 ...
> ftp: Can't connect to `2a04:4e42:31::262:80': No route to host
> Trying 151.101.209.6:80 ...
> Requesting http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz
> Redirected to /pub/NetBSD-daily/netbsd-9/202209281530Z/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz
The server is correct, this is a bug in the ftp(1) client on NetBSD.
It has been fixed on all active branches some time ago.
To work around it you need to manually update base.tgz once, e.g. when
you see your above output, construct an absolute url from it:
ftp -a http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/202209281530Z/amd64/binary/base.tgz
(note base, not kern.tgz), then extract that manually, like
# cd / && tar xpzf /tmp/base.tgz
and after that your new ftp(1) binary will work with the relative redirects.
This is a safe thing to do on release branches at least, for -current
you might want to do the same trick for kernel first (but there has
been no userland relevant change in months, so it is almost safe in
-current to).
Martin
Home |
Main Index |
Thread Index |
Old Index