How to install pgadmin4 in Ubuntu 18.10 throught apt

If you want to install pgadmin4, as the official site said, probably you can't do it if you have Ubuntu Cosmic.

You need to add bionic repository, because in cosmic only pgadmin3 is available. Also, you need to specify if you are using 64 bits architecture.

sudo apt-get install curl ca-certificates
curl | sudo apt-key add -

sudo sh -c 'echo "ddeb [arch=amd64] bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

sudo apt update
sudo apt install pgadmin4

Enjoy it!

Official site:


  1. sudo sh -c 'echo "ddeb [arch=amd64] bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list' it should be

    sudo sh -c 'echo "deb [arch=amd64] bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list'


Post a Comment

Popular posts from this blog

How to fix Android when developer options are not available for this user

from: can't read /var/mail/ in Python scripts

How to fix VirtualBox error when you try to import an ova file