Before installing with flatpak, I tried with apt install, but it didn't found octave, so I thought it's not in the repository any more. There was an Octave in the ubuntu GUI installer (named Discover), but packages there are using 'snap', which I was trying to avoid, so I used 'flatpak' as recommended by Octave, in the hope the flatpak install will be lighter.
I avoid snap not for the extra space required, but because snap programs seems to be starting slower when compared with native installs.
No idea why apt install didn't worked the first time, I guess apt update went wrong the first time, because the .bash-history looks like that
sudo apt update
sudo apt install octave
sudo apt install flatpack
sudo apt update
sudo apt install flatpak
sudo apt install plasma-discover-flatpak-backend
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.octave.Octave
However, I was a little unfair to consider Octave being only 0.1 GB. With Octave installed from apt install, it is not 1 GB like it was with flatpak, but it still is about 0.5 GB when counted with all the dependencies:
~$ sudo apt install octave
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
aglfn ca-certificates-java default-jre-headless epstool gnuplot-data gnuplot-qt gsfonts imagemagick-6-common java-common libaec0 libamd2 libarpack2 libblas3 libcamd2 libccolamd2
libcholmod3 libcxsparse3 libemf1 libfltk-gl1.3 libfltk1.3 libgfortran5 libgl2ps1.4 libglpk40 libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libhdf5-103 liblapack3 liblqr-1-0
liblua5.3-0 libmagick++-6.q16-8 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmetis5 liboctave7 libopenblas0 libopenblas0-pthread libplot2c2 libpstoedit0c2a libqhull7 libqrupdate1
libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libsz2 libtext-unidecode-perl libumfpack5 libwmf0.2-7 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libxml-libxml-perl libxml-namespacesupport-perl
libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl octave-common octave-doc openjdk-11-jre-headless pstoedit tex-common texinfo
Suggested packages:
default-jre gnuplot-doc libiodbc2-dev default-libmysqlclient-dev graphicsmagick-dbg libmagickcore-6.q16-6-extra libqscintilla2-doc libwmf0.2-7-gtk libxml-sax-expatxs-perl liboctave-dev
fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei xfig | ivtools-bin | tgif | transfig debhelper texlive-base texlive-latex-base
texlive-plain-generic texlive-fonts-recommended
The following NEW packages will be installed:
aglfn ca-certificates-java default-jre-headless epstool gnuplot-data gnuplot-qt gsfonts imagemagick-6-common java-common libaec0 libamd2 libarpack2 libblas3 libcamd2 libccolamd2
libcholmod3 libcxsparse3 libemf1 libfltk-gl1.3 libfltk1.3 libgfortran5 libgl2ps1.4 libglpk40 libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libhdf5-103 liblapack3 liblqr-1-0
liblua5.3-0 libmagick++-6.q16-8 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmetis5 liboctave7 libopenblas0 libopenblas0-pthread libplot2c2 libpstoedit0c2a libqhull7 libqrupdate1
libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libsz2 libtext-unidecode-perl libumfpack5 libwmf0.2-7 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libxml-libxml-perl libxml-namespacesupport-perl
libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl octave octave-common octave-doc openjdk-11-jre-headless pstoedit tex-common texinfo
0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded.
Need to get 92.3 MB/93.1 MB of archives.
After this operation, 443 MB of additional disk space will be used.
Do you want to continue? [Y/n]
TL;DR, TIL:
1. When common packages are missing, try apt update one more time.
2.
Flatpak has the same advantages as snaps. However, it uses Namespaces instead of AppArmour for sandboxing. The main difference is that Flatpaks can both use libraries included in the package and shared libraries from another Flatpak.
The developer of Flatpak is the Red Hat employee Alexander Larsson.
3. Found this nice comparison table between flatpak and snap:
https://askubuntu.com/questions/866511/what-are-the-differences-between-snaps-appimage-flatpak-and-others