port outdated complains after self-update to version 2.10 of MacPorts

Joshua Root jmr at macports.org
Wed Aug 7 21:57:14 UTC 2024


> port outdated
> sqlite error: attempt to write a readonly database (8) while executing
> query: CREATE INDEX registry.snapshot_file_id ON snapshot_files(id)
>      while executing
> "registry::open $db_path"
>      (procedure "mportinit" line 832)
>      invoked from within
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite
> error: attempt to write a readonly database (8) while executing query:
> CREATE INDEX registry.snapshot_file_id ON snapshot_files(id)

I'm not sure why that registry update didn't happen during installation, 
but it just needs write access to the database to succeed now, so 
running any port command with sudo should fix it.

- Josh



More information about the macports-users mailing list