码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2018-07-14 21:00:51      阅读:870      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   https   apt   get   err   question   deb   date   Fix   

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   https   apt   get   err   question   deb   date   Fix   

原文地址:https://www.cnblogs.com/GodBug/p/ubuntu.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!