Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Sep 2022 12:55:41 -0700
From:      paul beard <paulbeard@gmail.com>
To:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   database disk image is malformed: how to recover?
Message-ID:  <CAMtcK2qtRNTBBnq-P_N4dq5ngSGg3TYYmC4jEo3z_fLozPTLcw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000d9cb4a05e7cb3bca
Content-Type: text/plain; charset="UTF-8"

pkg: sqlite error while executing INSERT OR IGNORE INTO mtree(content)
VALUES(?1) in file pkgdb.c:1664: database disk image is malformed



tried backing it up in sqlite3 but it just writes a damaged file, same
error. Is there no way to dump a text file/set of INSERT statements and
read it back in?



-- 
Paul Beard / www.paulbeard.org/

--000000000000d9cb4a05e7cb3bca
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div dir=3D"ltr"><p style=3D"margin:0px;font-stretch:n=
ormal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"=
><span style=3D"font-variant-ligatures:no-common-ligatures">pkg: sqlite err=
or while executing INSERT OR IGNORE INTO mtree(content) VALUES(?1) in file =
pkgdb.c:1664: database disk image is malformed</span></p><p style=3D"margin=
:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menl=
o;color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligatur=
es"><br></span></p><p style=3D"margin:0px;font-stretch:normal;font-size:11p=
x;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style=3D"fon=
t-variant-ligatures:no-common-ligatures"><br></span></p><p style=3D"margin:=
0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo=
;color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligature=
s">tried backing it up in sqlite3 but it just writes a damaged file, same e=
rror. Is there no way to dump a text file/set of INSERT statements and read=
 it back in?=C2=A0</span></p><p style=3D"margin:0px;font-stretch:normal;fon=
t-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span st=
yle=3D"font-variant-ligatures:no-common-ligatures"><br></span></p></div><di=
v><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmai=
l=3D"gmail_signature">Paul Beard / <a href=3D"http://www.paulbeard.org/" ta=
rget=3D"_blank">www.paulbeard.org/</a><br></div></div>

--000000000000d9cb4a05e7cb3bca--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMtcK2qtRNTBBnq-P_N4dq5ngSGg3TYYmC4jEo3z_fLozPTLcw>