pkg: cached package php72-pear-Net_SMTP-1.8.1: size mismatch, cannot continue

Stefan Bethke stb at lassitu.de
Mon Jan 21 18:53:59 UTC 2019


I’m having trouble installing packages from the official repo on a 12-stable system:
# pkg install php72-pear-Net_SMTP
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating zs64 repository catalogue...
zs64 repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	php72-pear-Net_SMTP: 1.8.1 [FreeBSD]
	php72-pear-Net_Socket: 1.0.14 [FreeBSD]
	php72-pear: 1.10.6 [FreeBSD]

Number of packages to be installed: 3

The process will require 2 MiB more space.
269 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/3] Fetching php72-pear-Net_SMTP-1.8.1.txz: 100%   15 KiB  15.3kB/s    00:01    
pkg: cached package php72-pear-Net_SMTP-1.8.1: size mismatch, fetching from remote
[2/3] Fetching php72-pear-Net_SMTP-1.8.1.txz: 100%   15 KiB  15.3kB/s    00:01    
pkg: cached package php72-pear-Net_SMTP-1.8.1: size mismatch, cannot continue

Is there a way to find out from where pkg is trying to download the file? I’ve resorted to Wireshark. Manually downloading the file appears to produce the result:

# fetch http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/All/php72-pear-Net_SMTP-1.8.1.txz
php72-pear-Net_SMTP-1.8.1.txz                           14 kB  177 kBps    00s
# sha256 php72-pear-Net_SMTP-1.8.1.txz 
SHA256 (php72-pear-Net_SMTP-1.8.1.txz) = 153c07c431efc3f3181a637ca760d73fd880c6c78a38b37ef2afb4df5e1ac944

On another 12-stable system where I’m not having these issues I see:
# sha256 /var/cache/pkg/php72-pear-Net_SMTP-1.8.1.txz 
SHA256 (/var/cache/pkg/php72-pear-Net_SMTP-1.8.1.txz) = 153c07c431efc3f3181a637ca760d73fd880c6c78a38b37ef2afb4df5e1ac944

What’s happening?


Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811



More information about the freebsd-pkg mailing list