[MacPorts] #51764: MacPorts reinstall : problem, sqlite error: database disk image is malformed
MacPorts
noreply at macports.org
Tue Jul 5 01:19:38 PDT 2016
#51764: MacPorts reinstall : problem, sqlite error: database disk image is
malformed
----------------------+--------------------------------
Reporter: gwilom@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port:
----------------------+--------------------------------
Hello,
Due to a premature shutdown of my computer (battery), my macport registry
is malformed :
I execute :
{{{
sudo port selfupdate
}}}
and it the result
{{{
sqlite error: database disk image is malformed (11) while executing query:
ATTACH DATABASE '/opt/local/var/macports/registry/registry.db' AS registry
while executing
"registry::open $db_path"
(procedure "mportinit" line 610)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite error:
database disk image is malformed (11) while executing query: ATTACH
DATABASE '/opt/local/var/macports/registry/registry.db' AS registry
}}}
Is it possible to repair the database or reinstall port (the uninstall
procedure doesn't work because of the registry problem) ?
for information, i try :
{{{
sudo port -fp uninstall installed
}}}
And this is the result :
{{{
sqlite error: database disk image is malformed (11) while executing query:
ATTACH DATABASE '/opt/local/var/macports/registry/registry.db' AS registry
while executing
"registry::open $db_path"
(procedure "mportinit" line 610)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite error:
database disk image is malformed (11) while executing query: ATTACH
DATABASE '/opt/local/var/macports/registry/registry.db' AS registry
}}}
Thanks for the help.
--
Ticket URL: <https://trac.macports.org/ticket/51764>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list