即使是dpkg,我也无法安装任何软件包,我的dpkg文件和文件夹已经被删除,我收到了以下错误:
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)编辑:当我运行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)安装布吉桌面时
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.发布于 2017-07-01 22:10:26
您可能希望通过执行以下操作重新安装dpkg:
sudo -i
mkdir /tmp/dpkg
cd /tmp/dpkg请注意,您可能希望查看下载链接是否仍然是最新的。
如果您正在运行ubuntu的32位版本,则为
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 dpkghttps://askubuntu.com/questions/931115
复制相似问题