Why is upgradepkg complaining it cannot find installpkg or removepkg, with sudo?
Right from the sudo man pages Security Notes section: “Note, however, that the actual PATH environment variable is not modified and is passed unchanged to the program that sudo executes.” Make sure you include /sbin in your shells PATH environment variable before using slapt-get via sudo. Or use su – -c ‘slapt-get [options] [arg]s’.