Problems with dpkg in Linux Mint [closed]

0

I think I uninstalled some packages that some application needed, and I think this has generated a problem that I can not solve. I'm using Mint. I have already tried to upgrade the system but this error prevents me from doing this. What should I do to fix the problem?

I tried to reconfigure 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
    
asked by anonymous 12.02.2014 / 23:52

2 answers

3

Try uninstalling the packages that gave rise to the problem. For example,

 # sudo apt-get remove samba-common-bin

Update the repository

# sudo apt-get update

And reconfigure packages

# sudo dpkg --configure -a

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

    
13.02.2014 / 01:12
1

I've been there too. Try:

sudo apt-get clean && apt-get update

If it does not work try:

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

sudo apt-get update
    
14.02.2014 / 02:35