本文介绍了无法在Octave 3.8 Ubuntu中安装octave-forge其他软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Octave的新手,试图安装软件包杂项"以使用GNU单元.安装失败.我试过了:

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

将安装deb软件包,但未在Octave 3.8中列出(通过>> pkg列表).然后我尝试了:

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

> pkg install -forge miscellaneous

八度3.8响应:

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.

推荐答案

考虑到错误消息以及引发错误的位置,这是由于读取其他包的页面时出现了问题.奇怪的错误消息是由于此错误引起的.

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.

因此,请确保Octave能够使用urlread(尝试使用一些您知道存在的随机文件),并且在输入程序包名称时未输入任何错字.

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.

最后,您不应该混用通过Debian仓库安装的Octave软件包和通过Octave的pkg安装的Octave软件包.

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

这篇关于无法在Octave 3.8 Ubuntu中安装octave-forge其他软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 12:26