Unable to locate package sysv-rc-conf
Unable to locate package sysv-rc-conf
I got the error ‘Unable to locate package sysv-rc-conf’ on my Ubuntu 18.04 server while trying to install the package ‘sysv-rc-conf’.
root@server:/var/log/apache2# apt-get install sysv-rc-conf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sysv-rc-conf
Do the below steps to fix the error.
1. Open a new terminal
2. Log into your Ubuntu 18.04 server as ‘root’ or sudo user
3. Open the file ‘/etc/apt/sources.list’ using you vi editor
vi /etc/apt/sources.list
4. Append the below line in your ‘/etc/apt/sources.list’ file
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
5. Run ‘apt update’ to update package information
6. Install sysv-rc-conf package using apt-get command.

How to Install sysv-rc-conf
7. Run the command ‘sysv-rc-conf [servicename] on’ to enable the service at boot
root@server:/# sysv-rc-conf nginx on
root@server:/# sysv-rc-conf apache2 on
root@server:/# sysv-rc-conf mysql on
root@server:/# sysv-rc-conf apache2 on
root@server:/# sysv-rc-conf mysql on
8. Run the command ‘sysv-rc-conf --list’ to make sure the service is enabled at boot
root@server:/# sysv-rc-conf --list
apache-htcac 0:off 1:off 2:off 3:off 4:off 5:off 6:off
apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cron 2:on 3:on 4:on 5:on
dbus 2:on 3:on 4:on 5:on
exim4 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nginx 2:on 3:on 4:on 5:on
procps S:on
unattended-u 0:off 2:on 3:on 4:on 5:on 6:off
apache-htcac 0:off 1:off 2:off 3:off 4:off 5:off 6:off
apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cron 2:on 3:on 4:on 5:on
dbus 2:on 3:on 4:on 5:on
exim4 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nginx 2:on 3:on 4:on 5:on
procps S:on
unattended-u 0:off 2:on 3:on 4:on 5:on 6:off