With the recent upgrade of hackett
on the netbsd-8
stable track to "8.2-and-a-bit-later" I also switch the
pkgin(1)
repository from the 8.1 subdirectory to the
8.2 one. This was on May, 2nd.
For the first nine days after, pkgin update
wouldn't find any new catalogue but eventually, on May 11th, there
was one.
pkgin upgrade
then greeted me with something
similar to this:
log 167 # pkgin upgrade
calculating dependencies...done.
30 packages to refresh:
p5-Socket6-0.29nb1 p5-IO-Socket-INET6-2.72nb5 dehydrated-0.6.5
p5-IO-CaptureOutput-1.1105 p5-Email-Valid-1.202nb3 Markdown-1.0.1nb7
p5-Net-Domain-TLD-1.75nb3 p5-Net-SMTP-SSL-1.04nb3 automake-1.16.1nb1
p5-TimeDate-2.30nb6 p5-Authen-SASL-2.16nb7 p5-Net-IP-1.26nb7
p5-GSSAPI-0.28nb10 p5-Mozilla-CA-20180117nb2 p5-Net-LibIDN-0.12nb11
p5-Digest-HMAC-1.03nb9 m4-1.4.18nb2 autoconf-2.69nb9 ytalk-3.3.0nb1
tig-1.2.1nb3 tcsh-6.22.02 rlwrap-0.43nb3 pcre2-10.34 lzo-2.10 lz4-1.9.2
libxml2-2.9.10nb1 libuuid-2.32.1 libunistring-0.9.10 iperf-2.0.5nb1
gmake-4.2.1nb1
19 packages to upgrade:
scrollz-2.2.3nb8 screen-4.8.0nb1 python37-3.7.7 perl-5.30.2 p5-Net-SSLeay-1.88
p5-Net-DNS-1.23 p5-MailTools-2.21 p5-IO-Socket-SSL-2.067 p5-Error-0.17029
openvpn-2.4.8nb2 nghttp2-1.40.0nb2 libidn-1.35 libffi-3.3nb2 iperf3-3.7nb1
git-docs-2.25.4 git-base-2.25.4 fossil-2.10nb2 curl-7.69.1 bash-5.0.16nb1
1 package to install:
heimdal-1.5.3nb24
30 to refresh, 19 to upgrade, 1 to install
14M to download, 15M to install
proceed ? [Y/n]
I welcome the 19 packages to upgrade
-- that's why
I run the command.
I was very suprised by the refresh
list, though.
Why do need pkgs to get refreshed even when the pkg is already on
board, with the exact same version? Different dependencies? Loss of
local cache files? Whatever the reason may be, I was particularly
surprised of the ytalk
pkg appearing in this list. I
had installed that package just five days earlier. And yes, at
exactly ytalk-3.3.0nb1
already.
Be that as it may, the real problem showed up when proceeding with this upgrade:
proceed ? [Y/n] y
p5-Authen-SASL-2.16nb7.tgz 100% 24KB 24.3KB/s 00:00
download error: p5-Authen-SASL-2.16nb7 size does not match pkg_summary
This error message is not new to me. I have seen it before (last summer) and suspect some inconsistencies within the Fastly CDN hosting the NetBSD repositories.
The relevant commands to debug this:
pkgin 75 > pwd
/var/db/pkgin
pkgin 76 > sqlite3 pkgin.db
SQLite version 3.17.0 2017-02-13 16:02:40
Enter ".help" for usage hints.
sqlite> .mode line
sqlite> select * from remote_pkg where pkgname like 'p5-Authen-SASL' ;
PKG_ID = 6173
FULLPKGNAME = p5-Authen-SASL-2.16nb7
PKGNAME = p5-Authen-SASL
PKGVERS = 2.16nb7
BUILD_DATE = 2020-04-01 03:57:23 +0000
COMMENT = Perl module to handle SASL authentication
LICENSE = gnu-gpl-v2 OR artistic
PKGTOOLS_VERSION = 20091115
HOMEPAGE = https://metacpan.org/release/Authen-SASL
OS_VERSION = 8.0
DESCRIPTION =
PKGPATH = security/p5-Authen-SASL
PKG_OPTIONS = gssapi
CATEGORIES = security perl5
SIZE_PKG = 119267
FILE_SIZE = 24892
OPSYS = NetBSD
REPOSITORY = http://cdn.Netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/8.2/All
sqlite> ^D
pkgin 76 > echo 0 1 2 | xargs -n1 -I XX lynx -head -dump \
? http://cdn.Netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/8.XX/All/p5-Authen-SASL-2.16nb7.tgz |\
? grep Length
Content-Length: 24900
Content-Length: 24892
Content-Length: 24900
So there's the "size does not match". Others on the
netbsd-users@
mailing list are seeing this download
error, too, and I just joined in with my findings.