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; ------------------------------------- Ign file: apt-build Release.gpg Ign file: apt-build/main Translation-en_US Get:1 file: apt-build Release [89B] Ign file: apt-build/main Packages Hit http://http.us.debian.org lenny Release.gpg Ign http://http.us.debian.org lenny/contrib Translation-en_US Ign http://http.us.debian.org lenny/main Translation-en_US Ign http://http.us.debian.org lenny/non-free Translation-en_US Hit http://http.us.debian.org lenny Release Get:2 http://security.debian.org lenny/updates Release.gpg [1032B] Ign http://security.debian.org lenny/updates/main Translation-en_US Ign http://security.debian.org lenny/updates/contrib Translation-en_US Ign http://security.debian.org lenny/updates/non-free Translation-en_US Get:3 http://security.debian.org lenny/updates Release [40.8kB] Ign http://http.us.debian.org lenny/contrib Packages/DiffIndex Ign http://http.us.debian.org lenny/main Packages/DiffIndex Ign http://http.us.debian.org lenny/non-free Packages/DiffIndex Hit http://http.us.debian.org lenny/contrib Packages Hit http://http.us.debian.org lenny/main Packages Ign http://security.debian.org lenny/updates/main Packages/DiffIndex Hit http://http.us.debian.org lenny/non-free Packages Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex Get:4 http://security.debian.org lenny/updates/main Packages [124kB] Hit http://security.debian.org lenny/updates/contrib Packages Hit http://security.debian.org lenny/updates/non-free Packages Hit http://mirrors.kernel.org lenny Release.gpg Ign http://mirrors.kernel.org lenny/main Translation-en_US Ign http://mirrors.kernel.org lenny/contrib Translation-en_US Ign http://mirrors.kernel.org lenny/non-free Translation-en_US Get:5 http://volatile.debian.org lenny/volatile Release.gpg [189B] Get:6 http://www.debian-multimedia.org lenny Release.gpg [197B] Hit http://www.debian-multimedia.org lenny/main Translation-en_US Ign http://volatile.debian.org lenny/volatile/main Translation-en_US Hit http://mirrors.kernel.org lenny Release Get:7 http://www.debian-multimedia.org lenny Release [11.5kB] Get:8 http://volatile.debian.org lenny/volatile Release [40.7kB] Ign http://mirrors.kernel.org lenny/main Packages/DiffIndex Ign http://mirrors.kernel.org lenny/contrib Packages/DiffIndex Ign http://mirrors.kernel.org lenny/non-free Packages/DiffIndex Hit http://mirrors.kernel.org lenny/main Packages Hit http://mirrors.kernel.org lenny/contrib Packages Hit http://mirrors.kernel.org lenny/non-free Packages Hit http://www.debian-multimedia.org lenny/main Packages/DiffIndex Hit http://www.backports.org lenny-backports Release.gpg Ign http://www.backports.org lenny-backports/main Translation-en_US Ign http://www.backports.org lenny-backports/contrib Translation-en_US Ign http://www.backports.org lenny-backports/non-free Translation-en_US Hit http://www.backports.org lenny-backports Release Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex Get:9 http://volatile.debian.org lenny/volatile/main Packages [7084B] Ign http://www.backports.org lenny-backports/main Packages/DiffIndex Ign http://www.backports.org lenny-backports/contrib Packages/DiffIndex Ign http://www.backports.org lenny-backports/non-free Packages/DiffIndex Hit http://www.backports.org lenny-backports/main Packages Hit http://www.backports.org lenny-backports/contrib Packages Hit http://www.backports.org lenny-backports/non-free Packages Fetched 225kB in 3s (61.3kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/3267kB of archives. 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) ---------------------------------------- Any ideas why? Thanks! -- John Foster -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org