Date: Fri, 8 Aug 2014 16:51:58 +0400 From: Dmitry Sivachenko <trtrmitya@gmail.com> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: freebsd-pkg@freebsd.org Subject: Re: schema upgrade fails Message-ID: <BD134FA9-ED97-4BAB-804E-D3ADF045A6A6@gmail.com> In-Reply-To: <20140808125021.GE17537@ivaldir.etoilebsd.net> References: <1AA47812-1129-454D-803F-B53F79DEB451@gmail.com> <20140808125021.GE17537@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08 =D0=B0=D0=B2=D0=B3. 2014 =D0=B3., at 16:50, Baptiste Daroussin = <bapt@FreeBSD.org> 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?)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BD134FA9-ED97-4BAB-804E-D3ADF045A6A6>