Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install Octave on my Ubuntu LTS with apt-get. The problem is that the official repositories list only Octave 3.0 and Octave 3.2, whereas the latest Octave is Octave 3.6.

How do I update the repositories of apt-get to get Octave 3.6?

share|improve this question
possible duplicate of When will Octave 3.6.1 be available to be installed? – hhlp May 18 '12 at 9:22
No, this is about installing it in 10.04 while your link is about 12.04-12.10. – izx May 18 '12 at 12:59
up vote 8 down vote accepted

This PPA should solve your problem, provided you are running the latest 12.04.

Open Terminal Ctrl-Alt-T and type:

sudo apt-add-repository -y ppa:picaso/octave
sudo apt-get update 
sudo apt-get install octave
sudo apt-get install liboctave-dev 
share|improve this answer
even after update the repositories are not showing octave 3.6. I am searching in both synaptic and apt-get – prometheuspk May 18 '12 at 9:47
What version of Ubuntu are you running? – izx May 18 '12 at 9:48
Ubuntu 10.04 LTS – prometheuspk May 18 '12 at 9:49
Repos in both answers are for 12.04 LTS only :(. Can you upgrade? – izx May 18 '12 at 9:52
PPAs must usually be restricted to specific versions because they contain binaries which have been compiled on that specific version, for that specific version. – izx May 18 '12 at 9:59

The answer is quite simple. Go to the Octave downloads website and find the latest release of GNU Octave and download the .tar.gz file of it.

After this copy and paste the following terminal (CTRL+ALT+T) commands:

sudo apt-get build-dep octave
cd ~/Downloads
sudo mv octave-x.x.x.tar.gz ~
cd ~
tar xvf octave-x.x.x.tar.gz
cd octave-x.x.x
sudo make install

Where the 'x.x.x' refers to the version of GNU Octave you'd like to install, such as 3.6.3.

share|improve this answer

Just as an update: this PPA (maintained by a member of the Debian Octave Group) provides the latest Octave for a range of Ubuntu versions.

share|improve this answer

I am only "answering" this because I could not format in the comments. kudos to @izx and @Brenton Horne

For, I had to use a bit of both answers:

sudo apt-add-repository -y ppa:picaso/octave
sudo apt-get update
sudo apt-get install octave
sudo apt-get install liboctave-dev

These made octave 4.0 run, but not with --force-gui

sudo apt-get build-dep octave

was also required to get --force-gui to work.

share|improve this answer
Thanks, appreciate you fixing the format. – rmustakos Sep 1 '15 at 6:54

Latest ppa is ppa:octave/stable.

This ppa is maitained by the "GNU Octave" team and has version 3.8.1 available for lucid and precise.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.