Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2014 20:02:19 +0200
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-ports <freebsd-ports@FreeBSD.org>
Cc:        scratch65535@att.net
Subject:   Re: PKG not quite ready for prime time
Message-ID:  <54381F2B.7020800@gmx.de>
In-Reply-To: <he6g3apojoln19fd9d8gr2rs0koq3a6940@4ax.com>
References:  <sl4g3adpms8lkd2rr38n3666et8eptsp9i@4ax.com> <543817AA.8080305@gmx.de> <he6g3apojoln19fd9d8gr2rs0koq3a6940@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-10-10 19:43, scratch65535@att.net wrote:
> 
> On Fri, 10 Oct 2014 19:30:18 +0200, you wrote:
> 
>> On 2014-10-10 19:13, scratch65535@att.net wrote:
>>> I'm having quite a lot of trouble converting to pkg due to there
>>> being no obvious source of accurate documentation.   I got this
>>> after I thought I had it solved and could install something:
>>>
>>> 11:36 Fri, 10 Oct [momcat:root]~> pkg install firefox
>>> Updating FreeBSD repository catalogue...
>>> pkg: Repository FreeBSD has a wrong packagesite, need to
>>> re-create database
>>> Fetching meta.txz: 100%   968 B   1.0k/s    00:01    
>>> pkg: Error loading trusted certificates
>>> pkg: repository FreeBSD has no meta file, using default settings
>>> Fetching digests.txz: 100%    2 MB 119.8k/s    00:17    
>>> pkg: Error loading trusted certificates
>>> pkg: Unable to update repository FreeBSD
>>> All repositories are up-to-date.
>>> pkg: Repository FreeBSD has a wrong packagesite, need to
>>> re-create database
>>> pkg: Repository FreeBSD cannot be opened. 'pkg update' required
>>> Updating database digests format: 100%
>>> pkg: No packages available to install matching 'firefox' have
>>> been found in the repositories
>>>
>>>
>>> Just for the record, could someone knowledgeable please post the
>>> real, current list of required config files and their contents OR
>>> a pointer to known-good+complete documentation?
>>>
>>> Thanks!  
>>
>> Please show us the following output
>> $ pkg info pkg
> 
> 
> [momcat:root]~> pkg info pkg
> pkg-1.3.8_3
> Name           : pkg
> Version        : 1.3.8_3
> Installed on   : Fri Oct 10 07:57:56 EDT 2014
> Origin         : ports-mgmt/pkg
> Architecture   : freebsd:9:x86:64
> Prefix         : /usr/local
> Categories     : ports-mgmt
> Licenses       : BSD2CLAUSE
> Maintainer     : portmgr@FreeBSD.org
> WWW            : http://wiki.freebsd.org/pkgng
> Comment        : Package manager
> Shared Libs provided:
> 	libpkg.so.3
> Flat size      : 8.18MiB
> Description    :
> Package management tool
> 
> WWW: http://wiki.freebsd.org/pkgng
> 
> 
>>
>> and from next command everything from "Repositories:" to the end (last ~10 lines)
>> $ pkg -vv
> 
>  
>  Repositories:
>   FreeBSD: { 
>     url             :
> "pkg+http://pkg.freebsd.org/freebsd:8:x86:64/latest",
>     enabled         : yes,
>     mirror_type     : "SRV",
>     signature_type  : "FINGERPRINTS",
>     fingerprints    : "/usr/share/keys/pkg"
>   }
>  13:41 Fri, 10 Oct [momcat:root]~> 
> 

There is a architecture mismatch, your pkg claims to be a 9.x package and your repo wants to install 8.x packages.
I suspect this is a upgraded system that has maunualy changes in the repo file.

Locate the file "/etc/pkg/FreeBSD.conf" and make sure it looks like the following lines (the variable ${ABI} instead "freebsd:8:x86:64")
(it is possible a correct copy exists in /usr/src/etc/pkg/FreeBSD.conf)

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}


after fixing the repo run
$ pkg update -f


-- 
olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54381F2B.7020800>