Debian update-rc.d command not found

bash, debian

Solution

`/usr/sbin/update-rc.d` belongs to Debian package `sysv-rc` or `file-rc`, you should install one of them.

If you only know a file name and want to find out which package it belongs to, you can use the following command:

apt-file search file-name

To use it, you need to install package `apt-file` and update the local cache as instructed after you finished the installation.

Or you can search it online: Search the contents of packages.

Problem

I have seen some of the posts online where it says to navigate to the dir `/usr/sbin/` and look for the file `update-rc.d` but I'm still running into the error that the `bash: command not found`. I'm trying to run: `update-rc.d -f gdm3 defaults` I've also tried: `/usr/sbin/update-rc.d -f gdm3 defaults` but that is still resulting in the same error. please advise... thanks

Original source