报错样例
insserv: warning: script 'S16denyhosts' missing LSB tags and overrides
insserv: warning: script 'xenvnet-arp' missing LSB tags and overrides
insserv: warning: script 'denyhosts' missing LSB tags and overrides
insserv: There is a loop between service bt and xenvnet-arp if stopped
insserv: loop involving service xenvnet-arp at depth 2
insserv: loop involving service bt at depth 1
insserv: Stopping xenvnet-arp depends on bt and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
update-rc.d: error: insserv rejected the script header
dpkg: error processing package cgroupfs-mount (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
cgroupfs-mount
docker.io
ubuntu-fan
E: Sub-process /usr/bin/dpkg returned an error code (1)
彻底修复方法
mv /var/lib/dpkg/info /var/lib/dpkg/info.bk
mkdir /var/lib/dpkg/info
apt-get update
apt-get -f install
mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk/
rm -rf /var/lib/dpkg/info
mv /var/lib/dpkg/info.bk /var/lib/dpkg/info
(2211)