I am trying to install Octave by using these commands:
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
But I am getting the following error message:
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.
How do I fix this problem?
Edit- Output for 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
Edit2- Output for 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
apt-cache policy libosmesa6
– A.B. Sep 06 '15 at 12:28sudo apt-get install libgl1-mesa-glide3
and add the output into your question. – A.B. Sep 06 '15 at 12:33libosmesa6
but when I restarted my system, it started giving a blank screen. I ended up doing a fresh install of ubuntu. I later on read thismesa
installation creates problems – Noober Sep 06 '15 at 12:34apt-cache policy octave
– A.B. Sep 06 '15 at 12:38