On this old question How to install Octave 4.0.0 in Ubuntu 14.04 they say to use this:

sudo add-apt-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave

But when I run this command on Ubuntu 18.04:

$ sudo add-apt-repository ppa:octave/stable
[sudo] password for linux:         
HTTP Error 404: Not Found
Cannot add PPA: ''This PPA does not support bionic''.
  • Please limit your questions to Ubuntu and its official flavors. Mint is not an official flavor and is not supported here. – Justice for Monica Apr 20 at 1:43

The latest updated release from PPA is Xenial (16.04), this explain why you get Cannot add PPA: ''This PPA does not support bionic''. error.

GNU has distributed Octave as Flatpak package, and they do offer version 5—precisely 5.1.0 → https://flathub.org/apps/details/org.octave.Octave

Install flatpak, then add flathub repository.

sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

You can proceed to install Octave now.

flatpak install flathub org.octave.Octave
flatpak run org.octave.Octave

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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