首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux与insserv的问题

Linux与insserv的问题
EN

Stack Overflow用户
提问于 2021-01-14 04:58:08
回答 1查看 678关注 0票数 0

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

代码语言:javascript
复制
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

代码语言:javascript
复制
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相同

代码语言:javascript
复制
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!

我在运行:

代码语言:javascript
复制
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/"
EN

回答 1

Stack Overflow用户

发布于 2021-01-20 18:15:08

所以我用Default Stop : 0 1 6编辑了etc/init.d/ntpetc/init.d/sshetc/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

代码语言:javascript
复制
#!/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 replacement
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65709674

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档