Não é possível instalar o pacote libpq-dev [duplicate]

0

Estou usando o Ubuntu 12.04. Quando estou tentando instalar o pacote libpq-dev estou recebendo o seguinte erro.

After this operation, 803 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  libpq5 libpq-dev
Install these packages without verification [y/N]? y
Err https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main libpq5 i386 9.6.1-2.pgdg12.4+1
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main libpq-dev i386 9.6.1-2.pgdg12.4+1
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Failed to fetch https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-9.6/libpq5_9.6.1-2.pgdg12.4+1_i386.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Failed to fetch https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-9.6/libpq-dev_9.6.1-2.pgdg12.4+1_i386.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
W: Duplicate sources.list entry http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main i386 Packages (/var/lib/apt/lists/apt.postgresql.org_pub_repos_apt_dists_precise-pgdg_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Eu tentei muitas coisas depois do googling, mas nada deu certo.Eu tentei sudo apt-get update & amp; sudo apt-get install libpq-dev --fix-missing mas sem sorte.

    
por Salil 03.03.2017 / 08:54

1 resposta

0

Uma chave pública PGP correta e atualizada deve ser instalada para usar o repositório apt.postgresql.org. Com base nas mensagens de erro, parece que isso é o que está falhando no seu caso.

link contém instruções sobre como instalá-lo, essencialmente:

sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
    
por Daniel Vérité 03.03.2017 / 16:45