I am on Ubuntu 14.04. When I am installing PostGIS-2.1, it's asking for libgdal1 library. But when I am installing libgdal1, it's removing grass and gdal.
Can someone please guide me how to install grass, gdal and postgis?
I had a similar problem. PostGIS wanted libgdal1 and QGIS wanted libgdal1h. The problem was that I had my Repo for QGIS set to the main QGIS site, and Postgresql set to their main site. Postgresql kept wanting to upgrade past what QGIS wanted. Finally something gave and I ended up with circular conflicts between the two.
I ended up backing up my Postgres/PostGis databases. Then uninstalling just about everything GIS on my system. I had to do a "Complete" uninstall of Postgresql 9.1, because it was not uninstalling cleanly. Then I changed my repo over to UbuntuGIS and reinstalled everything from there. Restored my databases, and all was good.