Can't install GeoDa in Ubuntu 21.04

Solution 1:

You still can install GeoDa using commands below to get all the dependencies on Ubuntu 21.04:

cd ~/Downloads

wget -c https://github.com/GeoDaCenter/geoda/releases/download/v1.18/geoda_1.18-1focal1_amd64.deb

wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/armadillo/libarmadillo9_9.800.4+dfsg-1build1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/c/cfitsio/libcfitsio8_3.470-3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libd/libdap/libdap25_3.20.5-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gdal/libgdal26_3.0.4+dfsg-1build3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c4_0.13.1+dfsg-7ubuntu0.3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/n/netcdf/libnetcdf15_4.7.3-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/p/poppler/libpoppler97_0.86.1-0ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/proj/libproj15_6.3.1-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/q/qhull/libqhull7_2015.2-4_amd64.deb

sudo apt update
sudo apt install ./geoda_1.18-1focal1_amd64.deb ./libgdal26_3.0.4+dfsg-1build3_amd64.deb ./libarmadillo9_9.800.4+dfsg-1build1_amd64.deb ./libcfitsio8_3.470-3_amd64.deb ./libdap25_3.20.5-1_amd64.deb ./libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb ./libjson-c4_0.13.1+dfsg-7ubuntu0.3_amd64.deb ./libnetcdf15_4.7.3-1_amd64.deb ./libpoppler97_0.86.1-0ubuntu1_amd64.deb ./libproj15_6.3.1-1_amd64.deb ./libqhull7_2015.2-4_amd64.deb

and then use GeoDa.


To have less problems in long-time periods you have to do a fresh installation of 20.04 LTS (long-term support, 5 years of updates) and live for 4 years without worries.

Solution 2:

Update : I have tried the method from N0rbert and it work for me on Ubuntu 21.04.

In Ubuntu 21.04, I've installed GeoDa in a VirtualBox machine from an Ubuntu 20.04.3 ISO.

Another solution might be to create a USB key (Live or persistent) with Ubuntu 20.04.3 ISO. I've tested it with a live USB (you can install software but the configuration is reset when you reboot). I find it great for tests if I write the steps.

The following commands allow me to install GeoDa :

sudo add-apt-repository universe
sudo apt update
sudo apt-get install freeglut3 libpq5 libgdal26

Then I've clicked on geoda_1.18-1focal1_amd64.deb for installation and search for GeoDa in Applications.

enter image description here

Note : I'm an user of other Linux distributions. I've also installed GeoDa with Linux Mint 20.02 (it is based on Ubuntu 20.04 LTS). I don't remember if the steps are the same. It was just a test.

I had no luck with gdebi to install directly on Ubuntu 21.04.

sudo gdebi geoda_1.18-1focal1_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgdal26

Solution 3:

Welcome to the Linux version of Dependency Hell. Check the geoda website to see the prerequisites. Install them.

You could try installing the dependencies (and their dependencies) and ..., that will either work, or fail if the required version 17 of foolib is unavailable for your system.

Solution 4:

Try installing geoda_1.18-1focal1_amd64.deb using gdebi.

The gdebi utility automatically pulls in required dependencies.

First, install gdebi:

sudo apt-add-repository universe
sudo apt update
sudo apt install gdebi-core

Then install GeoDa using:

sudo gdebi geoda_1.18-1focal1_amd64.deb