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.

