[MacPorts] #51764: MacPorts reinstall : problem, sqlite error: database disk image is malformed
#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
#51764: MacPorts reinstall : problem, sqlite error: database disk image is malformed -----------------------+-------------------------------- Reporter: gwilom@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: invalid | Keywords: Port: | -----------------------+-------------------------------- Changes (by mf2k@…): * status: new => closed * component: ports => base * resolution: => invalid Comment: Trac is not for tech support. Follow-up on the [https://lists.macosforge.org/mailman/listinfo/macports-users Macports Users mailing list] instead. -- Ticket URL: <https://trac.macports.org/ticket/51764#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts