所以在我的最新更新之后,我得到了这个错误信息

insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.我试过insserv -d /etc/init.d/ntp:
insserv -dv /etc/init.d/ntp
insserv: FATAL: service mountkernfs has to exist for service udev
insserv: FATAL: service checkroot has to exist for service cryptdisks
insserv: FATAL: service urandom has to exist for service networking
insserv: FATAL: service mountdevsubfs has to exist for service hwclock
insserv: FATAL: service bootmisc has to exist for service live-tools
insserv: exiting now!但我的系统中没有安装system、checkroot、mountdevsubfs和bootmisc
这是我的/etc/init.d/ntp标头,它与ssh和sysstat相同

cat /etc/init.d/ntp
#!/bin/sh
### BEGIN INIT INFO
# Provides: ntp
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start NTP daemon
### END INIT INFO
I tried `inssertv -d /etc/init.d/ntp` but I get
[enter image description here][3]
insserv -dv /etc/init.d/ntp
insserv: FATAL: service mountkernfs has to exist for service udev
insserv: FATAL: service checkroot has to exist for service cryptdisks
insserv: FATAL: service urandom has to exist for service networking
insserv: FATAL: service mountdevsubfs has to exist for service hwclock
insserv: FATAL: service bootmisc has to exist for service live-tools
insserv: exiting now!我在运行:
DISTRIB_ID=Parrot
DISTRIB_RELEASE=4.10
DISTRIB_CODENAME=rolling
DISTRIB_DESCRIPTION="Parrot 4.10"
PRETTY_NAME="Parrot GNU/Linux 4.10"
NAME="Parrot GNU/Linux"
ID=parrot
ID_LIKE=debian
VERSION="4.10"
VERSION_ID="4.10"
HOME_URL="https://www.parrotsec.org/"
SUPPORT_URL="https://community.parrotsec.org/"
BUG_REPORT_URL="https://community.parrotsec.org/"发布于 2021-01-20 18:15:08
所以我用Default Stop : 0 1 6编辑了etc/init.d/ntp、etc/init.d/ssh和etc/init.d/sysstat,现在Default Stop : 0 1 6的输出如下所示:enter image description here
编辑:所以现在我已经使用 sudo apt-get install initscripts 安装了 initscripts 以前的错误消息不再出现,但我得到了另一个错误消息:insserv insserv: FATAL: service rpcbind is missed in the runlevels 2 3 4 5 to use service nfs-kernel-server insserv: exiting now!
我不知道如何设置rpcbind的运行级别。我是否必须为这一个设置默认的启动和停止,因为对我来说它看起来很好:cat /etc/init.d/rpcbind
#!/bin/sh
#
# start/stop rpcbind daemon.
### BEGIN INIT INFO
# Provides: rpcbind portmap
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: S
# Default-Stop: 0 1 6
# Short-Description: RPC portmapper replacementhttps://stackoverflow.com/questions/65709674
复制相似问题