como posso corrigir o código de erro do dpkg (100) [duplicado]

1

Não consigo instalar nenhum pacote, mesmo dpkg my dpkg arquivos e pastas foram excluídos e recebi este erro:

Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)

EDITAR: Quando eu corri sudo apt-get update && sudo apt-get install --reinstall dpkg Eu tenho esta saída:

dpkg: warning: 'dpkg-deb' 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.
E: Sub-process /usr/bin/dpkg returned an error code (2)

EDITAR

Quando instalar o desktop do buddgie

The following packages have unmet dependencies:
 budgie-desktop-environment : Depends: budgie-lightdm-theme (>= 0.5.4) but it is not going to be installed
                          Depends: plymouth-themes but it is not installable
                          Recommends: arc-firefox-theme but it is not going to be installed
                          Recommends: pocillo-icon-theme but it is not going to be installed
                          Recommends: budgie-indicator-applet but it is not going to be installed
                          Recommends: vertex-theme but it is not going to be installed
                          Recommends: gthumb but it is not installable
                          Recommends: rhythmbox-plugin-alternative-toolbar but it is not installable
                          Recommends: menulibre but it is not installable
                          Recommends: transmission but it is not installable
                          Recommends: tlp but it is not installable
                          Recommends: budgie-welcome but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
    
por Sina hy 02.07.2017 / 00:02

1 resposta

2

Você pode querer reinstalar o dpkg fazendo o seguinte:

sudo -i
mkdir /tmp/dpkg

cd /tmp/dpkg

Lembre-se de que você pode querer saber se os links de download ainda estão atualizados

Se você estiver executando uma versão de 32 bits do Ubuntu

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.2_i386.deb

Para 64 bits

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.7_amd64.deb

então

ar x dpkg*.deb data.tar.gz

tar xfvz data.tar.gz ./usr/bin/dpkg

Agora copie o binário para /usr/bin com

sudo cp ./usr/bin/dpkg /usr/bin

E finalmente execute

sudo apt-get update
sudo apt-get install --reinstall dpkg
    
por ADDB 02.07.2017 / 00:10