阿里云的ECS服务器采用了ubuntu20,在这个系统下安装 sysv-rc-conf时报错. 错误如下:
root@iZ8vbeeelmyzkhxvdqblbyZ:~# apt install sysv-rc-conf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sysv-rc-conf
解决方案:
1. 编辑sources.list文件
sudo vi /etc/apt/sources.list
2. 在软件源sources.list文件中添加如下一列文本
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
3. 更新apt-get
sudo apt-get update
3. 输入sudo apt-get install sysv-rc-conf,即可成功安装。
sudo apt-get install sysv-rc-conf