How to install DBeaver on Ubuntu

How to install DBeaver on Ubuntu

Why DBeaver

Recently I was looking for a simple free database viewer for PostgreSQL on Ubutu 16.04. I failed to catch up on PgAdmin3, but came across a topic on HN where various GUI tools for PostgreSQL were discussed: Postage – A fast replacement for pgAdmin

Once the installation process is complete, launch it from the Applications menu

Fixing error

Actually, here I’ve got an error at this step (after clicking DBeaver’s icon from the menu):

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Dbeaver. No Java virtual machine was found after searching the following locations: /usr/share/dbeaver/jre/bin/java java in your current PATH

Also, in the terminal:

The following packages have unmet dependencies:
Dbeaver-ce: Depends: openjdk-8-jre-headless but it is not installed or java-runtime-headless
E: Unmet dependencies. Try using -f.

A java runtime environment jre or java development kit jdk must be available in order to run DBeaver. This answer helped: Error while installing DBeaver On Ubuntu 14.04
As recommended, I’ve done 1 more command and got DBeaver up and running:sudo apt-get -f install
So the full trace of DBeaver installation could look like this: