Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgng database corrupt, can't seem to fix it. #633

Closed
wonslung opened this issue Nov 2, 2013 · 8 comments
Closed

pkgng database corrupt, can't seem to fix it. #633

wonslung opened this issue Nov 2, 2013 · 8 comments
Labels

Comments

@wonslung
Copy link

wonslung commented Nov 2, 2013

I get this error when i try to use pkgng

pkg: sqlite: database disk image is malformed (pkgdb.c:3069)
pkg: Unable to query repository

@bapt
Copy link
Member

bapt commented Nov 2, 2013

any details would be great ;)
probably a simple rm /var/db/pkg/repo-* will solve your problem,

otherwise what version of pkg are you using,
can you also add a pkg -vv output to the report

@wonslung
Copy link
Author

wonslung commented Nov 2, 2013

Thanks, that worked. I found the old issue with that and was just about to post it. Thanks so much.

Thomas Burgess
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Saturday, November 2, 2013 at 6:04 PM, Baptiste Daroussin wrote:

any details would be great ;)
probably a simple rm /var/db/pkg/repo-* will solve your problem,
otherwise what version of pkg are you using,
can you also add a pkg -vv output to the report


Reply to this email directly or view it on GitHub (#633 (comment)).

@bapt
Copy link
Member

bapt commented Nov 29, 2013

I keep this open as we need to detect and fix this properly

@hamsolodev
Copy link

I just came across this also. @bapt 's suggestion to remove /var/db/pkg/repo-* did the trick for me. Corruption happened when I interrupted with C-c during a (seemingly) infinite loop of scrolling messages from 'pkg update'.

@ScottSturdivant
Copy link

Same here, I too was impatient and assumed that the scrolling message during the pkg update was an unrecoverable error. It was scrolling with:

pkg: Skipping malformed dependency docbook-xml
pkg: Skipping malformed dependency docbook

After I C-c'd, the db was corrupt and rm'ing /var/db/pkg-repo-* worked.

If when doing the pkg update you get the same stuff scrolling by, be patient, and let it complete!

@hamsolodev
Copy link

@SirScott aye, I realised this after I’d deleted /var/db/pkg-repo-* then ran pkg update and saw the same messages again. Patience! All the same, C-c shouldn’t corrupt the pkg db. It was terrifying ;)

@bapt
Copy link
Member

bapt commented Mar 31, 2014

Fixed

@bapt bapt closed this as completed Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@hamsolodev @bapt @wonslung @ScottSturdivant and others