安装 Octave 软件包时遇到问题

安装 Octave 软件包时遇到问题

我在安装任何与 Octave 相关的东西时遇到了麻烦。这包括通过 apt-get 命令和 Octave 解释器中的 pkg install。我四处查看,似乎与我之前的 apt-get 活动有关。

下面是我在安装任何内容到 Octave 时总是看到的显示。我尝试安装指定缺少的依赖项。但当我这样做时,它告诉我它们已经安装。

我正在运行 ubuntu 14.04 LTS,octave 3.8.1

任何帮助都将受到赞赏。

 daniel:apt$ sudo apt-get install octave-pkg-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:
  libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
                    Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
  libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
               Depends: gstreamer1.0-clutter but it is not going to be installed
  libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
                     Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
 E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
 daniel:apt$

答案1

解决方案:

sudo apt-get remove octave
sudo apt-get install -f
sudo apt-get install octave-pkg-dev libclutter-gtk-1.0-0 libcogl15 libclutter-gst-2.0-0 gstreamer1.0-clutter libcogl-pango15

这里是我找到附加命令的地方。

编辑:这不是一个好的解决方案。安装 Octave 和其他依赖项导致我的驱动程序发脾气。必须重新安装 ubuntu 才能让一切恢复正常。

编辑2-绝对修复:出于对一切神圣事物的热爱。我向 ubuntu 和 octave 发誓。如果我想安装任何 octave 软件包,我必须使用 apt-get 安装它

sudo apt-get install octave-<package_name_you_want>

然后为了确保软件包已经安装,只需在 Octave 解释器中输入

ver

我向你保证,包裹会在那里。解决方案已找到这里

相关内容