From owner-freebsd-pkg@FreeBSD.ORG Fri Aug 8 12:52:05 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20904EDC; Fri, 8 Aug 2014 12:52:05 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (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 6F5D32E59; Fri, 8 Aug 2014 12:52:04 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id ty20so4632824lab.32 for ; Fri, 08 Aug 2014 05:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3tenhjzEFoXQp6p4YRaPhwHCW7DFlhFiZ+q2izLsp7M=; b=F9wNHj9S9iescemuKWE+piiQ+h78/iJ0bwlyS90nMwzxYURJFwFRAGxqDivyvmOQWl zT9OemN9siVLTMYHbnHrzeISKKnKJNhlQo4h/4uaCnhmVfh49CIsoRsPfGW2jeHOHgAS 9hfi+gyNwF6afZx4lYQvoe7ugSButXiI6k6bVMbhNH+u+CKOT5L4jFQDTkSBJ/qoKrUk V1epQWVZPY3zozd6a4AKAO34H6Y5UBYVirJXVDqGXH4+Tf2Sd4Mk/AqerqTTiPk/SjDd buYzHOeftQDuBmxgSy2JwbW2VwEuTIDq/5cLNWP5OoUhoVKtCddgSHJLymbfFhvhIT+F 1Jsw== X-Received: by 10.112.73.164 with SMTP id m4mr20586420lbv.3.1407502322386; Fri, 08 Aug 2014 05:52:02 -0700 (PDT) Received: from 95.108.173.189-red.dhcp.yndx.net (95.108.173.189-red.dhcp.yndx.net. [95.108.173.189]) by mx.google.com with ESMTPSA id lh6sm1507842lab.17.2014.08.08.05.51.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 05:52:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: schema upgrade fails From: Dmitry Sivachenko In-Reply-To: <20140808125021.GE17537@ivaldir.etoilebsd.net> Date: Fri, 8 Aug 2014 16:51:58 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1AA47812-1129-454D-803F-B53F79DEB451@gmail.com> <20140808125021.GE17537@ivaldir.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.1878.6) 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:52:05 -0000 On 08 =D0=B0=D0=B2=D0=B3. 2014 =D0=B3., at 16:50, Baptiste Daroussin = wrote: > 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 = schema 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 = opened 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 That helps, thanks! (shouldn't this be done automatically after pkg package upgrade?)