insserv: Starting xx depends on plymouth and therefore on system facility `$all'

用tar包安装nifi过后,Ubuntu16.04系统无法再用apt安装其他软件,错误如下:

# apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  keyutils libnfsidmap2 libtirpc1 nfs-common rpcbind
Suggested packages:
  open-iscsi watchdog
The following NEW packages will be installed:
  keyutils libnfsidmap2 libtirpc1 nfs-common nfs-kernel-server rpcbind
0 upgraded, 6 newly installed, 0 to remove and 99 not upgraded.
Need to get 467 kB of archives.
After this operation, 1,874 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libnfsidmap2 amd64 0.25-5 [32.2 kB]
Get:2 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libtirpc1 amd64 0.2.5-1 [75.6 kB]
Get:3 http://mirrors.aliyun.com/ubuntu xenial/main amd64 keyutils amd64 1.5.9-8ubuntu1 [47.1 kB]
Get:4 http://mirrors.aliyun.com/ubuntu xenial/main amd64 rpcbind amd64 0.2.3-0.2 [40.3 kB]
Get:5 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 nfs-common amd64 1:1.2.8-9ubuntu12.1 [184 kB]
Get:6 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 nfs-kernel-server amd64 1:1.2.8-9ubuntu12.1 [88.0 kB]
Fetched 467 kB in 0s (1,036 kB/s)            
Selecting previously unselected package libnfsidmap2:amd64.
(Reading database ... 213820 files and directories currently installed.)
Preparing to unpack .../libnfsidmap2_0.25-5_amd64.deb ...
Unpacking libnfsidmap2:amd64 (0.25-5) ...
Selecting previously unselected package libtirpc1:amd64.
Preparing to unpack .../libtirpc1_0.2.5-1_amd64.deb ...
Unpacking libtirpc1:amd64 (0.2.5-1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../keyutils_1.5.9-8ubuntu1_amd64.deb ...
Unpacking keyutils (1.5.9-8ubuntu1) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../rpcbind_0.2.3-0.2_amd64.deb ...
Unpacking rpcbind (0.2.3-0.2) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../nfs-common_1%3a1.2.8-9ubuntu12.1_amd64.deb ...
Unpacking nfs-common (1:1.2.8-9ubuntu12.1) ...
Selecting previously unselected package nfs-kernel-server.
Preparing to unpack .../nfs-kernel-server_1%3a1.2.8-9ubuntu12.1_amd64.deb ...
Unpacking nfs-kernel-server (1:1.2.8-9ubuntu12.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libnfsidmap2:amd64 (0.25-5) ...
Setting up libtirpc1:amd64 (0.2.5-1) ...
Setting up keyutils (1.5.9-8ubuntu1) ...
Setting up rpcbind (0.2.3-0.2) ...
insserv: warning: script 'S65nifi' missing LSB tags and overrides
insserv: warning: script 'nifi' missing LSB tags and overrides
insserv: warning: script 'dreamfactory' missing LSB tags and overrides
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv:  loop involving service hwclock at depth 3
insserv: There is a loop between service nifi and udev if started
insserv:  loop involving service udev at depth 1
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service plymouth if started
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service nifi if started
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service mountkernfs at depth 1
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service nifi and dns-clean if started
insserv:  loop involving service dns-clean at depth 1
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: warning: script 'K01nifi' missing LSB tags and overrides
insserv: warning: script 'nifi' missing LSB tags and overrides
insserv: warning: script 'dreamfactory' missing LSB tags and overrides
insserv: Starting nifi depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nifi depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service nifi and rc.local if started
insserv:  loop involving service rc.local at depth 7
insserv:  loop involving service nifi at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package rpcbind (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nfs-common:
 nfs-common depends on rpcbind (>= 0.2.0-6ubuntu1); however:
  Package rpcbind is not configured yet.

dpkg: error processing package nfs-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nfs-kernel-server:
 nfs-kernel-server depends on nfs-common (= 1:1.2.8-9ubuntu12.1); however:
  Package nfs-common is not configured yet.

dpkg: error processing package nfs-kernel-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu9) ...
No apport report written because the error message indicates its a followup error from a previous failure.
               No apport report written because the error message indicates its a followup error from a previous failure.
                              Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 rpcbind
 nfs-common
 nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

造成此次问题的原因是使用tar包安装的nifi启动脚本问题,参照init.d目录下其他启动项修改下即可:

# vi /etc/init.d/nifi
#! /bin/sh
### BEGIN INIT INFO
# Provides:          cups-browsed
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop :     0 1 6
# Short-Description: Some info
# Description:       Some more info
### END INIT INFO

猜你喜欢

转载自blog.csdn.net/cy309173854/article/details/78353811
xx