我使用的是以下版本的linux。
e130167@instance-1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
我有 Octave 版本 4.4.1 并且正在尝试安装 Octave 的镜像包https://octave.sourceforge.io/image/index.html。我下载了 tar.gz 文件并运行以下命令并收到错误
octave:2> pkg install image-2.8.0.tar.gz
pkg: please install the Debian package "liboctave-dev" to get the mkoctfile command
error: called from
__gripe_missing_component__ at line 53 column 3
configure_make at line 44 column 7
install at line 186 column 7
pkg at line 437 column 9
octave:2>
所以我然后尝试安装 liboctave-dev 但现在收到此错误。
e130167@instance-1:~$ sudo apt-get install liboctave-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
liboctave-dev : Depends: liboctave3v5 (= 4.0.3-3) but it is not going to be installed
Depends: octave (= 4.0.3-3) but 4.4.1-2~bpo9+1 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
自从你从 Stretch 向后移植安装了 Octave,您还需要从那里安装开发包:
sudo apt-get install -t stretch-backports liboctave-dev