4

I am trying to install php7.0-pgsql, but always get

E: Unable to locate package phpXXX-pgsql

I am trying

 apt-get update
 apt-get install php7.0-pgsql=7.0.12-1+deb

or

apt-get install php7.0-pgsql=7.0.12-1

or

apt-get install php7.0-pgsql

or even

apt-get install php-pgsql

always with the same result. Anyone can help me please?

TheRealPir
  • 445
  • 1
  • 6
  • 15

1 Answers1

5
echo "deb http://ftp.de.debian.org/debian stretch main" >> /etc/apt/sources.list

apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y php7.0-pgsql
Nissa
  • 4,636
  • 8
  • 29
  • 37
TheRealPir
  • 445
  • 1
  • 6
  • 15
  • You can view the revision history of a post by clicking the "edited" text below the post. – Nissa Dec 10 '16 at 15:48
  • I got "Permission denied" while trying to edit sources.list file, so I had to run `sudo -s` to switch to root user on the shell. – Ulysses Alves May 20 '19 at 11:23
  • I got this `Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration detail` – CodeConnoisseur Jan 21 '20 at 23:32