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.

Reply via email to