无法安装八度

Noo*_*ber 5 software-installation 14.04

我正在尝试使用以下命令安装Octave

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误消息:

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:
 octave : Depends: libosmesa6 (>= 6.5.2-1) but it is not going to be installed or
                   libgl1-mesa-glide3 but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

编辑 - 输出apt-cache policy libosmesa6-

libosmesa6:
  Installed: (none)
  Candidate: 10.1.3-0ubuntu0.4
  Version table:
     10.1.3-0ubuntu0.4 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     10.1.0-4ubuntu5 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Run Code Online (Sandbox Code Playgroud)

Edit2-输出 apt-cache policy octave

octave:
  Installed: (none)
  Candidate: 4.0.0-3ubuntu2~octave~trusty1
  Version table:
     4.0.0-3ubuntu2~octave~trusty1 0
        500 http://ppa.launchpad.net/octave/stable/ubuntu/ trusty/main amd64 Packages
     3.8.1-1ubuntu1 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
Run Code Online (Sandbox Code Playgroud)

A.B*_*.B. 4

这不是普遍的答案。问题很复杂,通过聊天中较长的分析解决了。

以下是聊天摘要。

sudo apt-get install libosmesa6
sudo apt-get install libglapi-mesa
Run Code Online (Sandbox Code Playgroud)

它删除了很多软件包,例如ubuntu-desktop

sudo apt-get install -f
sudo apt-get install ubuntu-desktop
Run Code Online (Sandbox Code Playgroud)

从这里开始,我们使用了aptitude更好的问题解决程序

sudo aptitude install libgl1-mesa-dri
Run Code Online (Sandbox Code Playgroud)

现在很多软件包被删除,但ubuntu-desktop被安装了。

sudo aptitude install unity8
sudo aptitude install octave
Run Code Online (Sandbox Code Playgroud)

完毕