Solved pkg: Unable to find catalogs

Hello,

I can't find a way to get pkg to work to install packages on my storage server.
The version I'm running is official system image 10.1-001 featuring FreeBSD 10.0-STABLE.

This is the output of pkg -vv:

Code:
[root@zfsguru /usr]# pkg -vv
Version : 1.2.7_2
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 : {
all-depends: query %dn-%dv,
annotations: info -A,
build-depends: info -qd,
download: fetch,
iinfo: info -i -g -x,
isearch: search -i -g -x,
leaf: query -e "%a == 0" "%n-%v",
list: info -ql,
origin: info -qo,
provided-depends: info -qb,
raw: info -R,
required-depends: info -qr,
shared-depends: info -qB,
show: info -f -k,
size: info -sq,
}

Repositories:
FreeBSD: {
url : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
enabled : yes,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}


This is the ouput of pkg install pkg -f:

Code:
[root@zfsguru /usr]# pkg install pkg -f
Updating repository catalogue
digests.txz 100% 2065KB 1.0MB/s 1.9MB/s 00:02
packagesite.txz 100% 5287KB 1.3MB/s 2.3MB/s 00:04
pkg: package field incomplete: comment
Incremental update completed, 24326 packages processed:
0 packages updated, 0 removed and 24326 added.
pkg: Unable to find catalogs

I've googled around and tried some stuff, but wasn't able to succeed in finding a solid solution.
My FreeBSD knowledge is also very limited. Any help would be much appreciated. Thanks in advance.
 
Maybe, that's not the reason, but first I see is the difference to my version
Code:
pkg -vv
Version  : 1.5.4

Use the ports-mgmt/pkg port to update pkg.
 
The -f at the end of your command is not needed. Do this first:

# pkg update -f

Then continue with upgrade:

# pkg upgrade
 
The -f at the end of your command is not needed. Do this first:

# pkg update -f

Then continue with upgrade:

# pkg upgrade


Code:
[root@zfsguru /home/ssh]# pkg update -f
Updating repository catalogue
digests.txz                                                                                                   100% 2065KB   2.0MB/s   2.0MB/s   00:00  
packagesite.txz                                                                                               100% 5287KB   1.7MB/s   2.3MB/s   00:03  
pkg: package field incomplete: comment
Incremental update completed, 24326 packages processed:
0 packages updated, 0 removed and 24326 added.
pkg: Unable to find catalogs
[root@zfsguru /home/ssh]# pkg upgrade
Updating repository catalogue
digests.txz                                                                                                   100% 2065KB   1.0MB/s   1.8MB/s   00:02  
packagesite.txz                                                                                               100% 5287KB   1.7MB/s   2.3MB/s   00:03  
pkg: package field incomplete: comment
Incremental update completed, 24326 packages processed:
0 packages updated, 0 removed and 24326 added.
pkg: Unable to find catalogs

Maybe, that's not the reason, but first I see is the difference to my version
Code:
pkg -vv
Version  : 1.5.4

Use the ports-mgmt/pkg port to update pkg.

Thanks, this solved it.
 
Back
Top