Package php7 4 pgsql is not available but is referred to by another package

Package: php7.4-pgsql (7.4.3-4ubuntu2.12 and others) [security]

PostgreSQL module for PHP

  • depends
  • recommends
  • suggests
  • enhances
  • dep: libc6 (>= 2.14) [amd64]GNU C Library: Shared libraries
    also a virtual package provided by libc6-udebdep: libc6 (>= 2.17) [arm64, ppc64el]dep: libc6 (>= 2.4) [armhf, i386, s390x]
  • dep: libpq5 (>= 9.3~) PostgreSQL C client library
  • dep: php-common (>= 1:73) Common files for PHP packages
  • dep: php7.4-common (= 7.4.3-4ubuntu1) [not amd64, i386]documentation, examples and common module for PHP dep: php7.4-common (= 7.4.3-4ubuntu2.12) [amd64, i386]
  • dep: ucfUpdate Configuration File(s): preserve user changes to config files

stretch  ]

Package: php7.0-pgsql (7.0.33-0+deb9u12 and others) [security]

PostgreSQL module for PHP

This package provides the PostgreSQL module(s) for PHP.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

  • depends
  • recommends
  • suggests
  • enhances
  • dep: libc6 (>= 2.14) [amd64]GNU C Library: Shared libraries
    also a virtual package provided by libc6-udebdep: libc6 (>= 2.17) [arm64, ppc64el]dep: libc6 (>= 2.4) [not amd64, arm64, ppc64el]
  • dep: libpq5 (>= 9.3~) PostgreSQL C client library
  • dep: php-common (>= 1:35) Common files for PHP packages
  • dep: php7.0-common (= 7.0.33-0+deb9u12) [amd64, arm64, armel, armhf, i386]documentation, examples and common module for PHP dep: php7.0-common (= 7.0.33-0+deb9u8) [mips, mips64el, mipsel, ppc64el, s390x]
  • dep: ucfUpdate Configuration File(s): preserve user changes to config files

I have "Ubuntu 14.04.2 LTS" OS and trying to install PHP7 using command:

sudo apt-get install php-7.0

Getting error message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-7.0
E: Couldn't find any package by regex 'php-7.0'

sudo apt-get install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0
E: Couldn't find any package by regex 'php7.0'

How it can be fix Please advise.

Braiam

65.6k30 gold badges173 silver badges261 bronze badges

asked Jan 2, 2016 at 10:47

Package php7 4 pgsql is not available but is referred to by another package

Ramesh ChandRamesh Chand

6,9164 gold badges30 silver badges36 bronze badges

3

PHP 7 is not available for Ubuntu Trusty in the standard Ubuntu repositories (2016-01-02).

You could use the PPA ppa:ondrej/php

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0

oerdnj

7,87238 silver badges49 bronze badges

answered Jan 2, 2016 at 10:53

Package php7 4 pgsql is not available but is referred to by another package

9

I recently upgraded from debian9 (stretch) to debian10 (buster). Which also includes upgrading to php7.4. For some reason php-curl cannot install.

I run apt install php7.4-curl and the error I get is:

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:
 php7.4-curl : Depends: libcurl3 (>= 7.44.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

I cannot see any held packages, anywhere. I have tried:

apt-mark showhold
dpkg --audit
dpkg --configure -a
apt-get install -f
apt-get clean
apt-get update
apt-get autoremove

I have also tried removing curl, purge, autoremove, and then reinstall. Same thing.

I try installing libcurl3

Package libcurl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libcurl4