apt-get foi quebrado [duplicado]

0

Eu acidentalmente removi algumas bibliotecas do sistema e agora não instalo nem removo nenhum pacote. Erro mostrado no Centro de software e no terminal é

installArchives() failed: Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Can't exec "locale": No such file or directory a /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at/usr/share/perl5/Debconf/Encoding.pm line 17.
Can't exec "locale": No such file or directory at/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Error in function: 

Ao usar apt-get install anyPackage e apt-get install -f anyPackage i, receba o seguinte erro:

Reading package lists... Done 
Building dependency tree Reading state information... Done 
You might want to run 'apt-get -f install' to correct these. 
The following packages have unmet dependencies: 
cups : Depends: libc-bin (>= 2.13) E: Unmet dependencies. Try using -f
    
por Talha Junaid 11.01.2015 / 20:54

1 resposta

-1

O problema pode ter sido resolvido. Eu instalei o pacote conflitante.

Solução

Faça o download e extraia o pacote manualmente

apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/

Copie o arquivo para o seu sistema

sudo cp unpackdir/sbin/ldconfig /sbin/

Verifique se o pacote e o sistema de pacotes estão em bom estado.

sudo apt-get install --reinstall libc-bin
sudo apt-get install -f

para o clique original da fonte aqui !

    
por Talha Junaid 11.01.2015 / 23:56