pkg not working

pkg-static: sqlite error while executing PRAGMA user_version; in file pkgdb.c:2380: database disk image is malformed
When I got out of power, my computer turned off. When I powered my laptop, I got into problems. I was put to the root prompt. I had a disk problem. I solved it, fsck fixed all my disk sectors, and now I'm in. But this problem now. Does anyone know the solution to this problem?
 
I don’t know the correct answer but the man page (near the end)


suggests a way to restore the database.

pkg uses a single-file SQLite database and that file has been corrupted by the power cut.
I'll check it out later, when I'm back to my laptop. I'm on a desktop pc now. Thanks for helping!
 
Back
Top