On Fri, 10 Oct 2014 20:02:19 +0200, you wrote:

>On 2014-10-10 19:43, scratch65...@att.net wrote:
>> 
>> On Fri, 10 Oct 2014 19:30:18 +0200, you wrote:
>> 
>>> On 2014-10-10 19:13, scratch65...@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     : port...@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


I had it as ${ABI} to begin with, but had no luck that way either
(see below).  Then I changed it, unaware that that first 8 was
the version, or even that there are o/s version-dependent
versions of pkg.

14:25 Fri, 10 Oct [momcat:root]/etc/pkg> cat FreeBSD.conf 
FreeBSD: {
         url: "pkg+http://pkg.freebsd.org/${ABI}/latest";,
         enabled: true,
         signature_type: "fingerprints",
         fingerprints: "/usr/share/keys/pkg",
         mirror_type: "srv"
         }
 14:25 Fri, 10 Oct [momcat:root]/etc/pkg> pkg update -f
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
 14:25 Fri, 10 Oct [momcat:root]/etc/pkg> 
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to