Apt

insserv:警告:腳本“K07smfpd”缺少 LSB 標記和覆蓋

  • January 19, 2018

作業系統資訊:

cat /etc/*-release                                                                                                                                                                                                                                       
DISTRIB_ID=neon
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="KDE neon User Edition 5.10"
NAME="KDE neon"
VERSION="5.10"
ID=neon
ID_LIKE="ubuntu debian"
PRETTY_NAME="KDE neon User Edition 5.10"
VERSION_ID="16.04"
HOME_URL="http://neon.kde.org/"
SUPPORT_URL="http://neon.kde.org/"
BUG_REPORT_URL="http://bugs.kde.org/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

我的問題:當我執行 apt-get update 或 install 或其他任何操作時,我得到相同的東西(可能略有不同)。我懷疑它與 lightdm 或 sddm 有關(我真的不知道他們在做什麼)。所以我試圖清除並重新安裝它們。恐怕我讓它變得更糟了,但還不錯(因為作業系統上的其他所有東西似乎仍在工作)。當這第一次發生時,我並沒有在胡鬧。

錯誤 :

[sudo] password for alex: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Entering ResolveByKeep 50%
Calculating upgrade... Done
The following packages will be upgraded:
 flashplugin-installer
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13 not fully installed or removed.
Need to get 6.834 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://be.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 flashplugin-installer amd64 26.0.0.131ubuntu0.16.04.1 [6.834 B]
Fetched 6.834 B in 0s (39,0 kB/s)                
Preconfiguring packages ...
(Reading database ... 191730 files and directories currently installed.)
Preparing to unpack .../flashplugin-installer_26.0.0.131ubuntu0.16.04.1_amd64.deb ...
Unpacking flashplugin-installer (26.0.0.131ubuntu0.16.04.1) over (26.0.0.126ubuntu0.16.04.1) ...
Processing triggers for update-notifier-common (3.168.4) ...
flashplugin-installer: processing...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20170616.1.orig.tar.gz
Get:1 http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20170616.1.orig.tar.gz [30,4 MB]
Fetched 30,4 MB in 8s (3.494 kB/s)                                                                                                                                                                                                                                            
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20170616.1.orig.tar.gz' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Installing from local file /var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20170616.1.orig.tar.gz
Flash Plugin installed.
Setting up lightdm (1.18.3-0ubuntu1.1) ...
insserv: warning: script 'K07smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service bluetooth at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smfpd and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service smfpd if started
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service networking at depth 4
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv: Starting smfpd depends on plymouth 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
dpkg: error processing package lightdm (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up grub-common (2.02~beta2-36ubuntu3.11) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'K07smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service bluetooth at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smfpd and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service smfpd if started
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service networking at depth 4
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv: Starting smfpd depends on plymouth 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
dpkg: error processing package grub-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-common is not configured yet.

dpkg: error processing package grub2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-bin:
grub-efi-amd64-bin depends on grub-common (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-common is not configured yet.

dpkg: error processing package grub-efi-amd64-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64:
grub-efi-amd64 depends on grub-common (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-common is not configured yet.
grub-efi-amd64 depends on grub2-common (= 2.02~beta2-36ubuntu3.11); however:
 Package grub2-common is not configured yet.
grub-efi-amd64 depends on grub-efi-amd64-bin (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-efi-amd64-bin is not configured yet.

dpkg: error processing package grub-efi-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi:
grub-efi depends on grub-common (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-common is not configured yet.
grub-efi depends on grub-efi-amd64 (= 2.02~beta2-36ubuntu3.11); however:
 Package grub-efi-amd64 is not configured yet.

dpkg: error processing package grub-efi (--configure):
dependency problems - leaving unconfigured
Setting up cgmanager (0.39-2ubuntu5) ...
insserv: warning: script 'K07smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service bluetooth at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smfpd and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service smfpd if started
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service networking at depth 4
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv: Starting smfpd depends on plymouth 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
dpkg: error processing package cgmanager (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up ebtables (2.0.10.4-3.4ubuntu2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'K07smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service bluetooth at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smfpd and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service smfpd if started
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service networking at depth 4
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv: Starting smfpd depends on plymouth 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
dpkg: error processing package ebtables (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libvirt-bin:
libvirt-bin depends on cgmanager | cgroup-lite | cgroup-bin; however:
 Package cgmanager is not configured yet.
 Package cgroup-lite is not installed.
 Package cgroup-bin is not installed.
libvirt-bin depends on ebtables; however:
 Package ebtables is not configured yet.

dpkg: error processing package libvirt-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of os-prober:
os-prober depends on grub-common; however:
 Package grub-common is not configured yet.

dpkg: error processing package os-prober (--configure):
dependency problems - leaving unconfigured
Setting up sddm (0.14.0-1~2.gbpf70012+16.04+xenial+build8) ...
dpkg: error processing package sddm (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up virtualbox (5.0.40-dfsg-0ubuntu1.16.04.1) ...
insserv: warning: script 'K07smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!

insserv: Max recursions depth 99 reached
insserv:  loop involving service bluetooth at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!

insserv: There is a loop between service smfpd and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service smfpd if started
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service networking at depth 4
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv: Starting smfpd depends on plymouth 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
dpkg: error processing package virtualbox (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of virtualbox-qt:
virtualbox-qt depends on virtualbox (= 5.0.40-dfsg-0ubuntu1.16.04.1); however:
 Package virtualbox is not configured yet.

dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
Setting up flashplugin-installer (26.0.0.131ubuntu0.16.04.1) ...
Errors were encountered while processing:
lightdm
grub-common
grub2-common
grub-efi-amd64-bin
grub-efi-amd64
grub-efi
cgmanager
ebtables
libvirt-bin
os-prober
sddm
virtualbox
virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)

注意:我刪除了一些:nsserv:啟動 smfpd 取決於 plymouth,因此取決於系統設施“$all”,這不可能是真的!行,所以問題不會太大。

我最好如何解決這個問題?

感謝Steeldriver和他的評論,我可以在 Ask Ubuntu 上閱讀這個問題:16.04 LTS Update failed - Errors were executed while processing util-linux。我沒有三星列印機/驅動程序,但它確實讓我嘗試解除安裝我的戴爾列印機驅動程序。

解除安裝:

cd /opt/DELL/mfp/uninstall
sudo ./uninstall.sh 

這樣做解決了這個問題。

似乎同樣的問題也是由其他列印機引起的。

uninstall.sh進去/opt/<Printer Vendor>/mfp/uninstall

我前段時間安裝了一台施樂列印機,但目前沒有使用它。刪除驅動程序使更新工作。

引用自:https://unix.stackexchange.com/questions/371619