Opened 8 years ago
Closed 8 years ago
#51764 closed defect (invalid)
MacPorts reinstall : problem, sqlite error: database disk image is malformed
Reported by: | gwilom@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: |
Description
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.
Change History (1)
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Component: | ports → base |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Trac is not for tech support. Follow-up on the Macports Users mailing list instead.