chkconfig: command not found

在Ubuntu 16.04.10中,由于chkconfig命令未被包含,导致执行时提示'command not found'。实际上,该版本使用sysv-rc-conf作为替代。当尝试通过apt-get安装chkconfig时,出现找不到安装候选的错误。解决方法是通过执行apt-get更新和安装sysv-rc-conf来替代chkconfig。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

ubuntu1~16.04.10 执行 chkconfig 命令报 chkconfig: command not found 说明此服务上没有安装 chkconfig。执行如下命令进行安装

apt-get update
apt-get install chkconfig

但是在安装时,安装失败出现如下问题:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package chkconfig is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘chkconfig’ has no installation candidate

问题原因:

查询说是在 ubuntu1~16.04.10 使用 sysv-rc-conf 代替了 chkconfig

解决方法:

执行如下命令安装 sysv-rc-conf.

apt-get update
apt-get install sysv-rc-conf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值