как я могу исправить код ошибки dpkg (100) [дубликат]

Я не могу установить ни один пакет, даже dpkg мои dpkg файлы и папки были удалены, и я получил эту ошибку:

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

РЕДАКТИРОВАТЬ: {{1} } Когда я запустил sudo apt-get update && sudo apt-get install --reinstall dpkg , я получил следующий результат:

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)

ИЗМЕНИТЬ

При установке рабочего стола 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.
1
задан 3 July 2017 в 09:01

1 ответ

Вы могли бы хотеть переустановить dpkg путем выполнения следующего:

sudo -i
mkdir /tmp/dpkg

cd /tmp/dpkg

Следите за этим, Вы могли бы хотеть посмотреть, являются ли ссылки на загрузку все еще up-too-date

Если Вы выполняете версию на 32 бита человечности

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

Для 64 битов

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

затем

ar x dpkg*.deb data.tar.gz

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

Теперь скопируйте двоичный файл в /usr/bin с

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

И наконец выполненный

sudo apt-get update
sudo apt-get install --reinstall dpkg
2
ответ дан 7 December 2019 в 13:31

Другие вопросы по тегам:

Похожие вопросы: