Solved cannot use pkg after v11 upgrade

Hi all,

I upgraded from 10 to 11 and now I have issue using pkg..
Code:
pkg: Repository FreeBSD missing. 'pkg update' required
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/release_2/meta.txz: Not Found
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/release_2/packagesite.txz: Not Found
I reinstalled pkg from port already and it didn't fix the issue.
Could anyone please advise?

Also all my user directory was messed up, my users group and associated to the wron people
 
I reinstalled pkg from port already and it didn't fix the issue.
The issue is not with the application but with its configuration. Ports or packages never overwrite existing configuration files. If the configuration is incorrect reinstalling the application will not fix it.
 
Hi,
Here is the content of /etc/pkg/FreeBSD.conf
Code:
# $FreeBSD: releng/11.0/etc/pkg/FreeBSD.conf 303975 2016-08-11 23:39:23Z gjb $
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
and /usr/local/etc/pkg/repos/FreeBSD.conf
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/release_2",
  enabled: yes
}

I guess the issue is with the /usr/local/etc/pkg/repos/FreeBSD.conf where can I get the correct url from?
 
There are really only two choices:
Code:
pkg+http://pkg.FreeBSD.org/${ABI}/quarterly
pkg+http://pkg.FreeBSD.org/${ABI}/latest

Unless you have your own repository, in which case you should know what the URL needs to be.
 
SirDice I don't have my own repository..
Should I be using /latest or /quaterly
Am i right to assume that both file would need to match?
 
Also check your DNS settings.

This is typed from mind, but I recall reading messages that the error about the missing sqlite file is mainly caused by problems with name resolving, so your DNS. Verify /etc/resolv.conf and check if things are properly set up.
 
Back
Top