On Thu, Jun 18, 2009 at 10:24:31AM -0500, John W Foster wrote: > I have been experimenting a bit and have tried this command line for > upgrading my system; > > apt-get -y update; apt-get -y upgrade > > It works fine if issued from a root terminal. However as a command line > issued as 'root' from webmin it fails with this error;
I do not use webmin but What is the $HOME and $USER under such environment. As I see output... > After this operation, 0B of additional disk space will be used. > dpkg: `ldconfig' not found on PATH. > dpkg: `start-stop-daemon' not found on PATH. > dpkg: `install-info' not found on PATH. > dpkg: `update-rc.d' not found on PATH. > dpkg: 4 expected program(s) not found on PATH. > NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin > and /sbin. > E: Sub-process /usr/bin/dpkg returned an error code (2) > --------------------------------------- I see. Under webmin, $PATH variable is not set as usual shell environment. You may wish to set webmin to set several importanrt environment variables for root shell. Osamu - -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org