Problems with dpkg in Linux Mint

Asked

Viewed 1,978 times

0

I think I uninstalled some package that some application needed, and I think it has generated a problem that I can’t solve. I am using Mint. I have tried to upgrade the system but this error prevents me from doing so. What should I do to fix the problem?

I tried to reconfigure the dpkg with (sudo dpkg --configure -a), but generated:

Configurando man-db (2.6.3-3) ...
sh: 0: getcwd() failed: No such file or directory
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: erro ao processar man-db (--configure):
 sub-processo script post-installation instalado retornou estado de saída de erro 1
dpkg: problemas com dependências impedem a configuração de debhelper:
 debhelper depende de man-db (>= 2.5.1-1); porém:
  Pacote man-db não está configurado ainda.

dpkg: erro ao processar debhelper (--configure):
 problemas de dependência - deixando desconfigurado
Configurando samba-common (2:3.6.18-1ubuntu3.1) ...
sh: 0: getcwd() failed: No such file or directory
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: erro ao processar samba-common (--configure):
 sub-processo script post-installation instalado retornou estado de saída de erro 1
dpkg: problemas com dependências impedem a configuração de smbclient:
 smbclient depende de samba-common (= 2:3.6.18-1ubuntu3.1); porém:
  Pacote samba-common não está configurado ainda.

dpkg: erro ao processar smbclient (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: problemas com dependências impedem a configuração de libnss-winbind:amd64:
 libnss-winbind:amd64 depende de samba-common (= 2:3.6.18-1ubuntu3.1); porém:
  Pacote samba-common não está configurado ainda.

dpkg: erro ao processar libnss-winbind:amd64 (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: problemas com dependências impedem a configuração de samba-common-bin:
 samba-common-bin depende de samba-common (>= 2:3.4.0~pre1-2); porém:
  Pacote samba-common não está configurado ainda.

dpkg: erro ao processar samba-common-bin (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: erro ao processar cryptsetup (--configure):
 O pacote está em um estado de inconsistência muito ruim - você deveria
 reinstalá-lo antes de tentar uma configuração.
Configurando phonon:i386 (4:4.7.0really4.6.0-0ubuntu2) ...
sh: 0: getcwd() failed: No such file or directory
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: erro ao processar phonon:i386 (--configure):
 sub-processo script post-installation instalado retornou estado de saída de erro 1
dpkg: problemas com dependências impedem a configuração de libpam-winbind:amd64:
 libpam-winbind:amd64 depende de samba-common (= 2:3.6.18-1ubuntu3.1); porém:
  Pacote samba-common não está configurado ainda.

dpkg: erro ao processar libpam-winbind:amd64 (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: problemas com dependências impedem a configuração de samba:
 samba depende de samba-common (= 2:3.6.18-1ubuntu3.1); porém:
  Pacote samba-common não está configurado ainda.
 samba depende de samba-common-bin; porém:
  Pacote samba-common-bin não está configurado ainda.

dpkg: erro ao processar samba (--configure):
 problemas de dependência - deixando desconfigurado
dpkg: problemas com dependências impedem a configuração de winbind:
 winbind depende de samba-common (= 2:3.6.18-1ubuntu3.1); porém:
  Pacote samba-common não está configurado ainda.

dpkg: erro ao processar winbind (--configure):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 man-db
 debhelper
 samba-common
 smbclient
 libnss-winbind:amd64
 samba-common-bin
 cryptsetup
 phonon:i386
 libpam-winbind:amd64
 samba
 winbind
  • Does anyone have any idea?

  • @Lucasnunes I had to remove package by package... it was a hassle but it worked.

2 answers

3


Try uninstalling the packages that caused the problem. For example,

 # sudo apt-get remove samba-common-bin

Update the repository

# sudo apt-get update

And reconfigure the packages

# sudo dpkg --configure -a

If the above alternatives do not work, try cleaning the /boot folder and installing the packages using APT.

  • I have the same problem in Ubuntu 14.04. I already tried the above solution but I did not succeed. In my case a large list of broken packages appears. I’ll have to delete them all?

1

I’ve been there, too. Tries:

sudo apt-get clean && apt-get update

Otherwise try to:

sudo rm /var/lib/apt/lists/* -vf 

sudo apt-get update

Browser other questions tagged

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