Error install postgresql-9.6-postgis-2.4 (unmet dependencies) - postgresql

When i try to install postgresql-9.6-postgis-2.4, i getting error message like below :
$ sudo apt-get install postgresql-9.6-postgis-2.4`
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.6-postgis-2.4 : Depends: libgdal1h (>= 1.9.0) but it is not going to be installed
Depends: libgeos-c1 (>= 3.4.2) but it is not going to be installed
Depends: liblwgeom-2.4-0 (>= 2.4.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.`
Whats is going on ? Anyone please help me :?
Thanks a lot.

This has Solved. And this my Solution :
First this my fault, when i install postgresql-9.6 use xenial distribution but when i try install postgresql-9.6-postgis-2.4 i use trusty distribution.
I try reinstall with same distribution, use trusty distribution.
If you use repository, dont forget to edit source.list on /etc/apt/sources.list.d/postgresql.list
I find solution from here

Related

Ubuntu 20.04.5 LTS unable to install postgresql(-client)-13 or above (WSL)

sry but I am not an expert on Linux/Ubuntu, I just use WSL and zsh to fiddle around with it a bit and now for a dev project I need postgre-client-13, 12 seems to be included in Ubuntu focal, but I can not use that, as I need to make DB backups with pg_dump and that gives me a version error then.
I tried literally every SF and Blog Post I could find, but it always came done to versions of this in the end:
sudo apt-get install postgresql-client-15
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-client-15 : Depends: libpq5 (>= 15.1) but it is not going to be installed
Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.9 is to be installed
Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Currently i deinstalled psql with apt-get purge, but now I have the problem that I can not even install version 12 of it anymore, guess with copying some scripts I broke my global Ubuntu config, now even just calling
sudo apt-get install postgresql-client
leads just to:
The following packages have unmet dependencies:
postgresql-client : Depends: postgresql-client-15 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried reading into the problem of held packages, but that is still a bit over my head.
Can someone point me to a good ressource or the right direction to fix my problem? I guess one could be restoring/updating the list of package versions an Ubunut version includes/supports, at least I read something about this?
Thanks very much in advance

Unable to install Conduktor - Depends: libglx0 but it is not installable

While installation I am having package conflicts. This is the response I am receiving.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'conduktor' instead of './Conduktor-2.2.5.deb'
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:
conduktor : Depends: libglx0 but it is not installable
E: Unable to correct problems, you have held broken packages.
For anyone who is having problens with Conduktor on Ubuntu 20:
Ubuntu 20 updated from libffi6 (required by Conduktor) to libffi7, so you'll end up with this error:
$ sudo apt install ./Conduktor-2.7.5.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'conduktor' instead of './Conduktor-2.7.5.deb'
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:
conduktor : Depends: libffi6 but it is not installable
E: Unable to correct problems, you have held broken packages.
You can fix it this way:
download libffi6 here http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
instal it: $ sudo apt install ./libffi6_3.2.1-8_amd64.deb
now, with success, install Conduktor: $ sudo apt install ./Conduktor-2.7.5.deb
It seems Conduktor does not support Ubuntu 16.04, the libglx0 library is only available starting from bionic (18.04 LTS): https://packages.ubuntu.com/search?lang=en&keywords=libglx0&searchon=names
This command helped me:
sudo apt --fix-broken install

reinstall postgres on Amazon EC2 ubuntu server

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.

Using qemu Raspbian: installing libc6:i386 fails

this is my first post on this forum.
I am trying to get qemu running on my Raspberry Pi 3 with Raspbian stretch installed. My brothers DCP-350C scanner driver is only available precompiled on x86.
I have added i386 arch with sudo dpkg --add-architecture i386
and installed qemu-user binfmt-support. No problems there.
But every time I try to install libc6:i386 I get an install error:
pi#raspberrypi:/etc/apt $ sudo apt-get install libc6:i386
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:
libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
pi#raspberrypi:/etc/apt $ sudo apt-get install libgcc1:i386
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:
debconf : PreDepends: perl-base (>= 5.20.1-3~) but it is not going to be installed
Recommends: apt-utils (>= 0.5.1) but it is not going to be installed
Recommends: debconf-i18n but it is not going to be installed
dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
PreDepends: liblzma5 (>= 5.2.2) but it is not going to be installed
PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
Depends: tar (>= 1.28-1)
libgcc1 : Breaks: libgcc1:i386 (!= 1:6.3.0-18+rpi1) but 1:6.3.0-18 is to be installed
libgcc1:i386 : Depends: gcc-6-base:i386 (= 6.3.0-18) but it is not going to be installed
Breaks: libgcc1 (!= 1:6.3.0-18) but 1:6.3.0-18+rpi1 is to be installed
libselinux1 : Depends: libpcre3 but it is not going to be installed
libx11-6 : Depends: libxcb1 (>= 1.11.1) but it is not going to be installed
libxext6 : PreDepends: multiarch-support
lxlock : Depends: light-locker but it is not going to be installed or
xscreensaver but it is not going to be installed or
gnome-screensaver but it is not going to be installed or
i3lock but it is not going to be installed or
suckless-tools but it is not going to be installed or
slim but it is not going to be installed
systemd-sysv : PreDepends: systemd
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I don't know how to fix it. I have tried all sorts of repositories, but this seems not to be a repository issue.
I have no more clue how to fix this.
I hope anybody can help.
That kind of error ("libgcc1:i386 Breaks: libgcc1 (!= 1:6.3.0-18) but 1:6.3.0-18+rpi1 is to be installed" and "libgcc1 : Breaks: libgcc1:i386 (!= 1:6.3.0-18+rpi1) but 1:6.3.0-18 is to be installed") is because multiarch support on Debian and Debian derivatives requires that all versions of a package for each architecture that you have installed must have exactly matching versions. So you can have libgcc1:i386 1:6.3.0-18 and libgcc1:armhf 1:6.3.0-18 installed together because the versions match, but not libgcc1:i386 1:6.3.0-18 and libgcc1:armhf 1:6.3.0-18+rpi1 (because the versions don't exactly match).
The problem here is that raspbian rebuilds packages, which is why they have the +rpi1 tag on the end of their version. So what you would need is either
a repository where the raspbian versions of packages have been built for i386 -- this may well not exist
or run pure upstream Debian rather than Raspbian -- which you likely don't want to swap to at this point
or rebuild all the packages for i386 yourself -- which is likely painful and easy to get wrong if you don't know what you're doing.
If it's any consolation I would be somewhat uncertain about whether QEMU could usefully handle emulating a hardware-specific piece of code like a scanner driver (which is probably a plugin to CUPS or other system software) anyway.
A quick google of the scanner model name brought up this webpage: http://support.brother.com/g/b/downloadlist.aspx?c=us_ot&lang=en&prod=dcp350c_all&os=128 which includes a download for source code for the scanner driver and CUPS wrapper driver. If I were you I would try the approach of building that natively for arm.

Cannot install latest Mongdb

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