首页 帮助中心 新加坡服务器 Ubuntu安装sysv-rc-conf时报错如何解决
Ubuntu安装sysv-rc-conf时报错如何解决
时间 : 2022-06-24 16:23:57
编辑 : 华纳云
阅读量 : 12221

Ubuntu新版没有chkconfig命令,且安装sysv-rc-conf会报以下错误:

错为:The package sysv-rc-conf could not be located

经排查,发现是因为配置的源没有集成sysv-rc-conf的安装包。

解决方法:

登录root账号,然后编辑source.list文件

  su
  vim /etc/apt/sources.list

在末尾加入:

  deb http://archive.ubuntu.com/
  Ubuntu / trust main universe limited multiuniverse

保存后,更新源的信息:

  apt update

然后就可以安装了

  apt install sysv-rc-conf

附:添加chkconfig命令

  cp /usr/sbin/sysv-rc-conf 
  usr/sbin/chkconfig
  chmod 755 /usr/sbin/chkconfig
相关内容
客服咨询
7*24小时技术支持
技术支持
渠道支持