bugGNU Octave - Bugs: bug #62303, Unable to run pkg rebuild


bug #62303: Unable to run pkg rebuild

Submitter:  None
Submitted:  Tue 12 Apr 2022 02:33:16 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Razorfin Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.1.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Fri 22 Jul 2022 03:53:28 PM UTC, comment #3: 

I had the same problem on version 7.1.0. I had to run as an administrator and the problem went away.

Thanks for the bug report. This particular bug has already been
reported into our bug tracking system, but please feel free to
report any further bugs you find.

Tue 19 Apr 2022 10:34:38 PM UTC, comment #2: 

No responses.  Assuming patch worked as expected.  Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Tue 12 Apr 2022 03:32:35 PM UTC, comment #1: 

Thanks for your report.

I pushed a change to the stable branch here:

It should be part of the next minor release of Octave 7.2.0.

Running Octave as administrator might have avoided the issue because `pkg` defaults to the global package store in that case. At least on Windows, some packages are already installed in the global package store when installing Octave.

This probably wasn't an issue with previous versions of Octave because different versions shared the same folder to manage their local packages (causing a bunch of other issues).

Marking as ready for test.

Markus M├╝tzel <mmuetzel>
Group administrator
Tue 12 Apr 2022 02:33:16 PM UTC, original submission:  

After upgrading to 7.1.0 from 6.4.0, running the command "pkg rebuild" produces an error.

>> pkg rebuild
error: save: unable to open output file 'C:\Users\donfent\AppData\Roaming\octave\api-v57\octave_packages'
error: called from
    pkg at line 710 column 9

I suspect a permissions issue; one solution is to open the program by running it as an administrator and then the command works as expected.  However, this was not the behavior in previous Octave versions (including 6.4.0). Verified on two independent machines.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-19 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-04-12 mmuetzel StatusNone Ready For Test
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code