Ubuntu1804 no chkconfig service solutions

In Ubuntu  chkconfig has been  sysv-rc-conf replaced,

1、sudo apt install sysv-rc-conf

An error

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

cd / var / lib / dpkg, find the lock.

 sudo rm -rf lock delete lock, again ls view, lock was successfully deleted.

Install again, and given:

Could not get lock /var/cache/apt/archives/lock。

As with the above solution, this lock is also deleted.

sudo rm -rf /var/cache/apt/archives/lock。

2、sudo apt install sysv-rc-conf

When I install sysv-rc-conf, reported the following error:
E: Unable to the locate Package Penalty for sysv-rc-conf (unable to locate the sysv-rc-conf package)

To provide a solution, as follows:
add the following to the list of software source sources.list (position of the text in /etc/apt/sources.list) at the end of the file:
deb http://archive.ubuntu.com/ubuntu/ Restricted Universe Multiverse main Trusty
. 3, update apt-get, the input terminal APT-GET update the sudo
Here Insert Picture Description
. 4, after the completion of the update, reinstall sysv-rc-conf, enter sudo apt-get install sysv-rc -conf terminal can successful installation.

5, after completion of the installation performed sysv-rc-conf --list 

Guess you like

Origin www.cnblogs.com/sunyl1982/p/11864241.html