关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Ubuntu安装sysv-rc-conf时报错如何解决

发布时间:2023/6/1 12:11:07
香港云服务器

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