I am trying to install Octave 4.0.2 (specifically that version; I have reason to believe there is an incompatibility that affects software I want to run with and would like to install this version to verify or invalidate that claim) with apt-get.
As detailed here, I have run the following, seemingly without error
add-apt-repository ppa:octave/stable
apt-get update
(Sudo is not necessary, this is within a docker)
However, following up with:
apt-get install octave=4.0.2
as detailed here simply gives me a version not found error:
Version '4.0.2' for 'octave' was not found
Likewise for variations on that package name up to and including the full expression of '4.0.2-1ubuntu5~octave~precise2'
Curiously I can install (and uninstall) the latest version of Octave, v4.2.1.
What am I missing? How can I get the necessary version installed?
UPDATE 1 The Ubuntu version, internal to the docker, is 16.04.3 LTS
UPDATE 2 The results of
apt-cache policy octave
are:
Installed: 4.2.1-2~octave~xenial1
Candidate: 4.2.1-2~octave~xenial1
Version table:
*** 4.2.1-2~octave~xenial1 500
500 http://ppa.launchpad.net/octave/stable/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
4.0.0-3ubuntu9.1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
4.0.0-3ubuntu9 500
500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
That is with a later version of Octave presently installed.
apt-cache policy octave
? – ravery Nov 27 '17 at 19:28