I am new to postgre and Ubuntu. I am running a virtual machine with Ubuntu 14.04 LTS Trusty. I am trying to install PostgreSql9.4 Database and PostGIS 2.1. Here are the commands that I ran on an Ubuntu machine:
sudo apt-get install wget ca-certificates sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list' wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get upgrade sudo apt-get install postgresql-9.4-postgis-2.1 pgadmin3 postgresql-contrib
However, I get the following error.
The following packages have unmet dependencies:
pgadmin3: Depends: libwxbase3.0-0 (> = 3.0.0) but it is not installable
Depends: libwxgtk3.0-0 (> = 3.0.0) but it is not installable
Recommends: pgagent but it is not going to be installed
postgresql-9.4-postgis-2.1: Depends: libgdal1h (> = 1.9.0) but it is not installable
Depends: libgeos-c1 (> = 3.4.2) but it is not installable
Depends: liblwgeom-2.1.5 (> = 2.1.2) but it is not going to be installed
Depends: libproj0 (> = 4.8.0-1) but it is not installable
E: Unable to correct problems, you have held broken packages.
I searched a few places and saw a lot of answers, but none of them work for me. I also tried PostgreSQL9.3 and was unable to succeed. Thanks in advance for your help. Thanks
source share