Re: pkg_add error: +CONTENTS does not exist

2008-11-05 Thread Stuart Henderson
On 2008-11-05, Chris [EMAIL PROTECTED] wrote:
 I been updating packages from 4.3 to 4.4 but my box rebooted due to a
 power outage and now I'm getting the following error while updating
 packages:

 Warning: couldn't read packing-list from installed package jasper-1.900.1
 File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
 /usr/sbin/pkg_add: Can't locate jasper-1.900.1

 (pkg_add -ui -F update -F updatedepends)

 I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

 Thanks for any help.



the recommended way would be to take a list of your installed
packages, pkg_delete /var/db/pkg/*, pkg_delete /var/db/pkg/.*,
remove any files from /usr/local that still exist from the
broken package update, remove what's left in /var/db/pkg,
and re-install the packages from your list. (you probably need
to rm -r /var/db/pkg/jasper* before you start).

if you use a non-standard shell, change it to something from
base before you start on pkg_delete.

quicker ways might work too, but they might leave broken
dependency information to come back and bite you in a few
months time.



Re: pkg_add error: +CONTENTS does not exist

2008-11-05 Thread Louis V. Lambrecht

Stuart Henderson wrote:

On 2008-11-05, Chris [EMAIL PROTECTED] wrote:
  

I been updating packages from 4.3 to 4.4 but my box rebooted due to a
power outage and now I'm getting the following error while updating
packages:

Warning: couldn't read packing-list from installed package jasper-1.900.1
File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
/usr/sbin/pkg_add: Can't locate jasper-1.900.1

(pkg_add -ui -F update -F updatedepends)

I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

Thanks for any help.





the recommended way would be to take a list of your installed
packages, pkg_delete /var/db/pkg/*, pkg_delete /var/db/pkg/.*,
remove any files from /usr/local that still exist from the
broken package update, remove what's left in /var/db/pkg,
and re-install the packages from your list. (you probably need
to rm -r /var/db/pkg/jasper* before you start).

if you use a non-standard shell, change it to something from
base before you start on pkg_delete.

quicker ways might work too, but they might leave broken
dependency information to come back and bite you in a few
months time.


  

problems usually are in the dots /var/db/pkg/.*
i.e:  /var/db/pkg/.jasper*
some files can be copied over from the relevant ports pkg subdir
PLIST -- +CONTENTS, DESC -- +DESC, ...
if the occurences are few.

but, as stu@ says deps would byte you with a vengeance.

I always pretend that the best upgrade is newfs

and in order to spare time and banwidth in case of re-installation, I 
cache the

packages

env PKG_CACHE=/home/user/pkg pkg_add http://ftp.the_mirror_next_door/...
preferably on another slice/drive, better, flash sticks are dirt cheap now.
Even better, order the release CD.

Install (or upgrade) OS and base on the bootable flash, put the 
4.4/arch tree

on it, along with the packages cache.
Test it, then only proceed to install on the hard drive.
Fresh install in a matter of minutes and always at least one working.



Re: pkg_add error: +CONTENTS does not exist

2008-11-05 Thread Marc Espie
On Wed, Nov 05, 2008 at 07:05:56PM +0100, Louis V. Lambrecht wrote:
 Stuart Henderson wrote:
 On 2008-11-05, Chris [EMAIL PROTECTED] wrote:
   
 I been updating packages from 4.3 to 4.4 but my box rebooted due to a
 power outage and now I'm getting the following error while updating
 packages:

 Warning: couldn't read packing-list from installed package jasper-1.900.1
 File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
 /usr/sbin/pkg_add: Can't locate jasper-1.900.1

 (pkg_add -ui -F update -F updatedepends)

 I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

 Thanks for any help.


Oops, looks like I forgot to document some stuff.

There is some experimental code in pkg_add to take care of that: 
remove the /var/db/pkg/jasper-* directory, and try
adding jasper again, in interactive mode.

With luck, it will tell you there are collisions with files not found
in any package, but which match exactly with jasper, and then it will attempt
to repair the situation: that is, it will extract again the package, and
scan all the forward dependencies and restore the missing links.



Re: pkg_add error: +CONTENTS does not exist

2008-11-05 Thread Louis V. Lambrecht

Send to: misc@, not me ;-)
Happens to me all the time.


Marc Espie wrote:

On Wed, Nov 05, 2008 at 07:05:56PM +0100, Louis V. Lambrecht wrote:
  

Stuart Henderson wrote:


On 2008-11-05, Chris [EMAIL PROTECTED] wrote:
  
  

I been updating packages from 4.3 to 4.4 but my box rebooted due to a
power outage and now I'm getting the following error while updating
packages:

Warning: couldn't read packing-list from installed package jasper-1.900.1
File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
/usr/sbin/pkg_add: Can't locate jasper-1.900.1

(pkg_add -ui -F update -F updatedepends)

I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

Thanks for any help.




Oops, looks like I forgot to document some stuff.

There is some experimental code in pkg_add to take care of that: 
remove the /var/db/pkg/jasper-* directory, and try

adding jasper again, in interactive mode.

With luck, it will tell you there are collisions with files not found
in any package, but which match exactly with jasper, and then it will attempt
to repair the situation: that is, it will extract again the package, and
scan all the forward dependencies and restore the missing links.




Re: pkg_add error: +CONTENTS does not exist

2008-11-05 Thread Chris
On Wed, Nov 5, 2008 at 3:37 PM, Marc Espie [EMAIL PROTECTED] wrote:
 On Wed, Nov 05, 2008 at 07:05:56PM +0100, Louis V. Lambrecht wrote:
 Stuart Henderson wrote:
 On 2008-11-05, Chris [EMAIL PROTECTED] wrote:

 I been updating packages from 4.3 to 4.4 but my box rebooted due to a
 power outage and now I'm getting the following error while updating
 packages:

 Warning: couldn't read packing-list from installed package jasper-1.900.1
 File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
 /usr/sbin/pkg_add: Can't locate jasper-1.900.1

 (pkg_add -ui -F update -F updatedepends)

 I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

 Thanks for any help.


 Oops, looks like I forgot to document some stuff.

 There is some experimental code in pkg_add to take care of that:
 remove the /var/db/pkg/jasper-* directory, and try
 adding jasper again, in interactive mode.

 With luck, it will tell you there are collisions with files not found
 in any package, but which match exactly with jasper, and then it will attempt
 to repair the situation: that is, it will extract again the package, and
 scan all the forward dependencies and restore the missing links.

Thank you all for your help. I have checked every single package
directory under /var/db/pkg/ to find the ones that are empty and
deleted them; I took notes of the package directories that I deleted
and installed those packages with pkg_add -iv package_name (seven in
total) - at the time of the installation I was asked whether I want to
resolve any conflict. After that, I just did the usual pkg_add -ui -F
update -F updatedepends to update all the packages.



pkg_add error: +CONTENTS does not exist

2008-11-04 Thread Chris
I been updating packages from 4.3 to 4.4 but my box rebooted due to a
power outage and now I'm getting the following error while updating
packages:

Warning: couldn't read packing-list from installed package jasper-1.900.1
File /var/db/pkg/jasper-1.900.1/+CONTENTS does not exist
/usr/sbin/pkg_add: Can't locate jasper-1.900.1

(pkg_add -ui -F update -F updatedepends)

I cd to /var/db/pkg/jasper-1.900.1/ and the directory is empty.

Thanks for any help.