From owner-freebsd-pkg@FreeBSD.ORG Fri Aug 8 12:56:51 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 945A71B7 for ; Fri, 8 Aug 2014 12:56:51 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28B102EA3 for ; Fri, 8 Aug 2014 12:56:51 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id b13so5418891wgh.6 for ; Fri, 08 Aug 2014 05:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=lVmauXffNEBD/+seR+xS1oVQ12ZjZUYTCgXHwXf16DI=; b=qsQU0nToN9Uih73CCus+8Z+XatUjva0eU8aFYcQwujv23SLZJoKmYLBnTTbf9EzTTR jKJQobdjL15EoJeLe83tyoadYgxWrvprQGvs1zcsBI4/+frwzUXZiZcZFAgbPTUzhY2m lw+QlxCaYnaRJ7ySDrgKOwbG8FagVnGXytLQNemuyhoSozbn7yw7ANZ+2DIgeMD50kIZ SiHBLP7dr8tWy6g2d25YaetAr/1EsxTw9lPGKPcuU0aM13iAC7fdSVWI1TKbjKWRhKm3 ZgySrsUCwg93+fSLnAmvQkhpGHvas6awqxbgGoi1GIYLycLNvSL15MYTasTfcEqySEEP cymA== X-Received: by 10.180.221.65 with SMTP id qc1mr4253074wic.28.1407502609352; Fri, 08 Aug 2014 05:56:49 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id ft6sm1851508wic.0.2014.08.08.05.56.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Aug 2014 05:56:48 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 8 Aug 2014 14:56:46 +0200 From: Baptiste Daroussin To: Dmitry Sivachenko Subject: Re: schema upgrade fails Message-ID: <20140808125645.GF17537@ivaldir.etoilebsd.net> References: <1AA47812-1129-454D-803F-B53F79DEB451@gmail.com> <20140808125021.GE17537@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y/IXGmCbwaJEfeoX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 12:56:51 -0000 --Y/IXGmCbwaJEfeoX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 08, 2014 at 04:51:58PM +0400, Dmitry Sivachenko wrote: >=20 > On 08 =D0=B0=D0=B2=D0=B3. 2014 =D0=B3., at 16:50, Baptiste Daroussin wrote: >=20 > > On Fri, Aug 08, 2014 at 04:48:52PM +0400, Dmitry Sivachenko wrote: > >> Hello! > >>=20 > >> I am running "pkg upgrade" on FreeBSD-10/STABLE. It reports "needs sc= hema upgrade from 2006 to 2010 but it is opened readonly" but I am running = as root. > >>=20 > >> Why this happens? > >>=20 > >> Thanks! > >>=20 > >> # pkg upgrade > >> Updating repository catalogue > >> digests.txz 100% 11KB 11.4KB/s 11.4KB/s = 00:00 =20 > >> packagesite.txz 100% 69KB 69.0KB/s 69.0KB/s = 00:00 =20 > >> Incremental update completed, 234 packages processed: > >> 6 packages updated, 0 removed and 8 added. > >> New version of pkg detected; it needs to be installed first. > >> Upgrades have been requested for the following 1 packages: > >>=20 > >> Upgrading pkg: 1.2.6 -> 1.3.5.1 [MyRepo] > >>=20 > >> The upgrade will require 1 MB more space > >>=20 > >> 2 MB to be downloaded > >>=20 > >> Proceed with upgrading packages [y/N]: y > >> pkg-1.3.5.1.txz 100% 2304KB 2.3MB/s 2.3MB/s = 00:01 =20 > >> Checking integrity... done > >> [1/1] Upgrading pkg from 1.2.6 to 1.3.5.1... done > >> If you are upgrading from the old package format, first run: > >>=20 > >> # pkg2ng > >> Updating repository catalogue > >> Yandex repository is up-to-date > >> All repositories are up-to-date > >> pkg: Repo MyRepo needs schema upgrade from 2006 to 2010 but it is open= ed readonly > >> pkg: need to re-create repo MyRepo to upgrade schema version > >> Updating database digests format: 100% > >> Checking for upgrades: 100% > >> Checking integrity... done (0 conflicting) > >>=20 > >>=20 > > Try pkg update -f first > >=20 >=20 >=20 > That helps, thanks! >=20 > (shouldn't this be done automatically after pkg package upgrade?) >=20 It is a defect yes. regards, Bapt --Y/IXGmCbwaJEfeoX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPkyQ0ACgkQ8kTtMUmk6Ey2LACgp/bHbaOQqjTMfcVlrKAoGfhZ hj4AnRroKdA4Uvdd1iI4dMStvgUjLdGM =+GxA -----END PGP SIGNATURE----- --Y/IXGmCbwaJEfeoX--