schema upgrade fails

Baptiste Daroussin bapt at FreeBSD.org
Fri Aug 8 12:56:51 UTC 2014


On Fri, Aug 08, 2014 at 04:51:58PM +0400, Dmitry Sivachenko wrote:
> 
> On 08 авг. 2014 г., at 16:50, Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> 
> > On Fri, Aug 08, 2014 at 04:48:52PM +0400, Dmitry Sivachenko wrote:
> >> 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    
> >> packagesite.txz                     100%   69KB  69.0KB/s  69.0KB/s   00:00    
> >> 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    
> >> 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)
> >> 
> >> 
> > Try pkg update -f first
> > 
> 
> 
> That helps, thanks!
> 
> (shouldn't this be done automatically after pkg package upgrade?)
> 

It is a defect yes.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140808/f960beda/attachment.sig>


More information about the freebsd-pkg mailing list