Hello fellow ubuntu users,

So I am very new to using linux and I was installing an application using make install. I have recieved errors during install and I went to delete the files made by make install.

The following errors happen when I use apt-get install <package name>

Code:
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
Here is how I ended up doing this:

I had wanted to uninstall aircrack-ng from my system after realizing I couldn't use it with my Wireless card, so I deleted the "sbin" folder under /usr/local/sbin.
After I recreated the folder is where the error comes in when using apt-get.

I have checked my sudoers file as well as "echo PATH=<long string for sbin folder>"

Is there any other solution other than reinstalling ubuntu?


Many thanks!