From owner-freebsd-questions@freebsd.org Wed May 6 13:03:26 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 920182C4524 for ; Wed, 6 May 2020 13:03:26 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49HGxB3BLBz4cV6 for ; Wed, 6 May 2020 13:03:26 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 220FC1FE60 for ; Wed, 6 May 2020 13:03:26 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f174.google.com with SMTP id c64so1716043qkf.12 for ; Wed, 06 May 2020 06:03:26 -0700 (PDT) X-Gm-Message-State: AGi0PuaCWWQ/uEWVuatN2DRUt7b5HMepjfTCo2gkjd6oWqBynmDzVXGs lHjn7SLAcpvS6jxa2jGeA5i3QjwcntbuNYtrA1U= X-Google-Smtp-Source: APiQypLLiS9o/FY/9qBt3/jb4/Qyw6H0G4Y+bOek+mEMx3Rylr4nHr/qNLSqvjk0JBPaAQaGsAfVfqpXQdP8ttfbP8w= X-Received: by 2002:a37:8c4:: with SMTP id 187mr8433086qki.34.1588770205598; Wed, 06 May 2020 06:03:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Wed, 6 May 2020 08:03:12 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pkg-static update failed - FreeBSD.meta has wrong version 2 To: Christoph Kukulies Cc: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 13:03:26 -0000 On Wed, May 6, 2020 at 7:14 AM Christoph Kukulies wrote: > > I have a FreeBSD-11.0 installed on a VM and was trying to install some packages. > > pkg search already failed with some error saying FreeBSD.meta has wrong version 2. > > So I decided to upgrade to FreeBSD 12.1 > > This seems to have worked: > > uname -a > > FreeBSD fbsd 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC. amd64 > > But trying to update pkg still fails: > > Updating FreeBSD repository catalogue... > Fetching meta.txz: . done > repository FreeBSD has no meta file, using default settings > Fetching packagesite.txz: .......... done > Unable to open created repository FreeBSD > Unable to update repository FreeBSD > Error updating repositories! > y meta /var/db/pkg/FreeBSD.meta has wrong version 2 > pkg-static: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 > pkg-static: Repository FreeBSD load error: meta cannot be loaded No error: 0 > You need a `pkg bootstrap -f` to re-install pkg and fix this.