我试图使用以下命令来安装八度:
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave但是,我收到以下错误消息:
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.我该如何解决这个问题?
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编辑2- 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发布于 2015-09-06 15:52:10
这不是一个普遍的答案。这个问题很复杂,在聊天中进行了更长时间的分析,解决了问题。
以下是来自聊天的总结。
sudo apt-get install libosmesa6
sudo apt-get install libglapi-mesa它移走了许多包裹(如ubuntu-desktop )
sudo apt-get install -f
sudo apt-get install ubuntu-desktop从这里开始,我们使用了aptitude,一个更好的问题解决程序。
sudo aptitude install libgl1-mesa-dri现在很多包都被删除了,但是ubuntu-desktop已经安装好了。
sudo aptitude install unity8
sudo aptitude install octave完成
发布于 2015-09-06 06:00:26
在Ubuntu14.04 64位机器上,下面的代码对我起了作用.
在终端安装:
sudo apt-get build-dep octave
sudo apt-get install libqt4-opengl-dev然后从源代码下载并构建Octave:
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.xz
tar -xaf octave-4.0.0.tar.xz
cd octave-4.0.0
./configure
make
sudo make install我在实验室里试过的所有机器都用这个。
https://askubuntu.com/questions/670797
复制相似问题