How to install qtiplot on Ubuntu 20.04 Focal Fossa

I am trying to install qtiplot on Ubuntu 20.04. After looking at https://launchpad.net/ubuntu/focal/+source/qtiplot it turns out that this package is not yet available in Focal Fossa. I downloaded the 18.04 version (bionic beaver) deb package but I get an error and when I open synaptic package manager it states that this package is broken and it does not give me the option to repair.

Is there a way to install a package from 18.04 onto 20.04?

Very much appreciated.


Solution 1:

Really you have a way to install the QtiPlot on the 20.04 LTS system.
You have to add special PPA with Qt4, download qtiplot package and some its dependencies from 18.04 LTS repository and install it.

Use the commands below:

sudo add-apt-repository ppa:rock-core/qt4
sudo apt-get update

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/a/alglib/libalglib3.11_3.11.0-3_amd64.deb
sudo apt-get install ./libalglib3.11_3.11.0-3_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qt-assistant-compat/libqtassistantclient4_4.6.3-7build1_amd64.deb
sudo apt-get install ./libqtassistantclient4_4.6.3-7build1_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qtexengine/libqtexengine1_0.3-3_amd64.deb
sudo apt-get install ./libqtexengine1_0.3-3_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qtiplot/qtiplot_0.9.8.9-17_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qtiplot/qtiplot-doc_0.9.8.9-17_all.deb
sudo apt-get install ./qtiplot_0.9.8.9-17_amd64.deb ./qtiplot-doc_0.9.8.9-17_all.deb

and enjoy.

Solution 2:

If you don't want to add old dependencies, you can run qtiplot in any virtual container.

I have created a snap wrapper for qtiplot.