From owner-freebsd-pkg@FreeBSD.ORG Fri Aug 8 12:48:56 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 C83A7D52 for ; Fri, 8 Aug 2014 12:48:56 +0000 (UTC) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (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 51A612D7F for ; Fri, 8 Aug 2014 12:48:56 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id u10so3728722lbd.21 for ; Fri, 08 Aug 2014 05:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=jqGLQwuE/EfMm3Xkov+PtIa2sY3DTokVOTncPkLaBkw=; b=XFpCmiilNGgNWPMbOGZHFGwkvrh9I/zIdCzldSydSGeHZDRpzkKzEx3bLGTnHZ2AzE N0LDKcPDfT+t3d6sEC1Phcz1iqi4wwHUhc7vxaD+6N2FXqWQu46jAu0kLzM1tSsQGjuK iRnbSa6J0FUjd1fufr/nDNOGDzMMIWUlDifZg5SuRuWyCFWSHzxGzpdD5QIiZ2Ahx2pv qfuZ7sApMgQgUb+aP2Nwo2KjYHYKQIuX6EraCzketdbdg+vc1bIT1pLO+K0ommkKpVlb qOZK0dBzGxDN/8AB5dFGLg1z9auThbkI02+a4g36Q/72pdgjiUYaHZijETKWekmUo7Jb 103w== X-Received: by 10.153.5.44 with SMTP id cj12mr22459231lad.36.1407502134197; Fri, 08 Aug 2014 05:48:54 -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 lm8sm1500104lac.36.2014.08.08.05.48.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 05:48:53 -0700 (PDT) From: Dmitry Sivachenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: schema upgrade fails Message-Id: <1AA47812-1129-454D-803F-B53F79DEB451@gmail.com> Date: Fri, 8 Aug 2014 16:48:52 +0400 To: freebsd-pkg@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) 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:48:56 -0000 Hello! 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. Why this happens? Thanks! # 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: Upgrading pkg: 1.2.6 -> 1.3.5.1 [MyRepo] The upgrade will require 1 MB more space 2 MB to be downloaded 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: # 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)