解决Sub-process /usr/bin/dpkg returned an error code (1)
在Debian 8 64 bit上安装NSD3导致的后遗症,NSD3没装好,这个提示百度了得知是依赖出错,那就好解决了,清楚错误的以来信息,然后强制更新一下。
1.报错信息如下
Setting up nsd (4.1.0-3) ...
Preserving user changes to /etc/nsd/nsd.conf (renamed from /etc/nsd3/nsd.conf)...
mv: cannot stat '/etc/nsd/nsd.conf': No such file or directory
dpkg: error processing package nsd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libaudit-common (1:2.4-1) ...
Setting up libaudit1:i386 (1:2.4-1+b1) ...
Setting up sudo (1.8.10p3-1+deb8u3) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Errors were encountered while processing:
transmission-daemon
minissdpd
nsd
E: Sub-process /usr/bin/dpkg returned an error code (1)
2.解决办法,错误信息提示是nsd3导致的,删除nsd3的依赖信息
cd /var/lib/dpkg/info
rm -rf nsd3*
apt-get update -f
apt-get -f install