dpkg: error processing package xxx解决方案

Posted ZONG_XP

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dpkg: error processing package xxx解决方案相关的知识,希望对你有一定的参考价值。

在用apt安装东西时,报错如下

nvidia@tegra-ubuntu:~/ffmpeg$ sudo apt-get install git
[sudo] password for nvidia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 312 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up cups-browsed (1.8.3-2ubuntu3.5) ...
Failed to start cups-browsed.service: Unit cups.service not found.
invoke-rc.d: initscript cups-browsed, action "start" failed.
dpkg: error processing package cups-browsed (--configure):
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 cups-browsed
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方案

cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info

然后再重新安装即可

以上是关于dpkg: error processing package xxx解决方案的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu:E: Sub-process /usr/bin/dpkg returned an error code

Ubuntu:E: Sub-process /usr/bin/dpkg returned an error code

dpkg: error processing package xxx解决方案

E: Sub-process /usr/bin/dpkg returned an error code

dpkg: error processing package ***(--install): dependency problems - leaving unconfigured

dpkg: error processing package bluez (--configure) 解决方法