Solved [Solved] FreeBSD 10 pkg source is broken?

From about Saturday I noticed on FreeBSD 10 machines (only!) that several packages are with invalid checksum and cannot be installed/updated anymore. For example:
Code:
root@test:/usr/local/etc # pkg instal gnutls
Updating repository catalogue
The following 5 packages will be installed:

	Installing libtasn1: 3.3
	Installing gmp: 5.1.3_2
	Installing p11-kit: 0.20.2_1
	Installing nettle: 2.7.1
	Installing gnutls: 2.12.23_6

The installation will require 15 MB more space

3 MB to be downloaded

Proceed with installing packages [y/N]: y
p11-kit-0.20.2_1.txz                                                                  100%  203KB 202.9KB/s 202.9KB/s   00:00    
pkg: p11-kit-0.20.2_1 failed checksum from repository

root@test:/usr/local/etc #
pkg -vv output
Code:
root@swarm:~ # pkg -vv
Version                 : 1.2.7_3
PACKAGESITE             : 
PKG_DBDIR               : /var/db/pkg
PKG_CACHEDIR            : /var/cache/pkg
PORTSDIR                : /usr/ports
PUBKEY                  : 
HANDLE_RC_SCRIPTS       : no
ASSUME_ALWAYS_YES       : no
REPOS_DIR               : [
  /etc/pkg/,
  /usr/local/etc/pkg/repos/,
]
PLIST_KEYWORDS_DIR      : 
SYSLOG                  : yes
AUTODEPS                : yes
ABI                     : freebsd:10:x86:64
DEVELOPER_MODE          : no
PORTAUDIT_SITE          : http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE            : http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE             : SRV
FETCH_RETRY             : 3
PKG_PLUGINS_DIR         : /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS      : yes
PLUGINS                 : [
]
DEBUG_SCRIPTS           : no
PLUGINS_CONF_DIR        : /usr/local/etc/pkg/
PERMISSIVE              : no
REPO_AUTOUPDATE         : yes
NAMESERVER              : 
EVENT_PIPE              : 
FETCH_TIMEOUT           : 30
UNSET_TIMESTAMP         : no
SSH_RESTRICT_DIR        : 
PKG_SSH_ARGS            : 
PKG_ENV                 : {
}
DISABLE_MTREE           : no
DEBUG_LEVEL             : 0
ALIAS                   : {
}

Repositories:
  FreeBSD: { 
    url             : "pkg+http://pkg0.bme.FreeBSD.org/freebsd:10:x86:64/latest",
    enabled         : yes,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
root@swarm:~ #
Is this is something to report somewhere and how could I get proper repo (is there is any mirror?).
 
Re: FreeBSD 10 pkg source is broken?

Report it on the freebsd-ports@freebsd.org mailing list. No, there is no mirror if the main repository is corrupted for any reason because the mirrors will automatically have the same corrupted data.
 
Re: FreeBSD 10 pkg source is broken?

I tested this on my system (clean jails using the official FreeBSD 10.0 packages at pkg+http://pkg.FreeBSD.org/${ABI}/latest) and both amd64 and i386 packages worked just fine. Can you post the output of pkg -vv?
 
Re: FreeBSD 10 pkg source is broken?

It is above, nothing unusual. Moreover now stuck with another problem:
Code:
root@test:~ # pkg update -f
Updating repository catalogue
digests.txz                                                                 100% 1087KB   1.1MB/s   1.1MB/s   00:00    
packagesite.txz                                                             100% 5018KB   1.0MB/s   1.4MB/s   00:05    
Incremental update completed, 23258 packages processed:
0 packages updated, 0 removed and 23258 added.
pkg: Unable to find catalogs
root@test:~ #
Yet all folders exists, removing them doesn't help either.
 
Re: FreeBSD 10 pkg source is broken?

You have set the mirror explicitly to pkg0.bme.FreeBSD.org and I think the problem is local to that mirror. Try setting the mirror to for example to pkg0.isc.freebsd.org and see if that works.
 
Re: FreeBSD 10 pkg source is broken?

My bad, that was one of my tries, normally default pkg.FreeBSD.org is there. HOWEVER, setting to OTHER THAN pkg0.bme.FreeBSD.org worked, thank you! :beer
Still will keep an eye on further changes :i

UPD. Did check available mirros
host -t srv _http._tcp.pkg.freebsd.org
Code:
_http._tcp.pkg.freebsd.org has SRV record 50 10 80 pkg0.ydx.freebsd.org.
_http._tcp.pkg.freebsd.org has SRV record 90 10 80 pkg0.isc.freebsd.org.
_http._tcp.pkg.freebsd.org has SRV record 10 10 80 pkg0.bme.freebsd.org.
_http._tcp.pkg.freebsd.org has SRV record 50 10 80 pkg0.nyi.freebsd.org.
Looks like among all mirrors only pkg0.bme.freebsd.org is broken. Could be a problem for those how use default configuration with pkg+http://pkg.FreeBSD.org/${ABI}/latest which might return bme as the closest one.
 
I'm not sure exactly what the issue is here. Firstly, you say that "setting to pkg0.bme.FreeBSD.org worked" but then you say "only pkg0.bme.freebsd.org is broken" - which is it?

Do you have a copy of the bad p11-kit-0.20.2_1.txz file? pkg will cache the files in /var/cache/pkg/ but if you have managed to get it installed then chances are the copy that was failing the checksum will have been overwritten already, but if you can check it would be helpful.
 
Back
Top