0

I am trying to install PostgreSQL on Ubuntu 20. However, an errors occurs while installing. Could somebody help me please?

$ sudo apt 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-14 but it is not going to be installed
 postgresql-contrib : Depends: postgresql-contrib-14
E: Unable to correct problems, you have held broken packages.

So i tried to install packaged manually, but still got error

$ sudo apt-get install postgresql-14
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-14 : Depends: libllvm10 (>= 1:9~svn298832-1~) 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.
karel
  • 110,292
  • 102
  • 269
  • 299
  • Please run ```sudo apt-get install -f``` to install the dependencies! – George Udosen Aug 09 '22 at 14:32
  • `$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ` it did not help – Lukáš Hrmo Aug 09 '22 at 14:37
  • Please remove it and follow this guide: https://www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-20-04-quickstart (remember to upgrade your system before install) – George Udosen Aug 09 '22 at 14:42
  • What should i remove? I followed the tutorial from this web... – Lukáš Hrmo Aug 09 '22 at 14:49
  • 1
    Does this answer your question? [How do I resolve unmet dependencies after adding a PPA?](https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa) – karel Aug 10 '22 at 11:44
  • 1
    was 1 question not enough? https://askubuntu.com/questions/1422773/how-do-you-install-libllvm10-for-ubuntu-20-04 – Rinzwind Aug 10 '22 at 11:47

0 Answers0