0

I've added the official repository to my sources.list,

deb http://apt.postgresql.org/pub/repos/apt/ cosmic-pgdg main 11

When I try to install PostgreSQL-11 on Ubuntu Cosmic (18.10), I get the following error

$ 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: libllvm6.0 (>= 1:6.0~svn298832-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.

How do I go about resolving this error?

  • The dependency on llvm is pulled in by the new Just-in-Time compilation feature. In Debian, pg 11 has not migrated to testing, yet: Migrates after: llvm-toolchain-7, llvm-toolchain-snapshot, postgresql-common – Erwin Brandstetter Oct 18 '18 at 23:53
  • @ErwinBrandstetter yep, unfortunately the cosmic-pdpg is building from Debian llvm (as compared to cosmic llvm). Hope this helps people who run into similar issues and find it on google. – Evan Carroll Oct 19 '18 at 17:44
0

This error is because the Official PostgreSQL PPA for Cosmic is currently building against libllvm6.0. That's an import from Debian Sid, currently Ubuntu is building against the newer libllvm7.0. To get access to this package you'll have to add the universe to your sources.list.

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.