I could not install the GDAL for Geoserver 2.24.2 on Ubuntu 22.04

Hi All,

I’m using Ubuntu 22.04 with GeoServer 2.24.2 (binary installation, not docker), and I’m having trouble installing GDAL.

FROM ubuntu:22.04
sudo apt-get install -y gdal-bin
sudo apt-get install -y libgdal-java

When trying to install, I get the following message about libgdal-java:

“Unable to locate package libgdal-java”

Ubuntu 20.04, according to reports, works, but I have an application that absolutely needs to run on 22.04, a server that will also run GeoServer.

Has anyone had this problem and would know how to solve it?

Thank you in advance for your attention.

Best regards,

Fernando Quadro

Debian/Ubuntu stopped delivering GDAL java bindings some time ago.
A way to get it working now is to build from sources GDAL, making it build the Java bindings as well.

See also this pull request for the GeoServer docker project, you can use it or maybe just steal the build instructions:

Cheers
Andrea

Thanks Andrea,

I will check this documentation to apply it in docker.

Best Regards,

Fernando Quadro