Solved [Solved] "pkg: Unable to find catalogs" on a fresh 10.0-RC5

Hi all,

I've done a clean install of FreeBSD 10.0-RC5, and PKGNG doesn't work. After successful bootstrapping with pkg, any command like pkg install some_package or pkg update prints this:
Code:
# pkg update
Updating repository catalogue
digests.txz                                                                 100% 1043KB   1.0MB/s   1.0MB/s   00:01    
packagesite.txz                                                             100% 4801KB   2.3MB/s   1.8MB/s   00:02    
Incremental update completed, 22311 packages processed:
0 packages updated, 0 removed and 22311 added.
pkg: Unable to find catalogs

Some additional info that might be useful:
Code:
# pkg -vv
Version                 : 1.2.4_1
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://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
    enabled         : yes,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

# ll /var/db/pkg
total 168
-rw-r--r--  1 root  wheel  128000 Jan 12 14:11 local.sqlite
-rw-r--r--  1 root  wheel   38912 Jan  9 12:37 repo-FreeBSD.sqlite

A few days ago I installed 10.0-RC4 onto a VM and it worked fine. This error is from a different, real machine. Same thing happens with RC4.
Am I doing something wrong?
Thanks.
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

apanteleev said:
Am I doing something wrong?
Thanks.

No! Same issue here! I just installed a fresh RC5 only to test this after being unable to fix it on another machine, which has been working fine until yesterday or so. Deleting the pkg DB also did not help. Must be an issue with the repos. Or am I now wrong?
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

Hey, anybody seen this thread? Does your pkg work? I know everyone compiles from ports but could someone make a test and confirm this issue? What is the cause and is there an easy fix?
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

The official packages do work on i386 for me on 10.0-RC5 so this must be an amd64 specific problem.
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

Which catalogs does the error message mean - the sqlite databases on disk or a file on the repo server?
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

I just installed 10.0-RC5 (amd64 and all default options) on a new VirtualBox VM about ten minutes ago. I'm not seeing this issue. Seems to work fine as far as I can tell.
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

Did you first install pkg by bootstrapping it or from ports? Could you post your pkg.conf or the repo config? I'll post mine tomorrow as I can't access it right now.
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

My pkg is from ports. The pkg -v output should be 1.2.4_1. I have almost nothing in /usr/local/etc/pkg.conf, it's all defaults except:

Code:
REPO_AUTOUPDATE    : NO

That setting should not make a difference, it just disables the automatic check for new catalogs on every operation.

My repository definition as output by pkg -vv:

Code:
Repositories:
  FreeBSD: { 
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:32/latest",
    enabled         : yes,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

I bootstrapped pkg. I don't have the ports tree installed. My settings in pkg.conf are all defaults.

pkg -vv output.

Code:
Version                 : 1.2.4_1
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                 : {
}

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"
  }
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

I just tried doing pkg update on the same system again, and now it works fine. I didn't even boot the system since the original post.
 
Re: "pkg: Unable to find catalogs" on a fresh 10.0-RC5

Yes, it has been a network problem. The two machines, that were not working two days ago, didn't complain at all as I tested today. Maybe the repo server has had an issue or a missing file.
 
Back
Top