I want to install Postgres 9.X and Postgis for it.
I manage to install Postgres with version 9.6 with this command:
sudo apt-get install postgresql-9.6
But then when I type:
sudo apt get install postgis
I suddenly get postgres 10 and postgis for that version.
When I try something like on this link http://technobytz.com/install-postgis-postgresql-9-3-ubuntu.html my installation failed, I get this code in terminal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-9.3-postgis-2.1 : Depends: libgdal1 (>= 1.9.0) but it is not going to be installed
Depends: libgeos-c1 (>= 3.3.3) but it is not going to be installed
Depends: liblwgeom-2.1.8 (>= 2.1.6) but it is not going to be installed
Depends: libproj0 but it is not installable
Recommends: postgresql-contrib-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I am using Ubuntu 18.04
On ubuntu, you can use following commands:
sudo apt-get install postgresql-<xx>-postgis-<yy> postgresql-<xx>-postgis-<yy>-scripts
e.g
sudo apt-get install postgresql-9.6-postgis-2.4 postgresql-9.6-postgis-2.4-scripts
Just choose the proper version you need.
Related
This question already exists:
Windows 11, WSL with Ubuntu 20.04.3 LTS: cannot perform "sudo apt install build-essential" because of missing dependencies [closed]
Closed 1 year ago.
I need to install Salome-Meca - Code_Aster on a Linux Mint 20.2 machine. This software requires a series of extra modules (see https://www.code-aster.org/V2/spip.php?article303).
When typing on the terminal:
sudo apt update
sudo apt upgrade
sudo apt install build-essential
I always get the following message after the third command line instruction:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How can I overcome this? I have read elsewhere that the solution is to "downgrade". Downgrade what? And how?
I'm trying to install postgresql on ubuntu 19.10 (Eoan). I've tried many ways but it seems that even the newest version of postgresql (12) is not supported.
Does anyone know if it can be installed in some way?
this is the error I get when I'm trying to install, for example, postgresql 11:
$ sudo apt-get install postgresql-11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-11 : Depends: postgresql-client-11
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Try this:
https://askubuntu.com/a/1074728
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55
While trying to install postgres on ubuntu server, I messed up and now I am getting the following error. How to fix the missing dependencies and move forward? My final aim is to install postgis.
ubuntu#ip-172-31-17-218:~$ sudo apt-get install postgresql postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql : Depends: postgresql-10 but it is not going to be installed
postgresql-contrib : Depends: postgresql-contrib-10
E: Unable to correct problems, you have held broken packages.
ubuntu#ip-172-31-17-218:~$
I followed the steps mentioned in the blog: http://www.gis-blog.com/how-to-install-postgis-2-3-on-ubuntu-16-04-lts and all the issue were solved.
My production Mongo database was hacked and all databases deleted. I now want to upgrade to the latest version of Mongo but am having extraordinary problems. Im on Linux Mint 17.1. Im following instructions here:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
When I run:
sudo apt-get install -y mongodb-org
I end up with error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What can I try next? As I said, my app is down since the hack and now I cannot even install Mongo...
Try sudo apt-get install -f to fix packages.
If that doesn't work, figure out if you need all 4 packages, mongodb-org-server might be the only one you really need.
In this case you can try running the following command with a specific version (3.0.15 in my case):
sudo apt-get install -y --force-yes mongodb-org=3.0.15 mongodb-org-server=3.0.15 mongodb-org-shell=3.0.15 mongodb-org-mongos=3.0.15 mongodb-org-tools=3.0.15
I have to change my databasefrom MySQL to postgreSQL in django. But postgreSQL is not installing .
Error while installing postgreSQL using commands-
sudo apt-get update && sudo apt-get upgrade
sudo apt-get purge postgresql*
sudo apt-get -f install
sudo apt-get install postgresql
At terminal-
(jango)dc#dc-comp-4:~/website$ sudo apt-get install postgresql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql : Depends: postgresql-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
but its not working.how can i do this.and what changes i have to made. Plz help