Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 19:39:49 -0700
From:      Jeffrey Bouquet <jeffreybouquet@yahoo.com>
To:        freebsd-pkg@freebsd.org
Subject:   Re: SOLVED pkg problem again (pkg upgrade, specifically)
Message-ID:  <556922F5.6030407@yahoo.com>
In-Reply-To: <5568B9FE.6000106@yahoo.com>
References:  <5568B9FE.6000106@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 05/29/15 12:11, Jeffrey Bouquet via freebsd-pkg wrote:
> I can install packages but not use package upgrade, it piecemeal wants
> to remove AFAIK practically all of the ports, which I can then reinstall
> with portupgrade:
> portupgrade -PP -i -f zinf  
>
> ........................................................
> Script started on Fri May 29 12:00:41 2015 command:
> /usr/local/sbin/pkg-static upgrade Updating FreeBSD repository
> catalogue... FreeBSD repository is up-to-date. All repositories are
> up-to-date. Checking for upgrades (1824 candidates): 0% Checking for
> upgrades (1824 candidates): 0% Checking for upgrades (1824 candidates):
> 1% Checking for upgrades (1824 candidates): 2% Checking for upgrades
> (1824 candidates): 3% Checking for upgrades (1824 candidates): 4%
> Checking for upgrades (1824 candidates): 5% Checking for upgrades (1824
> candidates): 6% Checking for upgrades (1824 candidates): 7% Checking for
> upgrades (1824 candidates): 8% Checking for upgrades (1824 candidates):
> 9% Checking for upgrades (1824 candidates): 10% Checking for upgrades
> (1824 candidates): 11% Checking for upgrades (1824 candidates): 12%
> Checking for upgrades (1824 candidates): 13% Checking for upgrades (1824
> tes): 47% Checking for upgrades (1824 candidates): 48% Checking
> 1824 candidates): 13% Processing candidates (1824
> ates): 47% Processing candidates (1824 candidates): 48% Processing
> ccandidates (1824 candidates): 97% Processing candidates (1824
> candidates): 100%
>
> pkg-static: Cannot solve problem using SAT solver: upgrade rule: upgrade
> local xpn-1.2.6_5 to remote xpn-1.2.6_5
> cannot install package xpn, remove it from request? [Y/n]: n
> pkg-static: cannot solve job using SAT solver Script done on Fri May 29
> 12:01:04 2015
>
> .......................................................................................
> So xpn, pkg cannot , delete xpn
> then AFAIK twenty x.... ports need removal
> then twenty w....
> then twenty v...                         
> approximate of course, but since I already "pkg check -Ba " and "pkg
> update -f " etc...
> This was working in the v10 before the upgrade to v11, AND was working
> on the v11 system
> the upgrade (/usr/src and /usr/obj) were used for.   So why when all was
> in place for an
> upgrade, would "pkg upgrade" be unworkable again? 
>
> To complicate matters, the database file is (3xxx ports) too large to
> send for debugging AFAIK.
> I suppose "pkg upgrade" could be enhanced to due more before halting, or
> print a more
> precise error.  Even twenty lines of debugging to be posted somewhere...
>
> ..............................................................
> Also I thought, pkg should itself have an UPDATING file,  since
> the rewrite of configuration files, possible bootstrap,  commands which
> work better and
> which work worse across major updates, etc etc.    It appears even maybe pkg
> "forgot" about installed ports upon a simple v10 > v11 upgrade,  
> luckily I had the previous
> backup to list the ports from and do some shell  pipes so most (not all)
> are reinstalled as I
> write this.   Although I have not double checked.
> .....................................................................
> _______________________________________________
I ran pkg upgrade with the DEBUG_LEVEL=4.  File resulting was too large
to send by email.  I
grepped out "remote" to a text file, ran that file through a pipe to
just get the port
[ abi change update] [grep, awk ...] >> next file, then looped through
that one
updating.................................. "pkg update" works again.
[lines containing remote contained the ABI ports needing updating ]

 Did not get to test:
can not solve >> pkg install just one
can not solve >> pkg install just one ... etc to see if that would fix
the pkg upgrade command
by use of the pkg install command.   That may have been another way. 
Unsure.

Another quirk updating v10 > v11, which fixed perl here,

To update by package one port,  hundreds were
removed unequivocally.  So I scripted that, so had a list from which to
reinstall.  No time
to reinstall all of those at the moment, unfortunatly, too many p5-...

Next,
  I used a backup v10 local.sqlite and a new v11
local.sqlite, ran pkg query on them both,  and used the 'diffp' (a MOVED
obsolete command)
to install piecemeal the ones on the left pane (sort of like
mergemaster) [diffp on the
resulting text files from each database, 2 total...]

So it seems all fixed here for now.     Sorry to not provide context in
more detail
for the procedure/fixes above.  No time. 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556922F5.6030407>