Ubuntu18.04 出现E: Sub-process /usr/bin/dpkg returned an error code (100)

Posted Quest

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu18.04 出现E: Sub-process /usr/bin/dpkg returned an error code (100)相关的知识,希望对你有一定的参考价值。

You might want to reinstall dpkg by doing the following:

sudo -i
mkdir /tmp/dpkg

cd /tmp/dpkg

Mind that you might want to look whether the download links are still up-too-date

If you are running a 32 bit version of ubuntu

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5_i386.deb

For 64 bit

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

then

ar x dpkg*.deb data.tar.gz

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

Now copy the binary to /usr/bin with

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

And finally run

sudo apt-get update
sudo apt-get install --reinstall dpkg

原地址:https://askubuntu.com/questions/931115/how-can-i-fix-dpkg-error-code100


以上是关于Ubuntu18.04 出现E: Sub-process /usr/bin/dpkg returned an error code (100)的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 18.04 上的“E:无法找到包 python-pip”[重复]

工控机安装Ubuntu 18.04 黑屏问题

联想y7000安装ubuntu18.04显卡驱动解决方案

ubuntu 18.04在更新软件库时出现E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InR

Ubuntu18.04安装CUDA

ubuntu 18.04系统无法启动,出现grup