I encountered the same issue after updating to MacPorts 2.10.0. Everything was 
indeed fine again after I ran ‘sudo port selfupdate’ another time.

Nils.

> Op 7 aug 2024 om 23:57 heeft Joshua Root <[email protected]> het volgende 
> geschreven:
> 
> 
>> 
>> 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
> 

Reply via email to