Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2020 08:47:51 -0500
From:      Mike Karels <mike@karels.net>
To:        freebsd-stable@freebsd.org
Subject:   possible problem with pkg in FreeBSD11.4-BETA2
Message-ID:  <202005161347.04GDlpnU051069@mail.karels.net>

next in thread | raw e-mail | index | archive | help
This might be due to cockpit error, but I don't remember the exact history
of this machine.  I have a test machine that was running 11.3-RELEASE, and
had been upgraded with freebsd-update.  I upgraded it to 11.4-BETA1 last
week, and BETA2 this weekend.  Then I tried "pkg upgrade" and got an
error:

vmguest2# pkg upgrade
Updating FreeBSD repository catalogue...
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
Fetching meta.txz: 100%    916 B   0.9kB/s    00:01    
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
repository FreeBSD has no meta file, using default settings
Fetching packagesite.txz: 100%    6 MiB 651.6kB/s    00:10    
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
Unable to open created repository FreeBSD
Unable to update repository FreeBSD
Error updating repositories!
vmguest2# pkg -v
1.10.5

More details in case they are useful:

vmguest2# ll /usr/sbin/pkg
-r-xr-xr-x  1 root  wheel  33464 May 15 21:15 /usr/sbin/pkg*
vmguest2# ll /usr/local/sbin/pkg
-rwxr-xr-x  1 root  wheel  186920 May 15  2019 /usr/local/sbin/pkg*
vmguest2# ll /var/db/pkg/
total 59204
-rw-r--r--  1 root  wheel       163 May 16 07:39 FreeBSD.meta
-rw-r--r--  1 root  wheel    413696 May 16 03:01 local.sqlite
-rw-r--r--  1 root  wheel  53915648 Jun 15  2019 repo-FreeBSD.sqlite
-r--r--r--  1 root  wheel   6141600 May 15 03:07 vuln.xml
ry FreeBSD
Error updating repositories!
vmguest2# pkg info
bash-5.0.3                     GNU Project's Bourne Again SHell
gettext-runtime-0.19.8.1_2     GNU gettext runtime libraries and programs
indexinfo-0.3.1                Utility to regenerate the GNU info page index
pkg-1.10.5_5                   Package manager
vmguest2# ls -l /usr/local/bin
total 1332
-rwxr-xr-x  1 root  wheel  1157192 May 15  2019 bash
-r-xr-xr-x  1 root  wheel     6774 May 15  2019 bashbug
-rwxr-xr-x  1 root  wheel    40432 May 15  2019 envsubst
-rwxr-xr-x  1 root  wheel    40416 May 15  2019 gettext
-r-xr-xr-x  1 root  wheel     4629 May 15  2019 gettext.sh
-rwxr-xr-x  1 root  wheel    11496 May 15  2019 indexinfo
-rwxr-xr-x  1 root  wheel    40424 May 15  2019 ngettext
lrwxr-xr-x  1 root  wheel        4 May 15  2019 rbash -> bash

		Mike



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