Tôi mới dùng postgre và Ubuntu. Tôi đang chạy một máy ảo với Ubuntu 14.04 LTS Trusty. Tôi đang cố gắng cài đặt cơ sở dữ liệu PostgreSql9.4 và PostGIS 2.1.Here là các lệnh tôi chạy trên máy Ubuntu:Lỗi cài đặt PostGIS -Bbuntu yêu cầu phụ thuộc
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
Tuy nhiên tôi nhận được lỗi sau.
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.
Tôi đã tìm kiếm nhiều địa điểm và thấy nhiều câu trả lời nhưng không có câu trả lời nào phù hợp với tôi. Tôi cũng đã thử PostgreSQL9.3 và không thể thành công. Cảm ơn trước sự giúp đỡ của bạn. Cảm ơn
Cảm ơn, điều này cũng đã giúp trên linux 18. – Lazyexpert