Search code examples
linuxubuntuinstallationpackageoctave

Unable to install octave-forge Miscellaneous package in Octave 3.8 Ubuntu


I'm new to Octave, attempting to install package 'miscellaneous' to use GNU Units. Installation fails. I tried:

apt-get install octave-miscellaneous

The deb package installs, but is not listed in Octave 3.8 (via >>pkg list). Then I tried:

> pkg install -forge miscellaneous

Octave 3.8 responds:

error: element number 1 undefined in return list
error: called from:
error:   /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_pkg.m at line 40, column 14
error:   /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_download.m at line 26, column 12

I've searched quite a bit and have not found what I am doing wrong.


Solution

  • Considering the error message, and the location from where the error is throw, this comes from a problem reading the page of the miscellaneous package. The weird error message is because of this bug.

    So make sure Octave is able to use urlread (try with some random file you know it exists), and that you didn't made any typo when entering the package name.

    Finally, you should not be mixing Octave packages installed via the Debian repositories and installed via Octave's pkg.