问题描述:

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
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐