Postgresql installation error in Mint 19

Asked

Viewed 37 times

-1

I am trying to perform the installation of posgresql on Mint 19 when I received a dependency error, making some searches discover that I could try the command dpkg --configure -a, but I received the following error:

 libc6-dbg:amd64 depende de libc6 (= 2.31-0ubuntu9.2); porém:
  Versão de libc6:amd64 no sistema é 2.31-0ubuntu9.1.

dpkg: erro ao processar o pacote libc6-dbg:amd64 (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: problemas com dependências impedem a configuração de libc6-dev:amd64:
 libc6-dev:amd64 depende de libc6 (= 2.31-0ubuntu9.2); porém:
  Versão de libc6:amd64 no sistema é 2.31-0ubuntu9.1.

dpkg: erro ao processar o pacote libc6-dev:amd64 (--configure):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 libc6-dbg:amd64
 libc6-dev:amd64

To solve I tried the command sudo apt-get install r-base, that generated the error:

 libc6-dev : Depende: libc6 (= 2.31-0ubuntu9.2) mas 2.31-0ubuntu9.1 está para ser instalado
 r-base : Depende: r-base-core (>= 3.6.3-2) mas não será instalado
          Depende: r-recommended (= 3.6.3-2) mas não será instalado
          Recomenda: r-base-html mas não será instalado
          Recomenda: r-doc-html mas não será instalado 

Searching a little more I tried to solve the above error with the command sudo apt-get install -f but I received the following error:

(Lendo banco de dados ... 316581 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../libc6_2.31-0ubuntu9.2_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: erro ao processar o arquivo /var/cache/apt/archives/libc6_2.31-0ubuntu9.2_amd64.deb (--unpack):
 o subprocesso do pacote libc6:amd64, novo script pre-installation retornou erro do status de saída 1
Erros foram encontrados durante o processamento de:
 /var/cache/apt/archives/libc6_2.31-0ubuntu9.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I don’t have much skill with Linux, it’s the first time I use it and I really don’t know what else to do to try to solve it.

1 answer

0


A process was blocking any command to update or install packages, after searching I found the command:

sudo Fuser -v /var/cache/debconf/config.dat

This command shows which processes were preventing me from giving the command , sudo apt-get install -f, and to install and update new packages.

After that it was only give the command to "kill" the process/processes/processes that was preventing to follow.

sudo Kill PID

These steps solved my dependency and package issues in Mint.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.